From kde-commits Mon Dec 09 21:50:53 2002 From: Jakob Lund Date: Mon, 09 Dec 2002 21:50:53 +0000 To: kde-commits Subject: kdevelop/parts/trollproject X-MARC-Message: https://marc.info/?l=kde-commits&m=103947072312227 CVS commit by jsgaarde: New Widget dialog with automatic subclassing A newwidgetdlg.cpp 1.1 A newwidgetdlg.h 1.1 A newwidgetdlgbase.ui 1.1 M +2 -0 Makefile.am 1.11 M +11 -0 trollprojectwidget.cpp 1.56 M +1 -0 trollprojectwidget.h 1.26 --- kdevelop/parts/trollproject/Makefile.am #1.10:1.11 @@ -15,4 +15,6 @@ libkdevtrollproject_la_SOURCES = caret.c projectconfigurationdlgbase.ui \ filepropertybase.ui \ + newwidgetdlgbase.ui \ + newwidgetdlg.cpp \ filepropertydlg.cpp \ projectconfigurationdlg.cpp \ --- kdevelop/parts/trollproject/trollprojectwidget.cpp #1.55:1.56 @@ -1093,4 +1093,5 @@ void TrollProjectWidget::slotDetailsCont int idInsExistingFile = popup.insertItem(SmallIconSet("fileopen"),i18n("Insert existing files...")); int idInsNewFile = popup.insertItem(SmallIconSet("filenew"),i18n("Insert New File...")); + int idNewWidget = popup.insertItem(SmallIconSet("widget"),i18n("Insert New Widget...")); // int idFileProperties = popup.insertItem(SmallIconSet("filenew"),i18n("Properties...")); int r = popup.exec(p); @@ -1147,4 +1148,14 @@ void TrollProjectWidget::slotDetailsCont } } + if (r == idNewWidget) + { + QStringList newFileNames; + NewWidgetDlg *dlg = new NewWidgetDlg(newFileNames); + dlg->exec(); + for (int i=0;itype() == ProjectItem::File) { --- kdevelop/parts/trollproject/trollprojectwidget.h #1.25:1.26 @@ -27,4 +27,5 @@ #include "projectconfigurationdlg.h" #include "filepropertydlg.h" +#include "newwidgetdlg.h" class TrollProjectPart;