TIA::TIA(QWidget *parent) : QMainWindow(parent), ui(new Ui::TIA) { ui->setupUi(this); this->showMaximized(); setDockNestingEnabled(true); m_TIAPtr = this; m_StatusBar = this->statusBar(); m_Style = new HStyle; createModels(); createWidgets(); createViews(); createActions(); createConnections(); createDialogs(); m_VLog->start(); }
MainWindow::MainWindow(QWidget *parent): QMainWindow(parent), ui(new Ui::MainWindow) { ui->setupUi(this); setUpMainWindow(); createDialogs(); connectVariables(); createConnections(); createShortcutKeys(); }
BF_AnalizeForm::BF_AnalizeForm(QWidget *parent) : QWidget(parent), ui(new Ui::BF_AnalizeForm) { ui->setupUi(this); createActions(); createDialogs(); createConnectors(); Core::Base::instance().setParameterValue("NAME", QString("")); }
/** * ScatterPlotToolWindow constructor. * * * @param title * @param tool * @param parent */ ScatterPlotWindow::ScatterPlotWindow (QString title, ScatterPlotTool *tool, QWidget *parent): Qisis::MainWindow(title, parent){ p_parent = parent; p_tool = tool; p_scatterPlotWindow = new MainWindow(title); p_scatterPlotWindow->setFixedSize(QSize(700,700)); p_plot = new QwtPlot(); p_plot->plotLayout()->setAlignCanvasToScales(true); p_zoomer = new MyZoomer(p_plot->canvas()); p_scatterPlotWindow->setCentralWidget(p_plot); setupMenus(); createDialogs(); }
MapBox::MapBox(MainWindow * parent) : QWidget(parent), m_qgv(0), m_scene(0), m_mapWidget(0), m_serviceProvider(0), m_mapManager(0), m_connectivityMode(QGraphicsGeoMap::HybridMode), m_popupMenu(0), m_popupMenuMapObject(0), m_displayMode(DisplayNone), m_optionsWidget(0) { for (QVariantHash::const_iterator it = parent->programOptions().begin(); it != parent->programOptions().end(); ++it) { m_parameters.insert(it.key(), it.value()); } m_scene = new QGraphicsScene(this); m_qgv = new QGraphicsView(m_scene, this); m_qgv->setOptimizationFlag(QGraphicsView::IndirectPainting, true); m_qgv->setHorizontalScrollBarPolicy(Qt::ScrollBarAlwaysOff); m_qgv->setVerticalScrollBarPolicy(Qt::ScrollBarAlwaysOff); m_qgv->setFrameShape(QFrame::NoFrame); m_optionsButton = new QPushButton("Options", m_qgv); m_optionsButton->resize(m_optionsButton->sizeHint()); connect(m_optionsButton, SIGNAL(clicked()), this, SLOT(showOptions())); QVBoxLayout * layout = new QVBoxLayout(this); layout->setMargin(0); setLayout(layout); setDisplayMode(DisplayMap); createDialogs(); createPixmapIcon(); }