[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: koffice/kexi/main
From: Adam Pigg <adam () piggz ! fsnet ! co ! uk>
Date: 2004-11-03 22:31:35
Message-ID: 20041103223135.65B5016B8A () office ! kde ! org
[Download RAW message or body]
CVS commit by piggz:
add import wizard functionality
M +17 -1 keximainwindowimpl.cpp 1.167
M +4 -0 keximainwindowimpl.h 1.74
--- koffice/kexi/main/keximainwindowimpl.cpp #1.166:1.167
@@ -106,4 +106,8 @@
#endif
+#ifndef KEXI_NO_MIGRATION
+#include "migration/importwizard.h"
+#endif
+
typedef QIntDict<KexiDialogBase> KexiDialogDict;
@@ -604,4 +608,9 @@ KexiMainWindowImpl::initActions()
action->setWhatsThis(i18n("Sorts data in descending (from Z to A and from 9 \
to 0). Data from selected column is used for sorting."));
+ //TOOLS MENU
+#ifndef KEXI_NO_MIGRATION
+ new KAction(i18n("Import Data"), "toolsdatamigrate", 0, this, \
SLOT(slotMigrationWizard()), actionCollection(), "tools_data_migration"); +#endif
+
//SETTINGS MENU
setStandardToolBarMenuEnabled( true );
@@ -2888,5 +2897,12 @@ KexiMainWindowImpl::initUserActions()
}
-
+#ifndef KEXI_NO_MIGRATION
+void KexiMainWindowImpl::slotMigrationWizard()
+{
+ KexiMigration::importWizard* iw = new KexiMigration::importWizard();
+ iw->setGeometry(300,300,400,300);
+ iw->show();
+}
+#endif
#include "keximainwindowimpl.moc"
--- koffice/kexi/main/keximainwindowimpl.h #1.73:1.74
@@ -124,4 +124,8 @@ class KEXIMAIN_EXPORT KexiMainWindowImpl
const QString& messageWhenAskingForName = QString::null );
+#ifndef KEXI_NO_MIGRATION
+ void slotMigrationWizard();
+#endif
+
protected:
/*! Initialises final mode: constructs window according to \
kexi__final database
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic