27#include "kptmainprojectdialog.h"
28#include "kptproject.h"
29#include "kptmainprojectpanel.h"
34MainProjectDialog::MainProjectDialog( Project &p, TQWidget *parent, const char *name)
35 : KDialogBase( Swallow, i18n( "Project Settings"), Ok|Cancel, Ok, parent, name, true, true),
38 panel = new MainProjectPanel(project, this);
41 enableButtonOK( false);
42 resize( TQSize(500, 410).expandedTo(minimumSizeHint()));
43 connect(panel, TQ_SIGNAL(obligatedFieldsFilled( bool)), TQ_SLOT(enableButtonOK( bool)));
47void MainProjectDialog::slotOk() {
54KCommand *MainProjectDialog::buildCommand(Part *part) {
56 TQString c = i18n( "Modify main project");
57 KCommand *cmd = panel->buildCommand(part);
59 if (!m) m = new KMacroCommand(c);
67#include "kptmainprojectdialog.moc"
Project is the main node in a project, it contains child nodes and possibly sub-projects.
|