Changeset View
Changeset View
Standalone View
Standalone View
shell/documentcontroller.h
Show First 20 Lines • Show All 148 Lines • ▼ Show 20 Line(s) | 117 | public Q_SLOTS: | |||
---|---|---|---|---|---|
149 | // the currently selected project-item if no document is active. | 149 | // the currently selected project-item if no document is active. | ||
150 | // If 'target' is "[selection]", returns the path of the currently active selection. | 150 | // If 'target' is "[selection]", returns the path of the currently active selection. | ||
151 | // If 'target' is the name of a project, returns the root-path of that project. | 151 | // If 'target' is the name of a project, returns the root-path of that project. | ||
152 | // Whenever the returned path corresponds to a directory, a '/.' suffix is appended. | 152 | // Whenever the returned path corresponds to a directory, a '/.' suffix is appended. | ||
153 | Q_SCRIPTABLE QString activeDocumentPath(QString target = {}) const; | 153 | Q_SCRIPTABLE QString activeDocumentPath(QString target = {}) const; | ||
154 | 154 | | |||
155 | // Returns all open documents in the current area | 155 | // Returns all open documents in the current area | ||
156 | Q_SCRIPTABLE QStringList activeDocumentPaths() const; | 156 | Q_SCRIPTABLE QStringList activeDocumentPaths() const; | ||
157 | void vcsAnnotateCurrentDocument(); | | |||
158 | 157 | | |||
159 | private Q_SLOTS: | 158 | private Q_SLOTS: | ||
160 | virtual void slotOpenDocument(const QUrl &url); | 159 | virtual void slotOpenDocument(const QUrl &url); | ||
161 | void notifyDocumentClosed(Sublime::Document* doc); | 160 | void notifyDocumentClosed(Sublime::Document* doc); | ||
162 | 161 | | |||
163 | private: | 162 | private: | ||
164 | bool openDocumentsWithSplitSeparators( Sublime::AreaIndex* index, QStringList urlsWithSeparators, bool& isFirstView ); | 163 | bool openDocumentsWithSplitSeparators( Sublime::AreaIndex* index, QStringList urlsWithSeparators, bool& isFirstView ); | ||
165 | QList<IDocument*> visibleDocumentsInWindow(MainWindow* mw) const; | 164 | QList<IDocument*> visibleDocumentsInWindow(MainWindow* mw) const; | ||
Show All 15 Lines |