fieldManager::fieldManager(QWidget *parent) : groupBoxCollapse(parent) { this->itemModel = NULL; this->LayoutVertical = new QVBoxLayout(this); this->LayoutHorizontal = new QHBoxLayout(); this->HorizontalSpacer = new QSpacerItem(1, 1, QSizePolicy::Expanding, QSizePolicy::Minimum); this->ListView = new QListView(this); this->ButtonAdd = new QPushButton(tr("add"),this); this->ButtonAdd->setIcon(QIcon(":/toolbar/edit_add.png")); this->ButtonRemove = new QPushButton(tr("remove"),this); this->ButtonRemove->setIcon(QIcon(":/toolbar/editdelete.png")); this->ComboBoxChooser = new QComboBox(this); this->ComboBoxChooser->setEditable(true); this->LayoutHorizontal->addWidget(this->ComboBoxChooser); this->LayoutHorizontal->addSpacerItem(this->HorizontalSpacer); this->LayoutHorizontal->addWidget(this->ButtonAdd); this->LayoutHorizontal->addWidget(this->ButtonRemove); this->LayoutVertical->addWidget(this->ListView); this->LayoutVertical->addLayout(LayoutHorizontal); connect(this->ButtonAdd,SIGNAL(clicked()),this,SLOT(addButtonClicked())); connect(this->ButtonRemove,SIGNAL(clicked()),this,SLOT(removeButtonClicked())); }
SettingsSelector::SettingsSelector(QWidget *parent) : QWidget(parent) { QHBoxLayout *layout = new QHBoxLayout(this); layout->setContentsMargins(0, 0, 0, 0); layout->setSpacing(6); m_configurationCombo = new QComboBox(this); m_configurationCombo->setSizeAdjustPolicy(QComboBox::AdjustToContents); m_configurationCombo->setMinimumContentsLength(80); m_addButton = new QPushButton(tr("Add"), this); m_removeButton = new QPushButton(tr("Remove"), this); m_renameButton = new QPushButton(tr("Rename"), this); m_label = new QLabel(this); m_label->setMinimumWidth(200); m_label->setBuddy(m_configurationCombo); layout->addWidget(m_label); layout->addWidget(m_configurationCombo); layout->addWidget(m_addButton); layout->addWidget(m_removeButton); layout->addWidget(m_renameButton); layout->addSpacerItem(new QSpacerItem(0, 0)); updateButtonState(); connect(m_addButton, SIGNAL(clicked()), this, SIGNAL(add())); connect(m_removeButton, SIGNAL(clicked()), this, SLOT(removeButtonClicked())); connect(m_renameButton, SIGNAL(clicked()), this, SLOT(renameButtonClicked())); connect(m_configurationCombo, SIGNAL(currentIndexChanged(int)), this, SIGNAL(currentChanged(int))); }
ContentTab::ContentTab(QWidget *parent, ObjectStore *store) : DialogTab(parent), _store(store) { setupUi(this); _up->setIcon(KstGetIcon("kst_uparrow")); _down->setIcon(KstGetIcon("kst_downarrow")); _add->setIcon(KstGetIcon("kst_rightarrow")); _remove->setIcon(KstGetIcon("kst_leftarrow")); _up->setToolTip(tr("Raise in plot order: Alt+Up")); _down->setToolTip(tr("Lower in plot order: Alt+Down")); _add->setToolTip(tr("Select: Alt+s")); _remove->setToolTip(tr("Remove: Alt+r")); connect(_add, SIGNAL(clicked()), this, SLOT(addButtonClicked())); connect(_remove, SIGNAL(clicked()), this, SLOT(removeButtonClicked())); connect(_up, SIGNAL(clicked()), this, SLOT(upButtonClicked())); connect(_down, SIGNAL(clicked()), this, SLOT(downButtonClicked())); connect(_add, SIGNAL(clicked()), this, SIGNAL(modified())); connect(_remove, SIGNAL(clicked()), this, SIGNAL(modified())); connect(_up, SIGNAL(clicked()), this, SIGNAL(modified())); connect(_down, SIGNAL(clicked()), this, SIGNAL(modified())); connect(_availableRelationList, SIGNAL(itemDoubleClicked(QListWidgetItem*)), this, SLOT(availableDoubleClicked(QListWidgetItem*))); connect(_displayedRelationList, SIGNAL(itemDoubleClicked(QListWidgetItem*)), this, SLOT(displayedDoubleClicked(QListWidgetItem*))); connect(_availableRelationList, SIGNAL(itemSelectionChanged()), this, SLOT(updateButtons())); connect(_displayedRelationList, SIGNAL(itemSelectionChanged()), this, SLOT(updateButtons())); connect(_editSelectedAvailable, SIGNAL(clicked()), this, SLOT(editSelectedAvailable())); connect(_editSelectedDisplayed, SIGNAL(clicked()), this, SLOT(editSelectedDisplayed())); }
ExportVectorsDialog::ExportVectorsDialog(QWidget *parent) : QDialog(parent) { setupUi(this); MainWindow::setWidgetFlags(this); _saveLocationLabel->setBuddy(_saveLocation->_fileEdit); _saveLocation->setFile(_dialogDefaults->value("vectorexport/filename",QDir::currentPath()).toString()); if (MainWindow *mw = qobject_cast<MainWindow*>(parent)) { _store = mw->document()->objectStore(); } else { // FIXME: we need the object store qFatal("ERROR: can't construct a ExportVectorsDialog without the object store"); } connect(_add, SIGNAL(clicked()), this, SLOT(addButtonClicked())); connect(_remove, SIGNAL(clicked()), this, SLOT(removeButtonClicked())); connect(_removeAll, SIGNAL(clicked()), this, SLOT(removeAll())); connect(_addAll, SIGNAL(clicked()), this, SLOT(addAll())); connect(_changeVectorList, SIGNAL(itemDoubleClicked ( QListWidgetItem * )), this, SLOT(availableDoubleClicked(QListWidgetItem *))); connect(_selectedVectorList, SIGNAL(itemDoubleClicked ( QListWidgetItem * )), this, SLOT(selectedDoubleClicked(QListWidgetItem *))); connect(_changeVectorList, SIGNAL(itemSelectionChanged()), this, SLOT(updateButtons())); connect(_selectedVectorList, SIGNAL(itemSelectionChanged()), this, SLOT(updateButtons())); connect(_buttonBox->button(QDialogButtonBox::Ok), SIGNAL(clicked()), this, SLOT(OKClicked())); connect(_buttonBox->button(QDialogButtonBox::Apply), SIGNAL(clicked()), this, SLOT(apply())); }
//============================================================================= //============================================================================= //============================================================================= PluginFrame::PluginFrame( QString pluginName, QWidget * parent) :QFrame(parent) { plgName = pluginName; // labels labelsLay = new QVBoxLayout() ; nameLabel = new QLabel(); nameLabel->setText(pluginName); nameLabel->setAlignment(Qt::AlignHCenter); labelsLay->addWidget(nameLabel); descrLabel = new QLabel(); descrLabel->setText("# # # # # # # # # #"); // "plugin description will appear here someday"); descrLabel->setWordWrap(true); labelsLay->addWidget(descrLabel); // buttons buttonsLay = new QVBoxLayout() ; removeBtn = new QPushButton() ; removeBtn->setText( tr("Remove") ) ; connect( removeBtn, SIGNAL( clicked() ) , this , SLOT ( removeButtonClicked() ) ) ; buttonsLay->addWidget( removeBtn ) ; //all together mainLay = new QHBoxLayout(this); mainLay->addLayout(labelsLay); mainLay->addLayout(buttonsLay); this->setFrameStyle(QFrame::Box | QFrame::Raised); }
void KSwitchLanguageDialogPrivate::addLanguageButton(const QString & languageCode, bool primaryLanguage) { QString labelText = primaryLanguage ? i18n("Primary language:") : i18n("Fallback language:"); KLanguageButton *languageButton = new KLanguageButton(page); fillApplicationLanguages(languageButton); languageButton->setCurrentItem(languageCode); QObject::connect( languageButton, SIGNAL(activated(const QString &)), p, SLOT(languageOnButtonChanged(const QString &)) ); LanguageRowData languageRowData; KPushButton *removeButton = 0; if (!primaryLanguage) { removeButton = new KPushButton(i18n("Remove"), page); QObject::connect( removeButton, SIGNAL(clicked()), p, SLOT(removeButtonClicked()) ); } languageButton->setToolTip(primaryLanguage ? i18n("This is the main application language which will be used first, before any other languages.") : i18n("This is the language which will be used if any previous languages do not contain a proper translation.")); int numRows = languagesLayout->rowCount(); QLabel *languageLabel = new QLabel(labelText, page); languagesLayout->addWidget( languageLabel, numRows + 1, 1, Qt::AlignLeft ); languagesLayout->addWidget( languageButton, numRows + 1, 2, Qt::AlignLeft ); if (!primaryLanguage) { languagesLayout->addWidget( removeButton, numRows + 1, 3, Qt::AlignLeft ); languageRowData.setRowWidgets( languageLabel, languageButton, removeButton ); removeButton->show(); } languageRows.insert(removeButton, languageRowData); languageButtons.append(languageButton); languageButton->show(); languageLabel->show(); }
PlayerRowWidget::PlayerRowWidget(const QString &a_playerName, QWidget *parent) : QWidget(parent) { m_playerName = new QLabel(a_playerName); m_removeButton = new QPushButton(tr("Remove"),this); m_editButton = new QPushButton(tr("Edit"), this); connect(m_removeButton, SIGNAL(clicked()), this, SLOT(removeButtonClicked())); m_playerName->setFixedWidth(205); setFixedSize(QSize(420,45)); QLabel *iconLabel = new QLabel(); //just for testing // Create seed for the random // That is needed only once on application startup QTime time = QTime::currentTime(); qsrand((uint)time.msec()); // Get random value between 0-5 int randomValue = qrand() % ((5 + 1) - 0) + 0; switch (randomValue) { case 0: iconLabel->setPixmap(QPixmap("://House_Baratheon.resized.PNG")); break; case 1: iconLabel->setPixmap(QPixmap("://House_Greyjoy.resized.PNG")); break; case 2: iconLabel->setPixmap(QPixmap("://House_Martell.resized.PNG")); break; case 3: iconLabel->setPixmap(QPixmap("://House_Stark.resized.PNG")); break; case 4: iconLabel->setPixmap(QPixmap("://House_Lannister.resized.PNG")); break; case 5: iconLabel->setPixmap(QPixmap("://House_Targaryen.resized.PNG")); break; } //iconLabel->setPixmap(QPixmap("://House_Baratheon.resized.PNG")); QHBoxLayout *layout = new QHBoxLayout; layout->addWidget(m_playerName); layout->addWidget(iconLabel); layout->addWidget(m_editButton); layout->addWidget(m_removeButton); setLayout(layout); }
LegendTab::LegendTab(QWidget *parent) : DialogTab(parent) { setupUi(this); _single = true; _up->setIcon(QPixmap(":kst_uparrow.png")); _down->setIcon(QPixmap(":kst_downarrow.png")); _add->setIcon(QPixmap(":kst_rightarrow.png")); _remove->setIcon(QPixmap(":kst_leftarrow.png")); _up->setToolTip(i18n("Raise in list order: Alt+Up")); _down->setToolTip(i18n("Lower in list order: Alt+Down")); _add->setToolTip(i18n("Select: Alt+s")); _remove->setToolTip(i18n("Remove: Alt+r")); connect(_add, SIGNAL(clicked()), this, SLOT(addButtonClicked())); connect(_remove, SIGNAL(clicked()), this, SLOT(removeButtonClicked())); connect(_up, SIGNAL(clicked()), this, SLOT(upButtonClicked())); connect(_down, SIGNAL(clicked()), this, SLOT(downButtonClicked())); connect(_add, SIGNAL(clicked()), this, SIGNAL(modified())); connect(_remove, SIGNAL(clicked()), this, SIGNAL(modified())); connect(_up, SIGNAL(clicked()), this, SIGNAL(modified())); connect(_down, SIGNAL(clicked()), this, SIGNAL(modified())); connect(_availableRelationList, SIGNAL(itemSelectionChanged()), this, SLOT(updateButtons())); connect(_displayedRelationList, SIGNAL(itemSelectionChanged()), this, SLOT(updateButtons())); connect(_availableRelationList, SIGNAL(itemDoubleClicked(QListWidgetItem*)), this, SLOT(addButtonClicked())); connect(_displayedRelationList, SIGNAL(itemDoubleClicked(QListWidgetItem*)), this, SLOT(removeButtonClicked())); connect(_autoContents, SIGNAL(stateChanged(int)), this, SLOT(updateActive())); connect(_autoContents, SIGNAL(stateChanged(int)), this, SIGNAL(modified())); connect(_displayVertically, SIGNAL(stateChanged(int)), this, SIGNAL(modified())); connect(_title, SIGNAL(textChanged(const QString&)), this, SIGNAL(modified())); connect(_fontSize, SIGNAL(valueChanged(double)), this, SIGNAL(modified())); connect(_bold, SIGNAL(stateChanged(int)), this, SIGNAL(modified())); connect(_underline, SIGNAL(stateChanged(int)), this, SIGNAL(modified())); connect(_italic, SIGNAL(stateChanged(int)), this, SIGNAL(modified())); connect(_family, SIGNAL(currentIndexChanged(int)), this, SIGNAL(modified())); _displayedRelationList->setSortingEnabled(false); _availableRelationList->setSortingEnabled(false); }
QList<QToolButton *> ConnectionViewWidget::createToolBarWidgets() { QList<QToolButton *> buttons; buttons << new QToolButton(); buttons.last()->setIcon(QIcon(QStringLiteral(":/connectionview/plus.png"))); buttons.last()->setToolTip(tr("Add binding or connection")); connect(buttons.last(), SIGNAL(clicked()), this, SLOT(addButtonClicked())); connect(this, SIGNAL(setEnabledAddButtonChanged(bool)), buttons.last(), SLOT(setEnabled(bool))); buttons << new QToolButton(); buttons.last()->setIcon(QIcon(QStringLiteral(":/connectionview/minus.png"))); buttons.last()->setToolTip(tr("Remove selected binding or connection")); buttons.last()->setShortcut(QKeySequence(Qt::Key_Delete)); connect(buttons.last(), SIGNAL(clicked()), this, SLOT(removeButtonClicked())); connect(this, SIGNAL(setEnabledRemoveButtonChanged(bool)), buttons.last(), SLOT(setEnabled(bool))); return buttons; }
ChangeFileDialog::ChangeFileDialog(QWidget *parent) : QDialog(parent), _dataSource(0), _requestID(0) { setupUi(this); MainWindow::setWidgetFlags(this); if (MainWindow *mw = qobject_cast<MainWindow*>(parent)) { _store = mw->document()->objectStore(); } else { // FIXME: we need the object store qFatal("ERROR: can't construct a ChangeFileDialog without the object store"); } connect(_add, SIGNAL(clicked()), this, SLOT(addButtonClicked())); connect(_remove, SIGNAL(clicked()), this, SLOT(removeButtonClicked())); connect(_removeAll, SIGNAL(clicked()), this, SLOT(removeAll())); connect(_addAll, SIGNAL(clicked()), this, SLOT(addAll())); connect(_changeFilePrimitiveList, SIGNAL(itemDoubleClicked(QListWidgetItem*)), this, SLOT(availableDoubleClicked(QListWidgetItem*))); connect(_selectedFilePrimitiveList, SIGNAL(itemDoubleClicked(QListWidgetItem*)), this, SLOT(selectedDoubleClicked(QListWidgetItem*))); connect(_allFromFile, SIGNAL(clicked()), this, SLOT(selectAllFromFile())); connect(_changeFilePrimitiveList, SIGNAL(itemSelectionChanged()), this, SLOT(updateButtons())); connect(_selectedFilePrimitiveList, SIGNAL(itemSelectionChanged()), this, SLOT(updateButtons())); connect(_duplicateSelected, SIGNAL(toggled(bool)), _duplicateDependents, SLOT(setEnabled(bool))); connect(_dataFile, SIGNAL(changed(QString)), this, SLOT(fileNameChanged(QString))); connect(_dataFile, SIGNAL(destroyed()), kstApp->mainWindow(), SLOT(cleanUpDataSourceList())); connect(_buttonBox->button(QDialogButtonBox::Cancel), SIGNAL(clicked()), this, SLOT(reject())); connect(_buttonBox->button(QDialogButtonBox::Ok), SIGNAL(clicked()), this, SLOT(OKClicked())); connect(_buttonBox->button(QDialogButtonBox::Apply), SIGNAL(clicked()), this, SLOT(apply())); connect(_configure, SIGNAL(clicked()), this, SLOT(showConfigWidget())); connect(UpdateServer::self(), SIGNAL(objectListsChanged()), this, SLOT(updatePrimitiveList())); _dataFile->setFile(dialogDefaults().value("changedatafile/newFileName",QDir::currentPath()).toString()); updateButtons(); }
DifferentiateCurvesDialog::DifferentiateCurvesDialog(QWidget *parent) : QDialog(parent) { setupUi(this); if (MainWindow *mw = qobject_cast<MainWindow*>(parent)) { _store = mw->document()->objectStore(); } else { // FIXME: we need the object store qFatal("ERROR: can't construct a DifferentiateCurvesDialog without the object store"); } resetLists(); connect(_buttonBox->button(QDialogButtonBox::Cancel), SIGNAL(clicked()), this, SLOT(reject())); connect(_buttonBox->button(QDialogButtonBox::Ok), SIGNAL(clicked()), this, SLOT(OKClicked())); connect(_buttonBox->button(QDialogButtonBox::Apply), SIGNAL(clicked()), this, SLOT(apply())); connect(_add, SIGNAL(clicked()), this, SLOT(addButtonClicked())); connect(_remove, SIGNAL(clicked()), this, SLOT(removeButtonClicked())); connect(_up, SIGNAL(clicked()), this, SLOT(upButtonClicked())); connect(_down, SIGNAL(clicked()), this, SLOT(downButtonClicked())); connect(_availableListBox, SIGNAL(itemSelectionChanged()), this, SLOT(updateButtons())); connect(_selectedListBox, SIGNAL(itemSelectionChanged()), this, SLOT(updateButtons())); // TODO Icons required. // _up->setIcon(QPixmap(":kst_uparrow.png")); _up->setText("Up"); // _down->setIcon(QPixmap(":kst_downarrow.png")); _down->setText("Down"); // _add->setIcon(QPixmap(":kst_rightarrow.png")); _add->setText("Add"); // _remove->setIcon(QPixmap(":kst_leftarrow.png")); _remove->setText("Remove"); _maxLineWidth->setMaximum(LINEWIDTH_MAX); }
DifferentiateCurvesDialog::DifferentiateCurvesDialog(QWidget *parent) : QDialog(parent) { setupUi(this); if (MainWindow *mw = qobject_cast<MainWindow*>(parent)) { _store = mw->document()->objectStore(); } else { // FIXME: we need the object store qFatal("ERROR: can't construct a DifferentiateCurvesDialog without the object store"); } resetLists(); connect(_buttonBox->button(QDialogButtonBox::Cancel), SIGNAL(clicked()), this, SLOT(reject())); connect(_buttonBox->button(QDialogButtonBox::Ok), SIGNAL(clicked()), this, SLOT(OKClicked())); connect(_buttonBox->button(QDialogButtonBox::Apply), SIGNAL(clicked()), this, SLOT(apply())); connect(_add, SIGNAL(clicked()), this, SLOT(addButtonClicked())); connect(_remove, SIGNAL(clicked()), this, SLOT(removeButtonClicked())); connect(_up, SIGNAL(clicked()), this, SLOT(upButtonClicked())); connect(_down, SIGNAL(clicked()), this, SLOT(downButtonClicked())); connect(_availableListBox, SIGNAL(itemSelectionChanged()), this, SLOT(updateButtons())); connect(_selectedListBox, SIGNAL(itemSelectionChanged()), this, SLOT(updateButtons())); // Use the standard icons _up->setIcon(QPixmap(":kst_uparrow.png")); _down->setIcon(QPixmap(":kst_downarrow.png")); _add->setIcon(QPixmap(":kst_rightarrow.png")); _remove->setIcon(QPixmap(":kst_leftarrow.png")); _up->setToolTip(i18n("Move the selected property up the priority list")); _down->setToolTip(i18n("Move the selected property down the priority list")); _add->setToolTip(i18n("Add the selected property to the list of properties to cycle through")); _remove->setToolTip(i18n("Remove the selected property from the list of properties to cycle through")); _maxLineWidth->setMaximum(LINEWIDTH_MAX); }
AdjustFilterSettings::AdjustFilterSettings(struct signalcompblock *signal_comp, QWidget *w_parent) { int i; char txtbuf[2048]; signalcomp = signal_comp; maincurve = (ViewCurve *)w_parent; mainwindow = maincurve->mainwindow; filtersettings_dialog = new QDialog(w_parent); filtersettings_dialog->setMinimumSize(460, 255); filtersettings_dialog->setMaximumSize(460, 255); strcpy(txtbuf, "Filter settings "); if(signalcomp->alias[0] != 0) { strcat(txtbuf, signalcomp->alias); } else { strcat(txtbuf, signalcomp->signallabel); } filtersettings_dialog->setWindowTitle(txtbuf); filtersettings_dialog->setModal(true); filtersettings_dialog->setAttribute(Qt::WA_DeleteOnClose, true); for(i=0; i<5; i++) { label[i] = new QLabel(filtersettings_dialog); label[i]->setGeometry(10, 10 + (i * 35), 100, 25); } label[0]->setText("Filter"); label[1]->setText("Order"); label[2]->setText("Frequency"); label[3]->setText("Frequency 2"); label[3]->setVisible(false); label[4]->setText("Stepsize"); filterbox = new QComboBox(filtersettings_dialog); filterbox->setGeometry(120, 10, 330, 25); orderbox = new QSpinBox(filtersettings_dialog); orderbox->setGeometry(120, 45, 100, 25); orderbox->setSuffix("th order"); orderbox->setMinimum(1); orderbox->setMaximum(8); orderbox->setValue(1); orderbox->setSingleStep(1); freq1box = new QDoubleSpinBox(filtersettings_dialog); freq1box->setGeometry(120, 80, 180, 25); freq1box->setDecimals(6); freq1box->setSuffix(" Hz"); freq1box->setMinimum(0.0001); freq1box->setMaximum(100000.0); freq1box->setValue(1.0); freq1box->setSingleStep(1.0); freq2box = new QDoubleSpinBox(filtersettings_dialog); freq2box->setGeometry(120, 115, 180, 25); freq2box->setDecimals(6); freq2box->setSuffix(" Hz"); freq2box->setMinimum(0.0001); freq2box->setMaximum(100000.0); freq2box->setValue(2.0); freq2box->setVisible(false); freq2box->setSingleStep(1.0); stepsizebox = new QComboBox(filtersettings_dialog); stepsizebox->setGeometry(120, 150, 80, 25); stepsizebox->addItem("0.01Hz"); stepsizebox->addItem("0.1Hz"); stepsizebox->addItem("1Hz"); stepsizebox->addItem("10Hz"); stepsizebox->addItem("100Hz"); stepsizebox->setCurrentIndex(2); RemoveButton = new QPushButton(filtersettings_dialog); RemoveButton->setGeometry(120, 220, 80, 25); RemoveButton->setText("Remove"); CloseButton = new QPushButton(filtersettings_dialog); CloseButton->setGeometry(360, 220, 80, 25); CloseButton->setText("Close"); filter_cnt = 0; loadFilterSettings(); QObject::connect(freq1box, SIGNAL(valueChanged(double)), this, SLOT(freqbox1valuechanged(double))); QObject::connect(freq2box, SIGNAL(valueChanged(double)), this, SLOT(freqbox2valuechanged(double))); QObject::connect(orderbox, SIGNAL(valueChanged(int)), this, SLOT(orderboxvaluechanged(int))); QObject::connect(filterbox, SIGNAL(currentIndexChanged(int)), this, SLOT(filterboxchanged(int))); QObject::connect(stepsizebox, SIGNAL(currentIndexChanged(int)), this, SLOT(stepsizeboxchanged(int))); QObject::connect(RemoveButton, SIGNAL(clicked()), this, SLOT(removeButtonClicked())); QObject::connect(CloseButton, SIGNAL(clicked()), filtersettings_dialog, SLOT(close())); filtersettings_dialog->exec(); }
void ossimQtElevationManagerDialog::setupUi(QDialog *ossimQtElevationManagerDialog) { ossimQtElevationManagerDialog->setObjectName(QString::fromUtf8("ossimQtElevationManagerDialog")); vboxLayout = new QVBoxLayout(ossimQtElevationManagerDialog); vboxLayout->setSpacing(6); vboxLayout->setMargin(11); vboxLayout->setObjectName(QString::fromUtf8("vboxLayout")); vboxLayout1 = new QVBoxLayout(); vboxLayout1->setSpacing(6); vboxLayout1->setMargin(0); vboxLayout1->setObjectName(QString::fromUtf8("vboxLayout1")); hboxLayout = new QHBoxLayout(); hboxLayout->setSpacing(6); hboxLayout->setMargin(0); hboxLayout->setObjectName(QString::fromUtf8("hboxLayout")); theElevationCellGroup = new QGroupBox(ossimQtElevationManagerDialog); theElevationCellGroup->setObjectName(QString::fromUtf8("theElevationCellGroup")); // theElevationCellGroup->setColumnLayout(0, Qt::Vertical); // theElevationCellGroup->layout()->setSpacing(6); // theElevationCellGroup->layout()->setMargin(0); gridLayout = new QGridLayout(theElevationCellGroup);//->layout()); gridLayout->setAlignment(Qt::AlignTop); gridLayout->setObjectName(QString::fromUtf8("gridLayout")); gridLayout->setMargin(0); theElevationListBox = new QListWidget(theElevationCellGroup); theElevationListBox->setObjectName(QString::fromUtf8("theElevationListBox")); gridLayout->addWidget(theElevationListBox, 0, 0, 1, 1); hboxLayout->addWidget(theElevationCellGroup); vboxLayout2 = new QVBoxLayout(); vboxLayout2->setSpacing(6); vboxLayout2->setMargin(0); vboxLayout2->setObjectName(QString::fromUtf8("vboxLayout2")); theAddButton = new QPushButton(ossimQtElevationManagerDialog); theAddButton->setObjectName(QString::fromUtf8("theAddButton")); vboxLayout2->addWidget(theAddButton); theAddDirectoryButton = new QPushButton(ossimQtElevationManagerDialog); theAddDirectoryButton->setObjectName(QString::fromUtf8("theAddDirectoryButton")); vboxLayout2->addWidget(theAddDirectoryButton); theRemoveButton = new QPushButton(ossimQtElevationManagerDialog); theRemoveButton->setObjectName(QString::fromUtf8("theRemoveButton")); vboxLayout2->addWidget(theRemoveButton); theRemoveAllButton = new QPushButton(ossimQtElevationManagerDialog); theRemoveAllButton->setObjectName(QString::fromUtf8("theRemoveAllButton")); vboxLayout2->addWidget(theRemoveAllButton); theMoveUpButton = new QPushButton(ossimQtElevationManagerDialog); theMoveUpButton->setObjectName(QString::fromUtf8("theMoveUpButton")); vboxLayout2->addWidget(theMoveUpButton); theMoveDownButton = new QPushButton(ossimQtElevationManagerDialog); theMoveDownButton->setObjectName(QString::fromUtf8("theMoveDownButton")); vboxLayout2->addWidget(theMoveDownButton); theMoveToTopButton = new QPushButton(ossimQtElevationManagerDialog); theMoveToTopButton->setObjectName(QString::fromUtf8("theMoveToTopButton")); vboxLayout2->addWidget(theMoveToTopButton); theMoveToBottomButton = new QPushButton(ossimQtElevationManagerDialog); theMoveToBottomButton->setObjectName(QString::fromUtf8("theMoveToBottomButton")); vboxLayout2->addWidget(theMoveToBottomButton); theMosaicButton = new QPushButton(ossimQtElevationManagerDialog); theMosaicButton->setObjectName(QString::fromUtf8("theMosaicButton")); vboxLayout2->addWidget(theMosaicButton); hboxLayout->addLayout(vboxLayout2); vboxLayout1->addLayout(hboxLayout); hboxLayout1 = new QHBoxLayout(); hboxLayout1->setSpacing(6); hboxLayout1->setMargin(0); hboxLayout1->setObjectName(QString::fromUtf8("hboxLayout1")); theElevationEnabledCheckBox = new QCheckBox(ossimQtElevationManagerDialog); theElevationEnabledCheckBox->setObjectName(QString::fromUtf8("theElevationEnabledCheckBox")); hboxLayout1->addWidget(theElevationEnabledCheckBox); theAutoLoadCheckBox = new QCheckBox(ossimQtElevationManagerDialog); theAutoLoadCheckBox->setObjectName(QString::fromUtf8("theAutoLoadCheckBox")); hboxLayout1->addWidget(theAutoLoadCheckBox); theAutoSortCheckBox = new QCheckBox(ossimQtElevationManagerDialog); theAutoSortCheckBox->setObjectName(QString::fromUtf8("theAutoSortCheckBox")); hboxLayout1->addWidget(theAutoSortCheckBox); vboxLayout1->addLayout(hboxLayout1); vboxLayout3 = new QVBoxLayout(); vboxLayout3->setSpacing(6); vboxLayout3->setMargin(0); vboxLayout3->addSpacing(10); vboxLayout3->setAlignment(Qt::AlignHCenter); vboxLayout3->setObjectName(QString::fromUtf8("vboxLayout3")); hboxLayout3 = new QHBoxLayout(); hboxLayout3->setSpacing(0); hboxLayout3->setMargin(0); hboxLayout3->setObjectName(QString::fromUtf8("hboxLayout3")); theHgtOffsetLabel = new QLabel(" Height Offset"); vboxLayout1->addWidget(theHgtOffsetLabel); theElevOffsetWidget = new QSlider(Qt::Horizontal, ossimQtElevationManagerDialog); theElevOffsetWidget->setObjectName(QString::fromUtf8("theElevOffsetWidget")); theElevOffsetWidget->setSingleStep(1); theElevOffsetWidget->setSliderPosition(0); theElevOffsetWidget->setPageStep(10); theElevOffsetWidget->setRange(-400,400); theElevOffsetWidget->setFixedWidth(250); theElevOffsetWidget->setTracking(false); theHgtOffsetValueLabel = new QLabel("0.0"); theHgtOffsetValueLabel->setFixedWidth(80); theHgtOffsetValueLabel->setAlignment(Qt::AlignHCenter); hboxLayout3->addWidget(theElevOffsetWidget); hboxLayout3->addWidget(theHgtOffsetValueLabel); theAutoRefreshCheckBox = new QCheckBox(ossimQtElevationManagerDialog); theAutoRefreshCheckBox->setChecked(false); theAutoRefreshCheckBox->setObjectName(QString::fromUtf8("theAutoRefreshCheckBox")); hboxLayout3->addWidget(theAutoRefreshCheckBox); vboxLayout1->addLayout(hboxLayout3); //vboxLayout1->addLayout(vboxLayout3); vboxLayout->addLayout(vboxLayout1); line1 = new QFrame(ossimQtElevationManagerDialog); line1->setObjectName(QString::fromUtf8("line1")); line1->setFrameShape(QFrame::HLine); line1->setFrameShadow(QFrame::Sunken); vboxLayout->addWidget(line1); hboxLayout2 = new QHBoxLayout(); hboxLayout2->setSpacing(6); hboxLayout2->setMargin(0); hboxLayout2->setObjectName(QString::fromUtf8("hboxLayout2")); spacerItem = new QSpacerItem(215, 20, QSizePolicy::Expanding, QSizePolicy::Minimum); hboxLayout2->addItem(spacerItem); theCloseButton = new QPushButton(ossimQtElevationManagerDialog); theCloseButton->setObjectName(QString::fromUtf8("theCloseButton")); QSizePolicy sizePolicy(static_cast<QSizePolicy::Policy>(0), static_cast<QSizePolicy::Policy>(0)); sizePolicy.setHorizontalStretch(0); sizePolicy.setVerticalStretch(0); sizePolicy.setHeightForWidth(theCloseButton->sizePolicy().hasHeightForWidth()); theCloseButton->setSizePolicy(sizePolicy); theCloseButton->setDefault(true); hboxLayout2->addWidget(theCloseButton); spacerItem1 = new QSpacerItem(215, 20, QSizePolicy::Expanding, QSizePolicy::Minimum); hboxLayout2->addItem(spacerItem1); vboxLayout->addLayout(hboxLayout2); retranslateUi(ossimQtElevationManagerDialog); QSize size(320, 393); size = size.expandedTo(ossimQtElevationManagerDialog->minimumSizeHint()); ossimQtElevationManagerDialog->resize(size); QObject::connect(theAddButton, SIGNAL(clicked()), ossimQtElevationManagerDialog, SLOT(addButtonClicked())); QObject::connect(theRemoveButton, SIGNAL(clicked()), ossimQtElevationManagerDialog, SLOT(removeButtonClicked())); QObject::connect(theRemoveAllButton, SIGNAL(clicked()), ossimQtElevationManagerDialog, SLOT(removeAllButtonClicked())); QObject::connect(theCloseButton, SIGNAL(clicked()), ossimQtElevationManagerDialog, SLOT(closeButtonClicked())); QObject::connect(theAddDirectoryButton, SIGNAL(clicked()), ossimQtElevationManagerDialog, SLOT(addDirectoryClicked())); QObject::connect(theElevationEnabledCheckBox, SIGNAL(clicked()), ossimQtElevationManagerDialog, SLOT(elevationEnabledCheckBoxClicked())); QObject::connect(theAutoLoadCheckBox, SIGNAL(clicked()), ossimQtElevationManagerDialog, SLOT(autoLoadCheckBoxClicked())); QObject::connect(theAutoSortCheckBox, SIGNAL(clicked()), ossimQtElevationManagerDialog, SLOT(autoSortingCheckBoxClicked())); QObject::connect(theMosaicButton, SIGNAL(clicked()), ossimQtElevationManagerDialog, SLOT(mosaicButtonClicked())); QObject::connect(theMoveUpButton, SIGNAL(clicked()), ossimQtElevationManagerDialog, SLOT(moveUpButtonClicked())); QObject::connect(theMoveDownButton, SIGNAL(clicked()), ossimQtElevationManagerDialog, SLOT(moveDownButtonClicked())); QObject::connect(theMoveToBottomButton, SIGNAL(clicked()), ossimQtElevationManagerDialog, SLOT(moveToBottomButtonClicked())); QObject::connect(theMoveToTopButton, SIGNAL(clicked()), ossimQtElevationManagerDialog, SLOT(moveToTopButtonClicked())); QObject::connect(theElevOffsetWidget, SIGNAL(valueChanged(int)), ossimQtElevationManagerDialog, SLOT(elevOffsetChanged(int))); QObject::connect(theAutoRefreshCheckBox, SIGNAL(clicked()), ossimQtElevationManagerDialog, SLOT(autoRefreshCheckBoxClicked())); QMetaObject::connectSlotsByName(ossimQtElevationManagerDialog); } // setupUi
void SubTableWidget::on_Delete_button1_clicked() { emit removeButtonClicked(); }