21 #ifndef __KATE_VIEWSPACE_H__
22 #define __KATE_VIEWSPACE_H__
26 #include <kate/view.h>
27 #include <kate/document.h>
29 #include <tqptrlist.h>
32 #include <kstatusbar.h>
37 class KSqueezedTextLabel;
38 class KateViewSpaceContainer;
40 class KateVSStatusBar :
public KStatusBar
45 KateVSStatusBar ( KateViewSpace *parent = 0L,
const char *name = 0L );
46 virtual ~KateVSStatusBar ();
49 void setStatus(
int r,
int c,
int ovr,
bool block,
int mod,
const TQString &msg );
50 void updateMod(
bool );
55 void modifiedChanged();
58 virtual bool eventFilter (TQObject*,TQEvent *);
59 virtual void showMenu ();
62 TQLabel* m_lineColLabel;
63 TQLabel* m_modifiedLabel;
64 TQLabel* m_insertModeLabel;
65 TQLabel* m_selectModeLabel;
66 KSqueezedTextLabel* m_fileNameLabel;
67 TQPixmap m_modPm, m_modDiscPm, m_modmodPm;
68 class KateViewSpace *m_viewSpace;
71 class KateViewSpace :
public TQVBox
73 friend class KateViewSpaceContainer;
74 friend class KateVSStatusBar;
79 KateViewSpace(KateViewSpaceContainer *, TQWidget* parent=0,
const char* name=0);
82 void setActive(
bool b,
bool showled=
false);
84 void addView(Kate::View* v,
bool show=
true);
85 void removeView(Kate::View* v);
86 bool showView(Kate::View* v);
87 bool showView(uint docID);
88 Kate::View* currentView();
89 int viewCount()
const {
return mViewList.count(); }
91 void saveConfig (TDEConfig* config,
int myIndex,
const TQString& viewConfGrp);
92 void restoreConfig (
class KateViewSpaceContainer *viewMan, TDEConfig* config,
const TQString &group );
98 bool event( TQEvent * );
102 KateVSStatusBar* mStatusBar;
106 TQPtrList<Kate::View> mViewList;
109 KateViewSpaceContainer *m_viewManager;
113 void slotStatusChanged (Kate::View *view,
int r,
int c,
int ovr,
bool block,
int mod,
const TQString &msg);
117 void modifiedOnDisc(Kate::Document *,
bool,
unsigned char);