KVIrc  4.9.2
DeveloperAPIs
Public Member Functions | Protected Slots | Protected Attributes | List of all members
KviClassEditorFunctionDialog Class Reference

This class constructs the dialog to create a new member function. More...

#include <ClassEditorWindow.h>

+ Inheritance diagram for KviClassEditorFunctionDialog:

Public Member Functions

QString functionName ()
 Returns the function name. More...
 
bool isInternalFunction ()
 Returns true if the function is set as internal, false otherwise. More...
 
 KviClassEditorFunctionDialog (QWidget *pParent, const QString &szName, const QString &szClassName, const QString &szFunctionName, const QString &szReminder, bool bIsInternal, bool bRenameMode=false)
 Constructs the function dialog. More...
 
QString reminder ()
 Returns the parameters of the function. More...
 
 ~KviClassEditorFunctionDialog ()
 Destroys the function dialog. More...
 

Protected Slots

void textChanged (const QString &)
 Triggered when the name of the function change. More...
 

Protected Attributes

QLineEdit * m_pFunctionNameLineEdit
 
QCheckBox * m_pInternalCheckBox
 
QPushButton * m_pNewFunctionButton
 
QLineEdit * m_pReminderLineEdit
 

Detailed Description

This class constructs the dialog to create a new member function.

Constructor & Destructor Documentation

KviClassEditorFunctionDialog::KviClassEditorFunctionDialog ( QWidget *  pParent,
const QString &  szName,
const QString &  szClassName,
const QString &  szFunctionName,
const QString &  szReminder,
bool  bIsInternal,
bool  bRenameMode = false 
)

Constructs the function dialog.

Parameters
pParentThe parent widget
szNameThe name of the widget
szClassNameThe name of the class
szFunctionNameThe name of the function
szReminderThe parameters of the function
bIsInternalWhether the function is set as internal
bRenameModeWhether the dialog is in rename mode
Returns
KviClassEditorFunctionDialog

References __tr2qs_ctx(), connect(), m_pFunctionNameLineEdit, m_pInternalCheckBox, m_pNewFunctionButton, m_pReminderLineEdit, KviTalHBox::setAlignment(), KviTalHBox::setMargin(), KviTalHBox::setSpacing(), KviTalHBox::setStretchFactor(), and textChanged().

KviClassEditorFunctionDialog::~KviClassEditorFunctionDialog ( )
default

Destroys the function dialog.

Member Function Documentation

QString KviClassEditorFunctionDialog::functionName ( )
inline

Returns the function name.

Returns
QString

References m_pFunctionNameLineEdit.

Referenced by ClassEditorWidget::askForFunction().

bool KviClassEditorFunctionDialog::isInternalFunction ( )
inline

Returns true if the function is set as internal, false otherwise.

Returns
bool

References m_pInternalCheckBox.

Referenced by ClassEditorWidget::askForFunction().

QString KviClassEditorFunctionDialog::reminder ( )
inline

Returns the parameters of the function.

Returns
QString

References m_pReminderLineEdit.

Referenced by ClassEditorWidget::askForFunction().

void KviClassEditorFunctionDialog::textChanged ( const QString &  szText)
protectedslot

Triggered when the name of the function change.

Returns
void

References m_pNewFunctionButton.

Referenced by KviClassEditorFunctionDialog().

Member Data Documentation

QLineEdit* KviClassEditorFunctionDialog::m_pFunctionNameLineEdit
protected
QCheckBox* KviClassEditorFunctionDialog::m_pInternalCheckBox
protected
QPushButton* KviClassEditorFunctionDialog::m_pNewFunctionButton
protected
QLineEdit* KviClassEditorFunctionDialog::m_pReminderLineEdit
protected

The documentation for this class was generated from the following files: