22 #include <qlineedit.h>
23 #include <qcheckbox.h>
24 #include <qpushbutton.h>
28 : QDialog(parent, name, true)
30 setCaption(tr(
"Create new project"));
32 gbox =
new QGridLayout(
this,3,3,5,5);
33 QLabel *Label1 =
new QLabel(tr(
"Project name:"),
this);
34 gbox->addWidget(Label1,0,0);
38 gbox->addMultiCellWidget(
ProjName,0,0,1,2);
39 OpenProj =
new QCheckBox(tr(
"open new project"),
this);
41 gbox->addMultiCellWidget(
OpenProj,1,1,1,2);
43 ButtonOk =
new QPushButton(tr(
"Create"),
this);
44 gbox->addWidget(ButtonOk,2,1);
45 ButtonCancel =
new QPushButton(tr(
"Cancel"),
this);
46 gbox->addWidget(ButtonCancel,2,2);
48 connect(ButtonOk, SIGNAL(clicked()), SLOT(accept()));
49 connect(ButtonCancel, SIGNAL(clicked()), SLOT(reject()));
51 ButtonOk->setDefault(
true);