summaryrefslogtreecommitdiffstats
path: root/languages/cpp/app_templates/kscons_tdemdi/apptdemdi.h
diff options
context:
space:
mode:
Diffstat (limited to 'languages/cpp/app_templates/kscons_tdemdi/apptdemdi.h')
-rw-r--r--languages/cpp/app_templates/kscons_tdemdi/apptdemdi.h83
1 files changed, 83 insertions, 0 deletions
diff --git a/languages/cpp/app_templates/kscons_tdemdi/apptdemdi.h b/languages/cpp/app_templates/kscons_tdemdi/apptdemdi.h
new file mode 100644
index 00000000..02d26d0c
--- /dev/null
+++ b/languages/cpp/app_templates/kscons_tdemdi/apptdemdi.h
@@ -0,0 +1,83 @@
+%{H_TEMPLATE}
+
+#ifndef _%{APPNAMEUC}KMDI_H
+#define _%{APPNAMEUC}KMDI_H
+
+#include <tqvaluelist.h>
+
+#include <kapplication.h>
+#include <tdemdimainfrm.h>
+#include <kurl.h>
+
+class KToggleAction;
+class KRecentFilesAction;
+
+class tdemdikonsole;
+class KMdiChildView;
+class TQWidgetStack;
+class %{APPNAMELC}tdemdiView;
+class TextProperties;
+class MiscProperties;
+
+/**
+ * This class serves as the main window for %{APPNAMELC}tdemdi. It handles the
+ * menus, toolbars, and status bars.
+ *
+ * @short Main window class
+ */
+class %{APPNAMELC}tdemdi : public KMdiMainFrm
+{
+ Q_OBJECT
+
+ public:
+ %{APPNAMELC}tdemdi( KMdi::MdiMode mode );
+ virtual ~%{APPNAMELC}tdemdi();
+ void showTipOnStart();
+
+ public slots:
+ void openURL( const KURL& );
+
+ protected:
+ virtual void dragEnterEvent(TQDragEnterEvent *event);
+ virtual void dropEvent(TQDropEvent *event);
+ virtual bool queryClose();
+
+ private slots:
+ void slotFileNew();
+ void slotFileClose();
+ void slotFileQuit();
+
+ /// this is called when a new file is saved
+ void showTip();
+
+ void optionsShowToolbar();
+ void optionsShowStatusbar();
+ void optionsConfigureKeys();
+ void optionsConfigureToolbars();
+ void optionsPreferences();
+ void newToolbarConfig();
+
+
+ void changeStatusbar(const TQString& text);
+
+ void currentChanged( KMdiChildView *current );
+ bool requestClose(KMdiChildView* view);
+
+ void settingsChanged();
+
+ private:
+ void setupAccel();
+ void setupActions();
+
+ TQValueList<%{APPNAMELC}tdemdiView*> m_views;
+
+ KToggleAction *m_toolbarAction;
+ KToggleAction *m_statusbarAction;
+
+ KParts::PartManager *m_manager;
+
+ tdemdikonsole *m_console;
+};
+
+#endif // _%{APPNAMEUC}KMDI_H
+