summaryrefslogtreecommitdiffstats
path: root/kmymoney2/dialogs/kstartdlg.h
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-07-04 22:38:03 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-07-04 22:38:03 +0000
commitdadc34655c3ab961b0b0b94a10eaaba710f0b5e8 (patch)
tree99e72842fe687baea16376a147619b6048d7e441 /kmymoney2/dialogs/kstartdlg.h
downloadkmymoney-dadc34655c3ab961b0b0b94a10eaaba710f0b5e8.tar.gz
kmymoney-dadc34655c3ab961b0b0b94a10eaaba710f0b5e8.zip
Added kmymoney
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/applications/kmymoney@1239792 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kmymoney2/dialogs/kstartdlg.h')
-rw-r--r--kmymoney2/dialogs/kstartdlg.h84
1 files changed, 84 insertions, 0 deletions
diff --git a/kmymoney2/dialogs/kstartdlg.h b/kmymoney2/dialogs/kstartdlg.h
new file mode 100644
index 0000000..a09f72d
--- /dev/null
+++ b/kmymoney2/dialogs/kstartdlg.h
@@ -0,0 +1,84 @@
+
+/***************************************************************************
+ kstartdlg.h - description
+ -------------------
+ ***************************************************************************/
+
+/***************************************************************************
+ * *
+ * This program is free software; you can redistribute it and/or modify *
+ * it under the terms of the GNU General Public License as published by *
+ * the Free Software Foundation; either version 2 of the License, or *
+ * (at your option) any later version. *
+ * *
+ ***************************************************************************/
+
+#ifndef KSTARTDLG_H
+#define KSTARTDLG_H
+
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
+
+#include <kdialogbase.h>
+
+#include <klocale.h>
+#include <kfontdialog.h>
+#include <kurlrequester.h>
+#include <kiconview.h>
+
+#include <qstring.h>
+#include <qradiobutton.h>
+#include <qlineedit.h>
+#include <qcheckbox.h>
+#include <qpushbutton.h>
+
+/**KMyMoney 2 start dialog
+ */
+
+class KStartDlg : public KDialogBase {
+ Q_OBJECT
+public:
+ KStartDlg( QWidget *parent=0, const char *name=0, bool modal=true );
+ virtual ~KStartDlg();
+ bool isNewFile(void) const { return isnewfile; }
+ bool isOpenFile(void) const { return !kurlrequest->url().isEmpty(); }
+ const QString getURL(void) const { return kurlrequest->url(); }
+ QString getTemplateName(void) const { return templatename; }
+
+private: // Private methods
+ QString m_filename;
+ bool fileExists(KURL url);
+
+ void setPage_Template();
+ void setPage_Documents();
+ /** misc widgets */
+ /** Write config window */
+ void writeConfig();
+ /** Read config window */
+ void readConfig();
+ KIconView *view_wizard;
+ KIconView *view_recent;
+ KURLRequester *kurlrequest;
+ /** misc variables */
+ bool isnewfile;
+ bool isopenfile;
+ QString templatename;
+ QVBox *templateMainFrame;
+ QFrame *recentMainFrame;
+
+protected slots:
+ /** No descriptions */
+ void slotOk();
+private slots:
+ void slotTemplateClicked(QIconViewItem *item);
+ /** slot to recent view */
+ void slotRecentClicked(QIconViewItem *item);
+
+ /** Handle selections */
+ void slotTemplateSelectionChanged(QIconViewItem* item);
+ void slotRecentSelectionChanged(QIconViewItem* item);
+ void slotAboutToShowPage(QWidget* page);
+};
+
+#endif