27#include "kptresourcesdialog.h"
28#include "kptproject.h"
29#include "kptresourcespanel.h"
30#include "kptresource.h"
35ResourcesDialog::ResourcesDialog( Project &p, TQWidget *parent, const char *name)
36 : KDialogBase( Swallow, i18n( "Resources"), Ok|Cancel, Ok, parent, name, true, true),
39 panel = new ResourcesPanel( this, &project);
42 enableButtonOK( false);
44 connect(panel, TQ_SIGNAL(changed()), TQ_SLOT(slotChanged()));
48void ResourcesDialog::slotChanged() {
52void ResourcesDialog::slotOk() {
58KCommand *ResourcesDialog::buildCommand(Part *part) {
60 TQString c = i18n( "Modify resources");
61 KCommand *cmd = panel->buildCommand(part);
63 if (!m) m = new KMacroCommand(c);
71#include "kptresourcesdialog.moc"
Project is the main node in a project, it contains child nodes and possibly sub-projects.
|