MainWindow::MainWindow(QWidget *parent) : QMainWindow(parent), ui(new Ui::MainWindow) { ui->setupUi(this); myBufor = new CBufor; mdiArea = new QMdiArea; mdiArea->setHorizontalScrollBarPolicy(Qt::ScrollBarAsNeeded); mdiArea->setVerticalScrollBarPolicy(Qt::ScrollBarAsNeeded); setCentralWidget(mdiArea); connect(mdiArea, SIGNAL(subWindowActivated(QMdiSubWindow*)), this, SLOT(updateMenus())); mdiArea->setOption(QMdiArea::DontMaximizeSubWindowOnActivation, true); createActions(); createMenus(); createToolBars(); createStatusBar(); createDockWindow(); createAlgorithmPanel(); updateMenus(); setWindowTitle(tr("VSDF")); setUnifiedTitleAndToolBarOnMac(true); resize(1400,800); }
void SignalDataVisualizer::initiate() { setWindowIcon(QIcon(":/Qt/resources/STACCATO.png")); setWindowTitle("STACCATO Visualizer"); createActions(); createMenus(); createDockWindow(); // Chart Properties myChart2D = new QChart(); myAxisX = new QValueAxis(); myAxisY = new QValueAxis(); chartView2D = new ChartView(myChart2D); chartView2D->setRubberBand(QChartView::RectangleRubberBand); // For Rectangle Draw Zoom mySeries2scatter = new QScatterSeries(); // Selection Points mySnapSeries2scatter = new QScatterSeries(); // Snapped Point myAxisLogX = new QLogValueAxis(); // Logarthmic X-Axis createChart(); setCentralWidget(chartView2D); }