Changeset View
Changeset View
Standalone View
Standalone View
src/project/project.h
Show First 20 Lines • Show All 83 Lines • ▼ Show 20 Line(s) | 63 | public: | |||
---|---|---|---|---|---|
84 | */ | 84 | */ | ||
85 | public: | 85 | public: | ||
86 | /** | 86 | /** | ||
87 | * @return list of all scripts contained in this project | 87 | * @return list of all scripts contained in this project | ||
88 | */ | 88 | */ | ||
89 | QList<KTextEditor::Document*> codeDocuments() const; | 89 | QList<KTextEditor::Document*> codeDocuments() const; | ||
90 | 90 | | |||
91 | /** | 91 | /** | ||
92 | * Creates a code document based on a given file path | ||||
93 | */ | ||||
94 | KTextEditor::Document* createCodeDocument(const QString& filePath); | ||||
tcanabrava: const QString& filePath, this way you don't create a copy of the variable just to pass it… | |||||
95 | | ||||
96 | /** | ||||
97 | * Returns a document of a given url (path) | ||||
98 | */ | ||||
99 | KTextEditor::Document* openCodeDocument(const QUrl &url); | ||||
100 | | ||||
101 | /** | ||||
92 | * Add code document @p document to project. This updates the document's url. | 102 | * Add code document @p document to project. This updates the document's url. | ||
93 | */ | 103 | */ | ||
94 | bool addCodeDocument(KTextEditor::Document *document); | 104 | bool addCodeDocument(KTextEditor::Document *document); | ||
95 | 105 | | |||
96 | /** | 106 | /** | ||
97 | * Import the script given in file @p url to the project. This creates a copy | 107 | * Import the script given in file @p url to the project. This creates a copy | ||
98 | * of the original document. | 108 | * of the original document. | ||
99 | */ | 109 | */ | ||
▲ Show 20 Lines • Show All 128 Lines • Show Last 20 Lines |
const QString& filePath, this way you don't create a copy of the variable just to pass it around.