bool ListViewEditor::qt_invoke( int _id, QUObject* _o ) { switch ( _id - staticMetaObject()->slotOffset() ) { case 0: applyClicked(); break; case 1: columnClickable((bool)static_QUType_bool.get(_o+1)); break; case 2: columnDownClicked(); break; case 3: columnPixmapChosen(); break; case 4: columnPixmapDeleted(); break; case 5: columnResizable((bool)static_QUType_bool.get(_o+1)); break; case 6: columnTextChanged((const QString&)static_QUType_QString.get(_o+1)); break; case 7: columnUpClicked(); break; case 8: currentColumnChanged((QListBoxItem*)static_QUType_ptr.get(_o+1)); break; case 9: currentItemChanged((QListViewItem*)static_QUType_ptr.get(_o+1)); break; case 10: deleteColumnClicked(); break; case 11: itemColChanged((int)static_QUType_int.get(_o+1)); break; case 12: itemDeleteClicked(); break; case 13: itemDownClicked(); break; case 14: itemNewClicked(); break; case 15: itemNewSubClicked(); break; case 16: itemPixmapChoosen(); break; case 17: itemPixmapDeleted(); break; case 18: itemTextChanged((const QString&)static_QUType_QString.get(_o+1)); break; case 19: itemUpClicked(); break; case 20: itemLeftClicked(); break; case 21: itemRightClicked(); break; case 22: newColumnClicked(); break; case 23: okClicked(); break; case 24: initTabPage((const QString&)static_QUType_QString.get(_o+1)); break; case 25: emitItemRenamed((QListViewItem*)static_QUType_ptr.get(_o+1),(int)static_QUType_int.get(_o+2),(const QString&)static_QUType_QString.get(_o+3)); break; default: return ListViewEditorBase::qt_invoke( _id, _o ); } return TRUE; }
/* * Constructs a ListViewEditorBase as a child of 'parent', with the * name 'name' and widget flags set to 'f'. * * The dialog will by default be modeless, unless you set 'modal' to * TRUE to construct a modal dialog. */ ListViewEditorBase::ListViewEditorBase( QWidget* parent, const char* name, bool modal, WFlags fl ) : QDialog( parent, name, modal, fl ) { if ( !name ) setName( "ListViewEditorBase" ); setSizeGripEnabled( TRUE ); ListViewEditorBaseLayout = new QVBoxLayout( this, 11, 6, "ListViewEditorBaseLayout"); tabWidget = new QTabWidget( this, "tabWidget" ); Widget10 = new QWidget( tabWidget, "Widget10" ); Widget10Layout = new QGridLayout( Widget10, 1, 1, 11, 6, "Widget10Layout"); itemDelete = new QPushButton( Widget10, "itemDelete" ); Widget10Layout->addWidget( itemDelete, 2, 1 ); GroupBox1 = new QGroupBox( Widget10, "GroupBox1" ); GroupBox1->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)0, (QSizePolicy::SizeType)5, 0, 0, GroupBox1->sizePolicy().hasHeightForWidth() ) ); GroupBox1->setColumnLayout(0, Qt::Vertical ); GroupBox1->layout()->setSpacing( 6 ); GroupBox1->layout()->setMargin( 11 ); GroupBox1Layout = new QGridLayout( GroupBox1->layout() ); GroupBox1Layout->setAlignment( Qt::AlignTop ); Label2 = new QLabel( GroupBox1, "Label2" ); GroupBox1Layout->addWidget( Label2, 2, 0 ); Label1 = new QLabel( GroupBox1, "Label1" ); GroupBox1Layout->addWidget( Label1, 1, 0 ); itemText = new QLineEdit( GroupBox1, "itemText" ); itemText->setMinimumSize( QSize( 0, 0 ) ); GroupBox1Layout->addWidget( itemText, 1, 1 ); itemColumn = new QSpinBox( GroupBox1, "itemColumn" ); GroupBox1Layout->addWidget( itemColumn, 0, 1 ); Label4 = new QLabel( GroupBox1, "Label4" ); GroupBox1Layout->addWidget( Label4, 0, 0 ); Layout2 = new QHBoxLayout( 0, 0, 6, "Layout2"); itemPixmap = new QLabel( GroupBox1, "itemPixmap" ); Layout2->addWidget( itemPixmap ); itemDeletePixmap = new QPushButton( GroupBox1, "itemDeletePixmap" ); itemDeletePixmap->setMaximumSize( QSize( 30, 22 ) ); itemDeletePixmap->setPixmap( QPixmap::fromMimeSource( "designer_s_editcut.png" ) ); Layout2->addWidget( itemDeletePixmap ); itemChoosePixmap = new QPushButton( GroupBox1, "itemChoosePixmap" ); itemChoosePixmap->setMaximumSize( QSize( 30, 22 ) ); Layout2->addWidget( itemChoosePixmap ); GroupBox1Layout->addLayout( Layout2, 2, 1 ); Widget10Layout->addMultiCellWidget( GroupBox1, 0, 7, 2, 2 ); itemNew = new QPushButton( Widget10, "itemNew" ); Widget10Layout->addWidget( itemNew, 0, 1 ); itemsPreview = new QListView( Widget10, "itemsPreview" ); Widget10Layout->addMultiCellWidget( itemsPreview, 0, 7, 0, 0 ); itemNewSub = new QPushButton( Widget10, "itemNewSub" ); Widget10Layout->addWidget( itemNewSub, 1, 1 ); Vertical_Spacing1 = new QSpacerItem( 20, 20, QSizePolicy::Minimum, QSizePolicy::Expanding ); Widget10Layout->addItem( Vertical_Spacing1, 3, 1 ); itemUp = new QPushButton( Widget10, "itemUp" ); itemUp->setPixmap( QPixmap::fromMimeSource( "designer_s_up.png" ) ); Widget10Layout->addWidget( itemUp, 4, 1 ); itemDown = new QPushButton( Widget10, "itemDown" ); itemDown->setPixmap( QPixmap::fromMimeSource( "designer_s_down.png" ) ); Widget10Layout->addWidget( itemDown, 5, 1 ); itemLeft = new QPushButton( Widget10, "itemLeft" ); itemLeft->setPixmap( QPixmap::fromMimeSource( "designer_s_left.png" ) ); Widget10Layout->addWidget( itemLeft, 6, 1 ); itemRight = new QPushButton( Widget10, "itemRight" ); itemRight->setPixmap( QPixmap::fromMimeSource( "designer_s_right.png" ) ); Widget10Layout->addWidget( itemRight, 7, 1 ); tabWidget->insertTab( Widget10, QString("") ); Widget11 = new QWidget( tabWidget, "Widget11" ); Widget11Layout = new QGridLayout( Widget11, 1, 1, 11, 6, "Widget11Layout"); GroupBox1_2 = new QGroupBox( Widget11, "GroupBox1_2" ); GroupBox1_2->setColumnLayout(0, Qt::Vertical ); GroupBox1_2->layout()->setSpacing( 6 ); GroupBox1_2->layout()->setMargin( 11 ); GroupBox1Layout_2 = new QGridLayout( GroupBox1_2->layout() ); GroupBox1Layout_2->setAlignment( Qt::AlignTop ); Label2_2 = new QLabel( GroupBox1_2, "Label2_2" ); GroupBox1Layout_2->addWidget( Label2_2, 1, 0 ); colPixmap = new QLabel( GroupBox1_2, "colPixmap" ); GroupBox1Layout_2->addWidget( colPixmap, 1, 1 ); colDeletePixmap = new QPushButton( GroupBox1_2, "colDeletePixmap" ); colDeletePixmap->setMaximumSize( QSize( 30, 22 ) ); colDeletePixmap->setPixmap( QPixmap::fromMimeSource( "designer_s_editcut.png" ) ); GroupBox1Layout_2->addWidget( colDeletePixmap, 1, 2 ); colChoosePixmap = new QPushButton( GroupBox1_2, "colChoosePixmap" ); colChoosePixmap->setMaximumSize( QSize( 30, 22 ) ); GroupBox1Layout_2->addWidget( colChoosePixmap, 1, 3 ); Label1_2 = new QLabel( GroupBox1_2, "Label1_2" ); GroupBox1Layout_2->addWidget( Label1_2, 0, 0 ); colText = new QLineEdit( GroupBox1_2, "colText" ); colText->setMinimumSize( QSize( 0, 0 ) ); GroupBox1Layout_2->addMultiCellWidget( colText, 0, 0, 1, 3 ); colClickable = new QCheckBox( GroupBox1_2, "colClickable" ); GroupBox1Layout_2->addMultiCellWidget( colClickable, 2, 2, 0, 1 ); colResizable = new QCheckBox( GroupBox1_2, "colResizable" ); GroupBox1Layout_2->addMultiCellWidget( colResizable, 3, 3, 0, 1 ); Widget11Layout->addMultiCellWidget( GroupBox1_2, 0, 4, 2, 2 ); colDelete = new QPushButton( Widget11, "colDelete" ); Widget11Layout->addWidget( colDelete, 1, 1 ); colDown = new QPushButton( Widget11, "colDown" ); colDown->setPixmap( QPixmap::fromMimeSource( "designer_s_down.png" ) ); Widget11Layout->addWidget( colDown, 4, 1 ); colNew = new QPushButton( Widget11, "colNew" ); Widget11Layout->addWidget( colNew, 0, 1 ); colUp = new QPushButton( Widget11, "colUp" ); colUp->setPixmap( QPixmap::fromMimeSource( "designer_s_up.png" ) ); Widget11Layout->addWidget( colUp, 3, 1 ); colPreview = new QListBox( Widget11, "colPreview" ); Widget11Layout->addMultiCellWidget( colPreview, 0, 4, 0, 0 ); Vertical_Spacing2 = new QSpacerItem( 20, 20, QSizePolicy::Minimum, QSizePolicy::Expanding ); Widget11Layout->addItem( Vertical_Spacing2, 2, 1 ); tabWidget->insertTab( Widget11, QString("") ); ListViewEditorBaseLayout->addWidget( tabWidget ); Layout1 = new QHBoxLayout( 0, 0, 6, "Layout1"); helpButton = new QPushButton( this, "helpButton" ); helpButton->setAutoDefault( TRUE ); Layout1->addWidget( helpButton ); Horizontal_Spacing2 = new QSpacerItem( 20, 20, QSizePolicy::Expanding, QSizePolicy::Minimum ); Layout1->addItem( Horizontal_Spacing2 ); applyButton = new QPushButton( this, "applyButton" ); applyButton->setAutoDefault( TRUE ); Layout1->addWidget( applyButton ); okButton = new QPushButton( this, "okButton" ); okButton->setAutoDefault( TRUE ); okButton->setDefault( TRUE ); Layout1->addWidget( okButton ); cancelButton = new QPushButton( this, "cancelButton" ); cancelButton->setAutoDefault( TRUE ); Layout1->addWidget( cancelButton ); ListViewEditorBaseLayout->addLayout( Layout1 ); languageChange(); resize( QSize(567, 398).expandedTo(minimumSizeHint()) ); clearWState( WState_Polished ); // signals and slots connections connect( cancelButton, SIGNAL( clicked() ), this, SLOT( reject() ) ); connect( itemNew, SIGNAL( clicked() ), this, SLOT( itemNewClicked() ) ); connect( itemDelete, SIGNAL( clicked() ), this, SLOT( itemDeleteClicked() ) ); connect( itemUp, SIGNAL( clicked() ), this, SLOT( itemUpClicked() ) ); connect( itemDown, SIGNAL( clicked() ), this, SLOT( itemDownClicked() ) ); connect( itemColumn, SIGNAL( valueChanged(int) ), this, SLOT( itemColChanged(int) ) ); connect( itemText, SIGNAL( textChanged(const QString&) ), this, SLOT( itemTextChanged(const QString&) ) ); connect( itemDeletePixmap, SIGNAL( clicked() ), this, SLOT( itemPixmapDeleted() ) ); connect( itemChoosePixmap, SIGNAL( clicked() ), this, SLOT( itemPixmapChoosen() ) ); connect( colNew, SIGNAL( clicked() ), this, SLOT( newColumnClicked() ) ); connect( colDelete, SIGNAL( clicked() ), this, SLOT( deleteColumnClicked() ) ); connect( colUp, SIGNAL( clicked() ), this, SLOT( columnUpClicked() ) ); connect( colDown, SIGNAL( clicked() ), this, SLOT( columnDownClicked() ) ); connect( colText, SIGNAL( textChanged(const QString&) ), this, SLOT( columnTextChanged(const QString&) ) ); connect( colDeletePixmap, SIGNAL( clicked() ), this, SLOT( columnPixmapDeleted() ) ); connect( colChoosePixmap, SIGNAL( clicked() ), this, SLOT( columnPixmapChosen() ) ); connect( colResizable, SIGNAL( toggled(bool) ), this, SLOT( columnResizable(bool) ) ); connect( colClickable, SIGNAL( toggled(bool) ), this, SLOT( columnClickable(bool) ) ); connect( tabWidget, SIGNAL( selected(const QString&) ), this, SLOT( initTabPage(const QString&) ) ); connect( okButton, SIGNAL( clicked() ), this, SLOT( okClicked() ) ); connect( applyButton, SIGNAL( clicked() ), this, SLOT( applyClicked() ) ); connect( colPreview, SIGNAL( currentChanged(QListBoxItem*) ), this, SLOT( currentColumnChanged(QListBoxItem*) ) ); connect( colPreview, SIGNAL( selectionChanged(QListBoxItem*) ), this, SLOT( currentColumnChanged(QListBoxItem*) ) ); connect( itemsPreview, SIGNAL( currentChanged(QListViewItem*) ), this, SLOT( currentItemChanged(QListViewItem*) ) ); connect( itemsPreview, SIGNAL( selectionChanged(QListViewItem*) ), this, SLOT( currentItemChanged(QListViewItem*) ) ); connect( itemNewSub, SIGNAL( clicked() ), this, SLOT( itemNewSubClicked() ) ); connect( itemLeft, SIGNAL( clicked() ), this, SLOT( itemLeftClicked() ) ); connect( itemRight, SIGNAL( clicked() ), this, SLOT( itemRightClicked() ) ); // tab order setTabOrder( okButton, cancelButton ); setTabOrder( cancelButton, tabWidget ); setTabOrder( tabWidget, itemsPreview ); setTabOrder( itemsPreview, itemNew ); setTabOrder( itemNew, itemNewSub ); setTabOrder( itemNewSub, itemDelete ); setTabOrder( itemDelete, itemUp ); setTabOrder( itemUp, itemDown ); setTabOrder( itemDown, itemLeft ); setTabOrder( itemLeft, itemRight ); setTabOrder( itemRight, itemColumn ); setTabOrder( itemColumn, itemText ); setTabOrder( itemText, itemDeletePixmap ); setTabOrder( itemDeletePixmap, itemChoosePixmap ); setTabOrder( itemChoosePixmap, helpButton ); setTabOrder( helpButton, applyButton ); setTabOrder( applyButton, colPreview ); setTabOrder( colPreview, colNew ); setTabOrder( colNew, colDelete ); setTabOrder( colDelete, colUp ); setTabOrder( colUp, colDown ); setTabOrder( colDown, colText ); setTabOrder( colText, colDeletePixmap ); setTabOrder( colDeletePixmap, colChoosePixmap ); setTabOrder( colChoosePixmap, colClickable ); setTabOrder( colClickable, colResizable ); // buddies Label2->setBuddy( itemChoosePixmap ); Label1->setBuddy( itemText ); Label4->setBuddy( itemColumn ); Label2_2->setBuddy( colChoosePixmap ); Label1_2->setBuddy( colText ); init(); }
/* * Constructs a TableEditorBase as a child of 'parent', with the * name 'name' and widget flags set to 'f'. * * The dialog will by default be modeless, unless you set 'modal' to * TRUE to construct a modal dialog. */ TableEditorBase::TableEditorBase( QWidget* parent, const char* name, bool modal, WFlags fl ) : QDialog( parent, name, modal, fl ) { if ( !name ) setName( "TableEditorBase" ); setSizeGripEnabled( TRUE ); TableEditorBaseLayout = new QGridLayout( this, 1, 1, 11, 6, "TableEditorBaseLayout"); table = new QTable( this, "table" ); table->setNumRows( 1 ); table->setNumCols( 1 ); table->setReadOnly( TRUE ); TableEditorBaseLayout->addWidget( table, 0, 0 ); Layout11 = new QHBoxLayout( 0, 0, 6, "Layout11"); buttonHelp = new QPushButton( this, "buttonHelp" ); buttonHelp->setAutoDefault( TRUE ); Layout11->addWidget( buttonHelp ); Horizontal_Spacing2 = new QSpacerItem( 20, 20, QSizePolicy::Expanding, QSizePolicy::Minimum ); Layout11->addItem( Horizontal_Spacing2 ); buttonApply = new QPushButton( this, "buttonApply" ); buttonApply->setAutoDefault( TRUE ); Layout11->addWidget( buttonApply ); buttonOk = new QPushButton( this, "buttonOk" ); buttonOk->setAutoDefault( TRUE ); buttonOk->setDefault( TRUE ); Layout11->addWidget( buttonOk ); buttonCancel = new QPushButton( this, "buttonCancel" ); buttonCancel->setAutoDefault( TRUE ); Layout11->addWidget( buttonCancel ); TableEditorBaseLayout->addMultiCellLayout( Layout11, 1, 1, 0, 1 ); TabWidget = new QTabWidget( this, "TabWidget" ); columns_tab = new QWidget( TabWidget, "columns_tab" ); columns_tabLayout = new QGridLayout( columns_tab, 1, 1, 11, 6, "columns_tabLayout"); Spacer3 = new QSpacerItem( 20, 20, QSizePolicy::Expanding, QSizePolicy::Minimum ); columns_tabLayout->addItem( Spacer3, 4, 2 ); listColumns = new QListBox( columns_tab, "listColumns" ); columns_tabLayout->addMultiCellWidget( listColumns, 0, 5, 0, 0 ); Spacer2 = new QSpacerItem( 20, 20, QSizePolicy::Minimum, QSizePolicy::Expanding ); columns_tabLayout->addItem( Spacer2, 3, 1 ); buttonColumnUp = new QPushButton( columns_tab, "buttonColumnUp" ); buttonColumnUp->setPixmap( QPixmap::fromMimeSource( "designer_s_up.png" ) ); columns_tabLayout->addWidget( buttonColumnUp, 4, 1 ); buttonColumnDown = new QPushButton( columns_tab, "buttonColumnDown" ); buttonColumnDown->setPixmap( QPixmap::fromMimeSource( "designer_s_down.png" ) ); columns_tabLayout->addWidget( buttonColumnDown, 5, 1 ); buttonDeleteColumn = new QPushButton( columns_tab, "buttonDeleteColumn" ); columns_tabLayout->addWidget( buttonDeleteColumn, 1, 1 ); buttonNewColumn = new QPushButton( columns_tab, "buttonNewColumn" ); columns_tabLayout->addWidget( buttonNewColumn, 0, 1 ); Layout6 = new QGridLayout( 0, 1, 1, 0, 6, "Layout6"); labelTable = new QLabel( columns_tab, "labelTable" ); Layout6->addWidget( labelTable, 0, 0 ); Layout2 = new QHBoxLayout( 0, 0, 6, "Layout2"); labelColumnPixmap = new QLabel( columns_tab, "labelColumnPixmap" ); Layout2->addWidget( labelColumnPixmap ); buttonDeleteColPixmap = new QPushButton( columns_tab, "buttonDeleteColPixmap" ); buttonDeleteColPixmap->setMaximumSize( QSize( 30, 22 ) ); buttonDeleteColPixmap->setPixmap( QPixmap::fromMimeSource( "designer_s_editcut.png" ) ); Layout2->addWidget( buttonDeleteColPixmap ); buttonChooseColPixmap = new QPushButton( columns_tab, "buttonChooseColPixmap" ); buttonChooseColPixmap->setMaximumSize( QSize( 30, 22 ) ); Layout2->addWidget( buttonChooseColPixmap ); Layout6->addLayout( Layout2, 3, 1 ); TextLabel2 = new QLabel( columns_tab, "TextLabel2" ); Layout6->addWidget( TextLabel2, 2, 0 ); Label2 = new QLabel( columns_tab, "Label2" ); Layout6->addWidget( Label2, 3, 0 ); labelFields = new QLabel( columns_tab, "labelFields" ); Layout6->addWidget( labelFields, 1, 0 ); editColumnText = new QLineEdit( columns_tab, "editColumnText" ); Layout6->addWidget( editColumnText, 2, 1 ); comboFields = new QComboBox( FALSE, columns_tab, "comboFields" ); comboFields->setEditable( TRUE ); Layout6->addWidget( comboFields, 1, 1 ); labelTableValue = new QLabel( columns_tab, "labelTableValue" ); Layout6->addWidget( labelTableValue, 0, 1 ); columns_tabLayout->addMultiCellLayout( Layout6, 2, 2, 1, 2 ); TabWidget->insertTab( columns_tab, QString("") ); rows_tab = new QWidget( TabWidget, "rows_tab" ); rows_tabLayout = new QGridLayout( rows_tab, 1, 1, 11, 6, "rows_tabLayout"); Spacer3_2 = new QSpacerItem( 20, 20, QSizePolicy::Expanding, QSizePolicy::Minimum ); rows_tabLayout->addItem( Spacer3_2, 4, 2 ); buttonRowUp = new QPushButton( rows_tab, "buttonRowUp" ); buttonRowUp->setPixmap( QPixmap::fromMimeSource( "designer_s_up.png" ) ); rows_tabLayout->addWidget( buttonRowUp, 4, 1 ); listRows = new QListBox( rows_tab, "listRows" ); rows_tabLayout->addMultiCellWidget( listRows, 0, 5, 0, 0 ); buttonRowDown = new QPushButton( rows_tab, "buttonRowDown" ); buttonRowDown->setPixmap( QPixmap::fromMimeSource( "designer_s_down.png" ) ); rows_tabLayout->addWidget( buttonRowDown, 5, 1 ); Spacer2_2 = new QSpacerItem( 20, 20, QSizePolicy::Minimum, QSizePolicy::Expanding ); rows_tabLayout->addItem( Spacer2_2, 3, 1 ); buttonNewRow = new QPushButton( rows_tab, "buttonNewRow" ); rows_tabLayout->addWidget( buttonNewRow, 0, 1 ); buttonDeleteRow = new QPushButton( rows_tab, "buttonDeleteRow" ); rows_tabLayout->addWidget( buttonDeleteRow, 1, 1 ); Layout7_2 = new QGridLayout( 0, 1, 1, 0, 6, "Layout7_2"); TextLabel2_3 = new QLabel( rows_tab, "TextLabel2_3" ); Layout7_2->addWidget( TextLabel2_3, 0, 0 ); Label2_2 = new QLabel( rows_tab, "Label2_2" ); Layout7_2->addWidget( Label2_2, 1, 0 ); Layout2_2 = new QHBoxLayout( 0, 0, 6, "Layout2_2"); labelRowPixmap = new QLabel( rows_tab, "labelRowPixmap" ); Layout2_2->addWidget( labelRowPixmap ); buttonDeleteRowPixmap = new QPushButton( rows_tab, "buttonDeleteRowPixmap" ); buttonDeleteRowPixmap->setMaximumSize( QSize( 30, 22 ) ); buttonDeleteRowPixmap->setPixmap( QPixmap::fromMimeSource( "designer_s_editcut.png" ) ); Layout2_2->addWidget( buttonDeleteRowPixmap ); buttonChooseRowPixmap = new QPushButton( rows_tab, "buttonChooseRowPixmap" ); buttonChooseRowPixmap->setMaximumSize( QSize( 30, 22 ) ); Layout2_2->addWidget( buttonChooseRowPixmap ); Layout7_2->addLayout( Layout2_2, 1, 1 ); editRowText = new QLineEdit( rows_tab, "editRowText" ); Layout7_2->addWidget( editRowText, 0, 1 ); rows_tabLayout->addMultiCellLayout( Layout7_2, 2, 2, 1, 2 ); TabWidget->insertTab( rows_tab, QString("") ); TableEditorBaseLayout->addWidget( TabWidget, 0, 1 ); languageChange(); resize( QSize(484, 406).expandedTo(minimumSizeHint()) ); clearWState( WState_Polished ); // signals and slots connections connect( buttonApply, SIGNAL( clicked() ), this, SLOT( applyClicked() ) ); connect( buttonOk, SIGNAL( clicked() ), this, SLOT( okClicked() ) ); connect( listColumns, SIGNAL( currentChanged(QListBoxItem*) ), this, SLOT( currentColumnChanged(QListBoxItem*) ) ); connect( listColumns, SIGNAL( selectionChanged(QListBoxItem*) ), this, SLOT( currentColumnChanged(QListBoxItem*) ) ); connect( editColumnText, SIGNAL( textChanged(const QString&) ), this, SLOT( columnTextChanged(const QString&) ) ); connect( buttonNewColumn, SIGNAL( clicked() ), this, SLOT( newColumnClicked() ) ); connect( buttonDeleteColumn, SIGNAL( clicked() ), this, SLOT( deleteColumnClicked() ) ); connect( buttonColumnUp, SIGNAL( clicked() ), this, SLOT( columnUpClicked() ) ); connect( buttonColumnDown, SIGNAL( clicked() ), this, SLOT( columnDownClicked() ) ); connect( comboFields, SIGNAL( activated(const QString&) ), this, SLOT( currentFieldChanged(const QString&) ) ); connect( listRows, SIGNAL( selectionChanged(QListBoxItem*) ), this, SLOT( currentRowChanged(QListBoxItem*) ) ); connect( listRows, SIGNAL( currentChanged(QListBoxItem*) ), this, SLOT( currentRowChanged(QListBoxItem*) ) ); connect( buttonNewRow, SIGNAL( clicked() ), this, SLOT( newRowClicked() ) ); connect( buttonDeleteRow, SIGNAL( clicked() ), this, SLOT( deleteRowClicked() ) ); connect( buttonRowUp, SIGNAL( clicked() ), this, SLOT( rowUpClicked() ) ); connect( buttonRowDown, SIGNAL( clicked() ), this, SLOT( rowDownClicked() ) ); connect( buttonChooseRowPixmap, SIGNAL( clicked() ), this, SLOT( chooseRowPixmapClicked() ) ); connect( buttonDeleteColPixmap, SIGNAL( clicked() ), this, SLOT( deleteColPixmapClicked() ) ); connect( editRowText, SIGNAL( textChanged(const QString&) ), this, SLOT( rowTextChanged(const QString&) ) ); connect( buttonCancel, SIGNAL( clicked() ), this, SLOT( reject() ) ); connect( buttonChooseColPixmap, SIGNAL( clicked() ), this, SLOT( chooseColPixmapClicked() ) ); connect( buttonDeleteRowPixmap, SIGNAL( clicked() ), this, SLOT( deleteRowPixmapClicked() ) ); // tab order setTabOrder( buttonOk, buttonCancel ); setTabOrder( buttonCancel, table ); setTabOrder( table, TabWidget ); setTabOrder( TabWidget, listColumns ); setTabOrder( listColumns, buttonNewColumn ); setTabOrder( buttonNewColumn, buttonDeleteColumn ); setTabOrder( buttonDeleteColumn, comboFields ); setTabOrder( comboFields, editColumnText ); setTabOrder( editColumnText, buttonDeleteColPixmap ); setTabOrder( buttonDeleteColPixmap, buttonChooseColPixmap ); setTabOrder( buttonChooseColPixmap, buttonColumnUp ); setTabOrder( buttonColumnUp, buttonColumnDown ); setTabOrder( buttonColumnDown, buttonApply ); setTabOrder( buttonApply, listRows ); setTabOrder( listRows, buttonNewRow ); setTabOrder( buttonNewRow, buttonDeleteRow ); setTabOrder( buttonDeleteRow, editRowText ); setTabOrder( editRowText, buttonDeleteRowPixmap ); setTabOrder( buttonDeleteRowPixmap, buttonChooseRowPixmap ); setTabOrder( buttonChooseRowPixmap, buttonRowUp ); setTabOrder( buttonRowUp, buttonRowDown ); setTabOrder( buttonRowDown, buttonHelp ); // buddies TextLabel2->setBuddy( editColumnText ); labelFields->setBuddy( comboFields ); TextLabel2_3->setBuddy( editRowText ); init(); }