%{H_TEMPLATE} #ifndef _%{APPNAMEUC}_H_ #define _%{APPNAMEUC}_H_ #ifdef HAVE_CONFIG_H #include #endif #include #include #include "%{APPNAMELC}view.h" class KPrinter; class KURL; /** * This class serves as the main window for %{APPNAME}. It handles the * menus, toolbars, and status bars. * * @short Main window class * @author %{AUTHOR} <%{EMAIL}> * @version %{VERSION} */ class %{APPNAME} : public KMainWindow { Q_OBJECT public: /** * Default Constructor */ %{APPNAME}(); /** * Default Destructor */ virtual ~%{APPNAME}(); /** * Use this method to load whatever file/URL you have */ void load(const KURL& url); protected: /** * Overridden virtuals for TQt drag 'n drop (XDND) */ virtual void dragEnterEvent(TQDragEnterEvent *event); virtual void dropEvent(TQDropEvent *event); protected: /** * This function is called when it is time for the app to save its * properties for session management purposes. */ void saveProperties(TDEConfig *); /** * This function is called when this app is restored. The TDEConfig * object points to the session management config file that was saved * with @ref saveProperties */ void readProperties(TDEConfig *); private slots: void fileNew(); void fileOpen(); void fileSave(); void fileSaveAs(); void filePrint(); void optionsPreferences(); void changeStatusbar(const TQString& text); void changeCaption(const TQString& text); private: void setupAccel(); void setupActions(); private: %{APPNAME}View *m_view; KPrinter *m_printer; }; #endif // _%{APPNAMEUC}_H_