#include "rbk_dlg_newrulebook.h"
RBK_DLG_NewRulebook
::RBK_DLG_NewRulebook(QWidget *parent
) : QDialog(parent
) { setModal(true);
grid->addWidget(rbnew, 0, 1, 2, 1);
rbexisting
= new QRadioButton(tr
("Use Existing Game"),
this);
grid->addWidget(rbexisting, 0, 3, 2, 1);
grid->addWidget(label1, 1, 0, 1, 1);
gamename->addItem(tr("D&D 3.5"));
gamename->addItem(tr("FFRPG 3rd Edition"));
gamename->addItem(tr("Shadowrun 3rd Edition"));
grid->addWidget(gamename, 2, 1, 3, 1);
gamename->adjustSize();
grid->addWidget(core, 2, 4, 1, 1);
grid->addWidget(label2, 4, 0, 1, 1);
grid->addWidget(rulebook, 4, 1, 4, 1);
rulebook->adjustSize();
setLayout(grid);
show();
}
#include "rbk_dlg_newrulebook.h"
RBK_DLG_NewRulebook::RBK_DLG_NewRulebook(QWidget *parent) : QDialog(parent) {
setModal(true);
grid = new QGridLayout(this);
rbnew = new QRadioButton(tr("Create New Game"), this);
grid->addWidget(rbnew, 0, 1, 2, 1);
rbexisting = new QRadioButton(tr("Use Existing Game"), this);
grid->addWidget(rbexisting, 0, 3, 2, 1);
QLabel *label1 = new QLabel(tr("Select Game"), this);
grid->addWidget(label1, 1, 0, 1, 1);
gamename = new QComboBox(this);
gamename->addItem(tr("D&D 3.5"));
gamename->addItem(tr("FFRPG 3rd Edition"));
gamename->addItem(tr("Shadowrun 3rd Edition"));
grid->addWidget(gamename, 2, 1, 3, 1);
gamename->adjustSize();
core = new QCheckBox(tr("core"), this);
grid->addWidget(core, 2, 4, 1, 1);
QLabel *label2 = new QLabel(tr("Rulebook Name:"), this);
grid->addWidget(label2, 4, 0, 1, 1);
rulebook = new QLineEdit(this);
grid->addWidget(rulebook, 4, 1, 4, 1);
rulebook->adjustSize();
setLayout(grid);
show();
}
To copy to clipboard, switch view to plain text mode
#ifndef RBK_DLG_NEWRULEBOOK_H
#define RBK_DLG_NEWRULEBOOK_H
#include <Qt>
#include <QtGui>
class RBK_DLG_NewRulebook
: public QDialog{
public:
RBK_DLG_NewRulebook
(QWidget *parent
);
private:
};
#endif // RBK_DLG_NEWRULEBOOK_H
#ifndef RBK_DLG_NEWRULEBOOK_H
#define RBK_DLG_NEWRULEBOOK_H
#include <Qt>
#include <QtGui>
class RBK_DLG_NewRulebook : public QDialog
{
public:
RBK_DLG_NewRulebook(QWidget *parent);
private:
QGridLayout *grid;
QRadioButton *rbnew, *rbexisting;
QComboBox *gamename;
QCheckBox *core;
QLineEdit *rulebook;
QPushButton *ok, *cancel;
};
#endif // RBK_DLG_NEWRULEBOOK_H
To copy to clipboard, switch view to plain text mode
Bookmarks