KVIrc
4.9.2
DeveloperAPIs
|
This class constructs the dialog to create a new class. More...
#include <ClassEditorWindow.h>
Public Member Functions | |
QString | className () |
Returns the class name. More... | |
QString | inheritsClassName () |
Returns the class name of the parent classes. More... | |
KviClassEditorDialog (QWidget *pParent, const QString &szName, KviPointerHashTable< QString, ClassEditorTreeWidgetItem > *pClasses, const QString &szClassName, const QString &szInheritsClassName, bool bRenameMode=false) | |
Constructs the class dialog. More... | |
~KviClassEditorDialog () | |
Destroys the class dialog. More... | |
Protected Slots | |
void | textChanged (const QString &) |
Triggered when the name of the class change. More... | |
Protected Attributes | |
QLineEdit * | m_pClassNameLineEdit |
QComboBox * | m_pInheritsClassComboBox |
QPushButton * | m_pNewClassButton |
This class constructs the dialog to create a new class.
KviClassEditorDialog::KviClassEditorDialog | ( | QWidget * | pParent, |
const QString & | szName, | ||
KviPointerHashTable< QString, ClassEditorTreeWidgetItem > * | pClasses, | ||
const QString & | szClassName, | ||
const QString & | szInheritsClassName, | ||
bool | bRenameMode = false |
||
) |
Constructs the class dialog.
pParent | The parent widget |
szName | The name of the widget |
pClasses | The container of all classes of our namespace |
szClassName | The name of the class |
szInheritsClassName | The name of the classes in which this inherits from |
bRenameMode | Whether the dialog is in rename mode |
References __tr2qs_ctx(), connect(), KviPointerHashTableIterator< Key, T >::current(), KviPointerHashTableIterator< Key, T >::currentKey(), KviQString::equalCI(), i, KviKvsKernel::instance(), KviKvsObjectClass::isBuiltin(), m_pClassNameLineEdit, m_pInheritsClassComboBox, m_pNewClassButton, KviTalHBox::setMargin(), KviTalHBox::setSpacing(), and textChanged().
|
default |
Destroys the class dialog.
|
inline |
Returns the class name.
References m_pClassNameLineEdit.
Referenced by ClassEditorWidget::askForClassName().
|
inline |
Returns the class name of the parent classes.
References m_pInheritsClassComboBox.
Referenced by ClassEditorWidget::askForClassName().
|
protectedslot |
Triggered when the name of the class change.
References m_pNewClassButton.
Referenced by KviClassEditorDialog().
|
protected |
Referenced by className(), and KviClassEditorDialog().
|
protected |
Referenced by inheritsClassName(), and KviClassEditorDialog().
|
protected |
Referenced by KviClassEditorDialog(), and textChanged().