EntryFilterDialog::EntryFilterDialog(EntryFilter &entryFilter) : QDialog() , m_ui(new Ui::EntryFilterDialog) , m_entryFilter(entryFilter) { m_ui->setupUi(this); setupEntryCounts(); setupCheckBoxes(); setupConnections(); updateTotal(); if (!Prefs::wordTypesInPracticeEnabled()) { m_ui->wordTypeLabel->setVisible(false); m_ui->wordTypeCheckBox->setVisible(false); } }
KReplaceDialog::KReplaceDialog( ReplaceTool* tool, QWidget* parent ) : KAbstractFindDialog( parent ), mTool( tool ) { setCaption( i18nc("@title:window","Replace Bytes") ); setButtonGuiItem( Ok, KGuiItem( i18nc("@action;button", "&Replace"), QLatin1String("edit-find-replace"), i18nc("@info:tooltip","Start replace"), i18nc("@info:whatsthis", "If you press the <interface>Replace</interface> button, " "the bytes you entered above are searched for within " "the byte array and any occurrence is replaced with " "the replacement bytes.")) ); setupFindBox(); // replace term QGroupBox *ReplaceBox = new QGroupBox( i18nc("@title:group","Replace With"), mainWidget() ); QVBoxLayout *ReplaceBoxLayout = new QVBoxLayout; ReplaceDataEdit = new Okteta::ByteArrayComboBox( ReplaceBox ); const QString toolTip = i18nc("@info:tooltip", "Enter the bytes to replace with, or select bytes previously replaced with from the list."); ReplaceDataEdit->setToolTip( toolTip ); ReplaceBoxLayout->addWidget( ReplaceDataEdit ); ReplaceBox->setLayout( ReplaceBoxLayout ); setupOperationBox( ReplaceBox ); // PromptCheckBox = new QCheckBox( i18nc("@option:check","&Prompt on replace") ); PromptCheckBox->setWhatsThis( i18nc("@info:whatsthis","Ask before replacing each match found.") ); setupCheckBoxes( PromptCheckBox ); enableButtonOk( false ); setModal( true ); }
void ToolBarPage::createContent() { TemplatePage::createContent(); setupCheckBoxes(); setupSliders(); resetButton = new MButton(); resetButton->setObjectName("resetButton"); resetButton->setStyleName(inv("CommonSingleButton")); connect(resetButton, SIGNAL(clicked()), this, SLOT(reset())); containerPolicy->addItem(resetButton, Qt::AlignCenter); callList = new MList; callList->setObjectName("callList"); cellCreator = new MContentItemCreator; callList->setCellCreator(cellCreator); callModel = new TestModel; callModel->setObjectName("callModel"); callList->setItemModel(callModel); containerPolicy->addItem(callList); showCallDataAsGrid(); toolsConfiguration(); toolsAction = new MAction(this); toolsAction->setObjectName("toolsAction"); toolsAction->setLocation(MAction::ApplicationMenuLocation); connect(toolsAction, SIGNAL(triggered()), this, SLOT(toolsConfiguration())); addAction(toolsAction); textButtonsAction = new MAction(this); textButtonsAction->setObjectName("textButtonsAction"); textButtonsAction->setLocation(MAction::ApplicationMenuLocation); connect(textButtonsAction, SIGNAL(triggered()), this, SLOT(textButtonsConfiguration())); addAction(textButtonsAction); textFieldAction = new MAction(this); textFieldAction->setObjectName("textFieldAction"); textFieldAction->setLocation(MAction::ApplicationMenuLocation); connect(textFieldAction, SIGNAL(triggered()), this, SLOT(textFieldConfiguration())); addAction(textFieldAction); iconTabsAction = new MAction(this); iconTabsAction->setObjectName("iconTabsAction"); iconTabsAction->setLocation(MAction::ApplicationMenuLocation); connect(iconTabsAction, SIGNAL(triggered()), this, SLOT(iconTabsBottomConfiguration())); addAction(iconTabsAction); iconAndLabelTabsAction = new MAction(this); iconAndLabelTabsAction->setObjectName("iconAndLabelTabsAction"); iconAndLabelTabsAction->setLocation(MAction::ApplicationMenuLocation); connect(iconAndLabelTabsAction, SIGNAL(triggered()), this, SLOT(iconAndLabelTabsBottomConfiguration())); addAction(iconAndLabelTabsAction); iconTabsTopAction = new MAction(this); iconTabsTopAction->setObjectName("iconTabsTopAction"); iconTabsTopAction->setLocation(MAction::ApplicationMenuLocation); connect(iconTabsTopAction, SIGNAL(triggered()), this, SLOT(iconTabsTopConfiguration())); addAction(iconTabsTopAction); connect(this, SIGNAL(appearing()), this, SLOT(onAppear())); connect(this, SIGNAL(disappearing()), this, SLOT(onDisappear())); retranslateUi(); }