ServerDialog::ServerDialog(QWidget *parent)
    : FlatDialog(parent)
{
    setWindowTitle(tr("Start server"));

    QTabWidget *tab_widget = new QTabWidget;
    tab_widget->addTab(createBasicTab(), tr("Basic"));
    tab_widget->addTab(createPackageTab(), tr("Game Pacakge Selection"));
    tab_widget->addTab(createAdvancedTab(), tr("Advanced"));
    tab_widget->addTab(createConversionTab(), tr("Conversion Selection"));
    tab_widget->addTab(createMiscTab(), tr("Miscellaneous"));

    layout->addWidget(tab_widget);
    layout->addLayout(createButtonLayout());

    setMinimumSize(574, 380);
}
Пример #2
0
MainWindow::MainWindow()
{
  init_file="./test1.xbel";
  firstOpen=1;
  QWidget* w=new QWidget;
  xbelTree = new XbelTree(w);
  // setCentralWidget(xbelTree);
  setCentralWidget(w);
  

  createActions();

  createLabel();
  createButtonLayout();
  createMenus();
    
  statusBar()->showMessage(tr("Ready"));

  QGridLayout* GridLayout=new QGridLayout;
  // QVBoxLayout* vbox=new QVBoxLayout;
  // vbox->addLayout(GridLayout);
  GridLayout->addWidget(xbelTree,0,0);
  label->setText("TO be filled");
  GridLayout->addWidget(label,0,1);
  GridLayout->setColumnMinimumWidth(0,900);
  GridLayout->addLayout(buttonLayout,1,1,1,1);
    // GridLayout->addLayout(buttonLayout,1,2,1,2);
  // GridLayout->setColumnMaximunWidth(1,400);
  w->setLayout(GridLayout);

  // //  w->setAutoFillBackground(true);
  // QPalette palette;
  // //  palette.setColor(QPalette::Background, QColor(192,253,123));
  // palette.setBrush(QPalette::Background, QBrush(QPixmap("../resource/pic1.png")));

  // w->setPalette(palette);

  // xbelTree->show();
  // setLayout(vbox);
    
  setWindowIcon(QIcon("../resource/pic1.png"));
  setWindowTitle(tr("DOM Bookmarks"));
  // xbelTree->hide();
  // xbelTree->resize(800,600);
  resize(1024, 768);
}
Пример #3
0
ServerDialog::ServerDialog(QWidget *parent)
    :QDialog(parent)
{
    setWindowTitle(tr("Start server"));

    QTabWidget *tab_widget = new QTabWidget;
    tab_widget->addTab(createBasicTab(), tr("Basic"));
    tab_widget->addTab(createPackageTab(), tr("Game Pacakge Selection"));
    tab_widget->addTab(createAdvancedTab(), tr("Advanced"));
    tab_widget->addTab(createAITab(), tr("Artificial intelligence"));

    QVBoxLayout *layout = new QVBoxLayout;
    layout->addWidget(tab_widget);
    layout->addLayout(createButtonLayout());
    setLayout(layout);

    setMinimumWidth(300);
}
Пример #4
0
ServerDialog::ServerDialog(QWidget *parent)
    :QDialog(parent)
{
    setWindowTitle(tr("Start server"));

    QLayout *left = createLeft();
    QLayout *right = createRight();

    QHBoxLayout *hlayout = new QHBoxLayout;
    hlayout->addLayout(left);
    hlayout->addLayout(right);

    QVBoxLayout *layout = new QVBoxLayout;
    layout->addLayout(hlayout);
    layout->addLayout(createButtonLayout());

    setLayout(layout);
}