22#ifndef __koshell_window_h__
23#define __koshell_window_h__
25#include <KoMainWindow.h>
26#include <KoQueryTrader.h>
27#include <ktabwidget.h>
30#include <tqtoolbutton.h>
31#include <tqvaluelist.h>
33#include "iconsidepane.h"
41class KoShellGUIClient;
45class KoShellWindow : public KoMainWindow
53 virtual ~KoShellWindow();
55 virtual void setRootDocument( KoDocument *doc );
60 virtual void updateCaption();
62 virtual TQString configFile() const;
64 TDEAction *mnuSaveAll;
65 TDEAction* partSpecificHelpAction;
69 virtual void slotFileNew();
70 virtual void slotFileClose();
71 virtual void slotFileOpen();
74 void showPartSpecificHelp();
76 void slotSidebar_Part( int);
77 void slotSidebar_Document( int);
78 void tab_contextMenu(TQWidget * , const TQPoint &);
83 void slotShowSidebar();
89 void slotSidebarItemClicked( TQIconViewItem *item );
90 void slotKSLoadCompleted();
91 void slotKSLoadCanceled ( const TQString &);
92 void slotNewDocumentName();
99 void slotUpdatePart( TQWidget* widget );
110 virtual bool queryClose();
111 virtual bool openDocumentInternal( const KURL & url, KoDocument * newdoc = 0L );
112 virtual void slotConfigureKeys();
113 void closeDocument();
115 void switchToPage( TQValueList<Page>::Iterator it );
118 TQValueList<Page> m_lstPages;
119 TQValueList<Page>::Iterator m_activePage;
121 IconSidePane *m_pSidebar;
122 TQLabel *m_pComponentsLabel;
123 TQSplitter *m_pLayout;
124 KTabWidget *m_pFrame;
125 TQToolButton *m_tabCloseButton;
128 TQMap<int,KoDocumentEntry> m_mapComponents;
131 KoDocumentEntry m_documentEntry;
133 KoShellGUIClient *m_client;
134 void createShellGUI( bool create = true );
142class KoShellGUIClient : public KXMLGUIClient
145 KoShellGUIClient( KoShellWindow *window );
|