~ubuntu-branches/ubuntu/quantal/kate/quantal-proposed

« back to all changes in this revision

Viewing changes to kate/app/kateviewmanager.h

  • Committer: Package Import Robot
  • Author(s): Jonathan Riddell
  • Date: 2011-12-14 13:28:06 UTC
  • mto: This revision was merged to the branch mainline in revision 8.
  • Revision ID: package-import@ubuntu.com-20111214132806-aa2uf6ri5w2p8ak3
Tags: upstream-4.7.90
ImportĀ upstreamĀ versionĀ 4.7.90

Show diffs side-by-side

added added

removed removed

Lines of Context:
30
30
 
31
31
#include <QPointer>
32
32
#include <QList>
33
 
#include <QModelIndex>
34
33
#include <QSplitter>
35
34
#include <QStackedWidget>
36
35
 
90
89
    void closeViews(KTextEditor::Document *doc);
91
90
    KateMainWindow *mainWindow();
92
91
 
 
92
    bool isCursorPositionVisible() const;
 
93
    bool isCharactersCountVisible() const;
 
94
    bool isInsertModeVisible() const;
 
95
    bool isSelectModeVisible() const;
 
96
    bool isEncodingVisible() const;
 
97
    bool isDocumentNameVisible() const;
 
98
 
93
99
  private Q_SLOTS:
94
100
    void activateView ( KTextEditor::View *view );
95
101
    void activateSpace ( KTextEditor::View* v );
96
102
 
97
103
  public Q_SLOTS:
98
 
    void activateDocument(const QModelIndex &index);
99
 
 
100
104
    void slotDocumentNew ();
101
105
    void slotDocumentOpen ();
102
106
    void slotDocumentClose ();
116
120
    void viewChanged ();
117
121
    void viewCreated (KTextEditor::View *);
118
122
 
 
123
    void cursorPositionItemVisibilityChanged(bool);
 
124
    void charactersCountItemVisibilityChanged(bool);
 
125
    void insertModeItemVisibilityChanged(bool);
 
126
    void selectModeItemVisibilityChanged(bool);
 
127
    void encodingItemVisibilityChanged(bool);
 
128
    void documentNameItemVisibilityChanged(bool);
 
129
 
119
130
  public:
120
131
    inline QList<KTextEditor::View*> &viewList ()
121
132
    {
171
182
    /**
172
183
     * Splits a KateViewSpace into two in the following steps:
173
184
     * 1. create a QSplitter in the parent of the KateViewSpace to be split
174
 
     * 2. move the to-be-splitted KateViewSpace to the new splitter
 
185
     * 2. move the to-be-split KateViewSpace to the new splitter
175
186
     * 3. create new KateViewSpace and added to the new splitter
176
187
     * 4. create KateView to populate the new viewspace.
177
188
     * 5. The new KateView is made the active one, because createView() does that.
237
248
    KAction *m_closeView;
238
249
    KAction *goNext;
239
250
    KAction *goPrev;
 
251
    KAction *m_cursorPosToggle;
 
252
    KAction *m_charCountToggle;
 
253
    KAction *m_insertModeToggle;
 
254
    KAction *m_selectModeToggle;
 
255
    KAction *m_encodingToggle;
 
256
    KAction *m_docNameToggle;
240
257
 
241
258
    QList<KateViewSpace*> m_viewSpaceList;
242
259
    QList<KTextEditor::View*> m_viewList;