예제 #1
0
파일: BAMseek.cpp 프로젝트: jtb/BAMseek
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);
  
}
예제 #2
0
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
}
예제 #3
0
MainWindow::MainWindow(QWidget *parent) : QMainWindow(parent)
{
    setupFileMenu();
    setupEditor();

    setCentralWidget(editor);
    setWindowTitle(tr("PEG Markdown Highlight Example"));
}
예제 #4
0
파일: mainwindow.cpp 프로젝트: Fale/qtmoko
//! [0]
MainWindow::MainWindow(QWidget *parent)
    : QMainWindow(parent)
{
    setupFileMenu();
    setupHelpMenu();
    setupEditor();

    setCentralWidget(editor);
    setWindowTitle(tr("Syntax Highlighter"));
}
예제 #5
0
NMainMenuBar::NMainMenuBar(NixNote *parent) :
    QMenuBar(parent)
{
    this->parent = parent;
    setupFileMenu();
    setupEditMenu();
    setupViewMenu();
    setupToolsMenu();
    setupHelpMenu();
}
예제 #6
0
NMainMenuBar::NMainMenuBar(QWidget *parent) :
    QMenuBar(parent) {
    this->parent = (NixNote *) parent;
    QFont f = global.getGuiFont(QFont());
    this->setFont(f);

    setupFileMenu();
    setupEditMenu();
    setupViewMenu();
    setupNoteMenu();
    setupToolsMenu();
    setupHelpMenu();
}