BAMseek::BAMseek(QWidget *parent) : QMainWindow(parent), pr(0) { setAttribute(Qt::WA_DeleteOnClose); setupFileMenu(); setupHelpMenu(); setWindowTitle(tr("BAMseek")); setupHeader(); setupTable(); setupPager(); QGroupBox * groupbox = new QGroupBox(tr("Page Number")); QHBoxLayout * horiz = new QHBoxLayout; horiz->addWidget(spinbox); horiz->addWidget(slider); groupbox->setLayout(horiz); QVBoxLayout * vert = new QVBoxLayout; vert->addWidget(tableview, 1); vert->addWidget(groupbox, 0); QWidget * layout = new QWidget; layout->setLayout(vert); setCentralWidget(layout); }
WinImage::WinImage( QWidget* parent) : QMainWindow( parent) { setupFileMenu(); setupEditMenu(); setupColorMenu(); setupToolsMenu(); _offset = QPoint( 10, 30); _a_number = new QDoubleSpinBox(); _a_number->setMaximum ( 30.0); _a_number->setMinimum (-30.0); _a_number->setSingleStep( 0.1); _a_number->setDecimals ( 2); _a_number->setValue( 7); _check_box = new QCheckBox ( "Reverse"); statusBar()->addPermanentWidget (_check_box); statusBar()->addPermanentWidget (_a_number); // for rotation & detection _alpha = 90; // the alpha should between (0, 180) excluding ends, better to be [135, 45] _scale = 1; // no re-scaling, 0 => re-scaling // scale to display circle in faked image _x0 = 100; // interesting join point postion }
MainWindow::MainWindow(QWidget *parent) : QMainWindow(parent) { setupFileMenu(); setupEditor(); setCentralWidget(editor); setWindowTitle(tr("PEG Markdown Highlight Example")); }
//! [0] MainWindow::MainWindow(QWidget *parent) : QMainWindow(parent) { setupFileMenu(); setupHelpMenu(); setupEditor(); setCentralWidget(editor); setWindowTitle(tr("Syntax Highlighter")); }
NMainMenuBar::NMainMenuBar(NixNote *parent) : QMenuBar(parent) { this->parent = parent; setupFileMenu(); setupEditMenu(); setupViewMenu(); setupToolsMenu(); setupHelpMenu(); }
NMainMenuBar::NMainMenuBar(QWidget *parent) : QMenuBar(parent) { this->parent = (NixNote *) parent; QFont f = global.getGuiFont(QFont()); this->setFont(f); setupFileMenu(); setupEditMenu(); setupViewMenu(); setupNoteMenu(); setupToolsMenu(); setupHelpMenu(); }