• Skip to content
  • Skip to link menu
Trinity API Reference
  • Trinity API Reference
  • kate
 

kate

  • kate
  • app
kateviewspace.h
1/* This file is part of the KDE project
2 Copyright (C) 2001 Christoph Cullmann <cullmann@kde.org>
3 Copyright (C) 2001 Joseph Wenninger <jowenn@kde.org>
4 Copyright (C) 2001 Anders Lund <anders.lund@lund.tdcadsl.dk>
5
6 This library is free software; you can redistribute it and/or
7 modify it under the terms of the GNU Library General Public
8 License version 2 as published by the Free Software Foundation.
9
10 This library is distributed in the hope that it will be useful,
11 but WITHOUT ANY WARRANTY; without even the implied warranty of
12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 Library General Public License for more details.
14
15 You should have received a copy of the GNU Library General Public License
16 along with this library; see the file COPYING.LIB. If not, write to
17 the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
18 Boston, MA 02110-1301, USA.
19*/
20
21#ifndef __KATE_VIEWSPACE_H__
22#define __KATE_VIEWSPACE_H__
23
24#include "katemain.h"
25
26#include <kate/view.h>
27#include <kate/document.h>
28
29#include <tqptrlist.h>
30#include <tqwidget.h>
31#include <tqvbox.h>
32#include <kstatusbar.h>
33
34class KVSSBSep;
35
36class TDEConfig;
37class KSqueezedTextLabel;
38class KateViewSpaceContainer;
39
40class KateVSStatusBar : public KStatusBar
41{
42 TQ_OBJECT
43
44 public:
45 KateVSStatusBar ( KateViewSpace *parent = 0L, const char *name = 0L );
46 virtual ~KateVSStatusBar ();
47
48 public slots:
49 void setStatus( int r, int c, int ovr, bool block, int mod, const TQString &msg );
50 void updateMod( bool );
55 void modifiedChanged();
56
57 protected:
58 virtual bool eventFilter (TQObject*,TQEvent *);
59 virtual void showMenu ();
60
61 private:
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;
69};
70
71class KateViewSpace : public TQVBox
72{
73 friend class KateViewSpaceContainer;
74 friend class KateVSStatusBar;
75
76 TQ_OBJECT
77
78 public:
79 KateViewSpace(KateViewSpaceContainer *, TQWidget* parent=0, const char* name=0);
80 ~KateViewSpace();
81 bool isActiveSpace();
82 void setActive(bool b, bool showled=false);
83 TQWidgetStack* stack;
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(); }
90
91 void saveConfig (TDEConfig* config, int myIndex,const TQString& viewConfGrp);
92 void restoreConfig ( class KateViewSpaceContainer *viewMan, TDEConfig* config, const TQString &group );
93
94
95 protected:
98 bool event( TQEvent * );
99
100 private:
101 bool mIsActiveSpace;
102 KateVSStatusBar* mStatusBar;
103 TQLabel* l;
104 TQPixmap i_active;
105 TQPixmap i_empty;
106 TQPtrList<Kate::View> mViewList;
107 int mViewCount;
108 KVSSBSep *sep;
109 KateViewSpaceContainer *m_viewManager;
110 TQString m_group;
111
112 private slots:
113 void slotStatusChanged (Kate::View *view, int r, int c, int ovr, bool block, int mod, const TQString &msg);
114
115 public slots:
116 void polish();
117 void modifiedOnDisc(Kate::Document *, bool, unsigned char);
118};
119
120#endif

kate

Skip menu "kate"
  • Main Page
  • Namespace List
  • Class Hierarchy
  • Alphabetical List
  • Class List
  • File List
  • Namespace Members
  • Class Members

kate

Skip menu "kate"
  • kate
  • libkonq
  • twin
  •   lib
Generated for kate by doxygen 1.9.4
This website is maintained by Timothy Pearson.