UMLOperationDialog::UMLOperationDialog( QWidget * parent, UMLOperation * pOperation ) : KDialogBase( Plain, i18n("Operation Properties"), Help | Ok | Cancel , Ok, parent, "_UMLOPERATIONDLG_", true, true) { m_pOperation = pOperation; m_doc = UMLApp::app()->getDocument(); m_pMenu = 0; setupDialog(); }
MessageDialog::MessageDialog(Controller *parentController, std::string& message, std::string& buttonText1, std::string& buttonText2) : Dialog(parentController, 300, 150, dialog_Centered, VIEW_ID_BUTTON_1, VIEW_ID_BUTTON_2), // creates background mResMgr(parentController->getApplication().getResourceManager()), mButtonClickedId(-1) { setupDialog(message, buttonText1, buttonText2); }
SetNameDialog::SetNameDialog(const std::string &geo_object_type, std::size_t id, const std::string &old_name = "", QDialog* parent) :QDialog(parent) { QString const& label = QString::fromStdString(geo_object_type) + "#" + QString::number(id); setupDialog(label, old_name); show(); }
UMLTemplateDialog::UMLTemplateDialog(QWidget* pParent, UMLTemplate* pTemplate) : SinglePageDialogBase(pParent) { m_pTemplate = pTemplate; setCaption(i18n("Template Properties")); setupDialog(); }
/** Creates a new VolumeGroupDialog @param parent pointer to the parent widget @param vgName Volume Group name @param pvList List of LVM Physical Volumes used to create Volume Group */ VolumeGroupDialog::VolumeGroupDialog(QWidget* parent, QString& vgName, QStringList& pvList) : QDialog(parent), m_DialogWidget(new VolumeGroupWidget(this)), m_TargetName(vgName), m_TargetPVList(pvList), m_IsValidSize(false), m_IsValidName(true), m_TotalSize(0), m_TotalUsedSize(0), m_ExtentSize(0) { mainLayout = new QVBoxLayout(this); setLayout(mainLayout); mainLayout->addWidget(&dialogWidget()); dialogButtonBox = new QDialogButtonBox; okButton = dialogButtonBox->addButton(QDialogButtonBox::Ok); cancelButton = dialogButtonBox->addButton(QDialogButtonBox::Cancel); mainLayout->addWidget(dialogButtonBox); cancelButton->setFocus(); cancelButton->setDefault(true); setupDialog(); setupConstraints(); setupConnections(); }
UMLEntityAttributeDialog::UMLEntityAttributeDialog(QWidget * pParent, UMLEntityAttribute * pEntityAttribute) : SinglePageDialogBase(pParent) { setCaption(i18n("Entity Attribute Properties")); m_pEntityAttribute = pEntityAttribute; setupDialog(); }
UMLCheckConstraintDialog::UMLCheckConstraintDialog(QWidget* parent, UMLCheckConstraint* pCheckConstraint) : SinglePageDialogBase(parent) { setCaption(i18n("Check Constraint Properties")); m_pCheckConstraint = pCheckConstraint; setupDialog(); }
/** * Creates a new dialog. */ ListPropertiesDialog::ListPropertiesDialog(std::string listName, GEOModels* geoModels, QDialog* parent) : QDialog(parent), _listName(listName), _geoModels(geoModels) { setupDialog(); show(); }
FEMConditionSetupDialog::FEMConditionSetupDialog(const FEMCondition &cond, QDialog* parent) : QDialog(parent), _cond(cond), _set_on_points(false), _combobox(nullptr), directButton(nullptr), _mesh(nullptr), _first_value_validator(nullptr) { setupUi(this); setupDialog(); setValuesFromCond(); }
SHPImportDialog::SHPImportDialog(std::string filename, GEOModels* geoModels, QDialog* parent) : QDialog(parent), _buttonBox(NULL), _layout(NULL), _shpContentLabel(NULL), _nameLabel(NULL), _listName(new QLineEdit()), _choice1(NULL), _choice2(NULL), _filename(filename), _fileType(0), _shpInterface(new FileIO::SHPInterface(geoModels)) { setupDialog(); show(); }
LinearEditDialog::LinearEditDialog(const GeoLib::Polyline &line, const std::vector<std::size_t> &dis_nodes, const std::vector<double> &dis_values, QDialog* parent) : QDialog(parent), _line(line) { setupUi(this); setupDialog(dis_nodes, dis_values); }
/** * Constructor. */ UMLOperationDialog::UMLOperationDialog(QWidget * parent, UMLOperation * pOperation) : SinglePageDialogBase(parent) { setCaption(i18n("Operation Properties")); m_operation = pOperation; m_doc = UMLApp::app()->document(); m_menu = 0; setupDialog(); }
FEMConditionSetupDialog::FEMConditionSetupDialog(const std::string &name, const MeshLib::Mesh* mesh, QDialog* parent) : QDialog(parent), _cond(name, FEMCondition::UNSPECIFIED), _set_on_points(false), _combobox(nullptr), directButton(nullptr), _mesh(mesh), _first_value_validator(nullptr) { _cond.setGeoType(GeoLib::GEOTYPE::INVALID); _cond.setGeoName(name); _cond.setGeoObj(nullptr); setupUi(this); setupDialog(); }
ColorPicker::ColorPicker (const Glib::ustring& title, const Glib::ustring& tip, guint32 rgba, bool undo) : _preview(rgba), _title(title), _rgba(rgba), _undo(undo), _colorSelectorDialog("dialogs.colorpickerwindow") { setupDialog(title); set_relief (Gtk::RELIEF_NONE); _preview.show(); add (_preview); set_tooltip_text (tip); }
CSVSettings::Dialog::Dialog(QMainWindow *parent) : mStackedWidget (0), mDebugMode (false), SettingWindow (parent) { setWindowTitle(QString::fromUtf8 ("User Settings")); setupDialog(); connect (mPageListWidget, SIGNAL (currentItemChanged(QListWidgetItem*, QListWidgetItem*)), this, SLOT (slotChangePage (QListWidgetItem*, QListWidgetItem*))); }
UMLTemplateDialog::UMLTemplateDialog(QWidget* pParent, UMLTemplate* pTemplate) : KDialog( pParent) { m_pTemplate = pTemplate; setCaption( i18n("Template Properties") ); setButtons( Help | Ok | Cancel ); setDefaultButton( Ok ); setModal( true ); showButtonSeparator( true ); setupDialog(); connect(this,SIGNAL(okClicked()),this,SLOT(slotOk())); connect(this,SIGNAL(applyClicked()),this,SLOT(slotApply())); }
MapDialog::MapDialog(StationsPlugin *plugin, QWidget *parent) : #ifdef Q_WS_MAEMO_5 QDialog(parent, Qt::Window), #else QDialog(parent), #endif plugin(plugin) { setupUi(this); setupDialog(this); #if defined(Q_WS_S60) || defined(Q_WS_SIMULATOR) gridLayout->setContentsMargins(0, 0, 0, 0); #endif mapWidget->setPlugin(plugin); }
FEMConditionSetupDialog::FEMConditionSetupDialog(const std::string &associated_geometry, const GeoLib::GEOTYPE type, const std::string &geo_name, const GeoLib::GeoObject* const geo_object, bool on_points, QDialog* parent) : QDialog(parent), _cond(associated_geometry, FEMCondition::UNSPECIFIED), _set_on_points(on_points), _combobox(nullptr), directButton(nullptr), _mesh(nullptr), _first_value_validator(nullptr) { _cond.setGeoType(type); _cond.setGeoName(geo_name); _cond.setGeoObj(geo_object); setupUi(this); setupDialog(); }
SHPImportDialog::SHPImportDialog(std::string filename, GeoLib::GEOObjects& geo_objects, QDialog* parent) : QDialog(parent), _buttonBox(nullptr), _layout(nullptr), _shpContentLabel(nullptr), _nameLabel(nullptr), _listName(new QLineEdit()), _choice1(nullptr), _choice2(nullptr), _filename(std::move(filename)), _fileType(0), _shpInterface(new FileIO::SHPInterface(geo_objects)) { setupDialog(); show(); }
/** Creates a new FileSystemSupportDialog @param parent the parent object */ FileSystemSupportDialog::FileSystemSupportDialog(QWidget* parent) : QDialog(parent), m_FileSystemSupportDialogWidget(new FileSystemSupportDialogWidget(this)) { QVBoxLayout *mainLayout = new QVBoxLayout(this); setLayout(mainLayout); mainLayout->addWidget(&dialogWidget()); setWindowTitle(i18nc("@title:window", "File System Support")); dialogButtonBox = new QDialogButtonBox(this); dialogButtonBox -> setStandardButtons(QDialogButtonBox::Ok); mainLayout->addWidget(dialogButtonBox); setupDialog(); setupConnections(); KConfigGroup kcg(KSharedConfig::openConfig(), "fileSystemSupportDialog"); restoreGeometry(kcg.readEntry<QByteArray>("Geometry", QByteArray())); }
StationDialog::StationDialog(Station *station, QWidget * parent) : #ifdef Q_WS_MAEMO_5 QDialog(parent, Qt::Window), #else QDialog(parent), #endif station(station) { setupUi(this); setupDialog(this); setupWidgets(); setupButtons(); /* Update Station Status */ if (station->freeSlots() == -1) { station->plugin()->updateCached(station); connect(station->plugin(), SIGNAL(stationsUpdated(const QList < Station * > &)), this, SLOT(setupWidgets())); }
/** Creates a new InsertDialog instance. @param parent the parent widget @param device the Device the Partition to insert is on @param insertedPartition the Partition to insert @param destpartition the Partition the new one is to be inserted to */ InsertDialog::InsertDialog(QWidget* parent, Device& device, Partition& insertedPartition, const Partition& destpartition) : SizeDialogBase(parent, device, insertedPartition, destpartition.firstSector(), destpartition.lastSector()), m_DestPartition(destpartition) { setWindowTitle(i18nc("@title:window", "Insert a partition")); partition().move(destPartition().firstSector()); partition().fileSystem().move(destPartition().fileSystem().firstSector()); dialogWidget().hideRole(); dialogWidget().hideFileSystem(); dialogWidget().hideLabel(); setupDialog(); setupConstraints(); setupConnections(); KConfigGroup kcg(KSharedConfig::openConfig(), "insertDialog"); restoreGeometry(kcg.readEntry<QByteArray>("Geometry", QByteArray())); }
//------------------------------------------------------------------------- void MainWindow::openSetupDialog() { SetupDialog setupDialog(this); setupDialog.exec(); }
void FileSystemSupportDialog::onButtonRescanClicked() { FileSystemFactory::init(); setupDialog(); }
SelectMeshDialog::SelectMeshDialog(const GEOLIB::GeoObject* geo_object, const std::list<std::string> &msh_names, QDialog* parent) : QDialog(parent), _geo_object(geo_object) { setupDialog(msh_names); show(); }
NewProcessDialog::NewProcessDialog(QDialog* parent) : QDialog(parent) { setupUi(this); setupDialog(); }
SetNameDialog::SetNameDialog(const std::string &parent_name, const std::string &object_type_name, size_t id, const std::string &old_name = "", QDialog* parent) : QDialog(parent), _parent_name(parent_name), _object_type_name(object_type_name), _id(id) { setupDialog(old_name); show(); }
OptConstraintDialog::OptConstraintDialog(QWidget *parent) : QDialog(parent), uiOptConstraint(new Ui::OptConstraintDialog){ setupDialog(); }
AdvancedPageWidget::AdvancedPageWidget(QWidget* parent) : QWidget(parent) { setupUi(this); setupDialog(); }