You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
tdevelop/languages/cpp/app_templates/kscons_kmdi/appkmdi.h

84 lines
1.6 KiB

%{H_TEMPLATE}
#ifndef _%{APPNAMEUC}KMDI_H
#define _%{APPNAMEUC}KMDI_H
#include <tqvaluelist.h>
#include <kapplication.h>
#include <kmdimainfrm.h>
#include <kurl.h>
class KToggleAction;
class KRecentFilesAction;
class kmdikonsole;
class KMdiChildView;
class TQWidgetStack;
class %{APPNAMELC}kmdiView;
class TextProperties;
class MiscProperties;
/**
* This class serves as the main window for %{APPNAMELC}kmdi. It handles the
* menus, toolbars, and status bars.
*
* @short Main window class
*/
class %{APPNAMELC}kmdi : public KMdiMainFrm
{
Q_OBJECT
TQ_OBJECT
public:
%{APPNAMELC}kmdi( KMdi::MdiMode mode );
virtual ~%{APPNAMELC}kmdi();
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}kmdiView*> m_views;
KToggleAction *m_toolbarAction;
KToggleAction *m_statusbarAction;
KParts::PartManager *m_manager;
kmdikonsole *m_console;
};
#endif // _%{APPNAMEUC}KMDI_H