Changeset View
Changeset View
Standalone View
Standalone View
src/document/katedocument.h
Show First 20 Lines • Show All 1173 Lines • ▼ Show 20 Line(s) | 1172 | /** | |||
---|---|---|---|---|---|
1174 | Called when opening/saving a document | 1174 | Called when opening/saving a document | ||
1175 | */ | 1175 | */ | ||
1176 | void readVariables(bool onlyViewAndRenderer = false); | 1176 | void readVariables(bool onlyViewAndRenderer = false); | ||
1177 | 1177 | | |||
1178 | /** | 1178 | /** | ||
1179 | Reads and applies the variables in a single line | 1179 | Reads and applies the variables in a single line | ||
1180 | TODO registered variables gets saved in a [map] | 1180 | TODO registered variables gets saved in a [map] | ||
1181 | */ | 1181 | */ | ||
1182 | void readVariableLine(QString t, bool onlyViewAndRenderer = false); | 1182 | void readVariableLine(const QString &t, bool onlyViewAndRenderer = false); | ||
1183 | /** | 1183 | /** | ||
1184 | Sets a view variable in all the views. | 1184 | Sets a view variable in all the views. | ||
1185 | */ | 1185 | */ | ||
1186 | void setViewVariable(QString var, QString val); | 1186 | void setViewVariable(const QString &var, const QString &val); | ||
1187 | /** | 1187 | /** | ||
1188 | @return weather a string value could be converted | 1188 | @return weather a string value could be converted | ||
1189 | to a bool value as supported. | 1189 | to a bool value as supported. | ||
1190 | The value is put in *result. | 1190 | The value is put in *result. | ||
1191 | */ | 1191 | */ | ||
1192 | static bool checkBoolValue(QString value, bool *result); | 1192 | static bool checkBoolValue(QString value, bool *result); | ||
1193 | /** | 1193 | /** | ||
1194 | @return weather a string value could be converted | 1194 | @return weather a string value could be converted | ||
1195 | to a integer value. | 1195 | to a integer value. | ||
1196 | The value is put in *result. | 1196 | The value is put in *result. | ||
1197 | */ | 1197 | */ | ||
1198 | static bool checkIntValue(QString value, int *result); | 1198 | static bool checkIntValue(const QString &value, int *result); | ||
1199 | /** | 1199 | /** | ||
1200 | Feeds value into @p col using QColor::setNamedColor() and returns | 1200 | Feeds value into @p col using QColor::setNamedColor() and returns | ||
1201 | whether the color is valid | 1201 | whether the color is valid | ||
1202 | */ | 1202 | */ | ||
1203 | static bool checkColorValue(QString value, QColor &col); | 1203 | static bool checkColorValue(const QString &value, QColor &col); | ||
1204 | 1204 | | |||
1205 | bool m_fileChangedDialogsActivated = false; | 1205 | bool m_fileChangedDialogsActivated = false; | ||
1206 | 1206 | | |||
1207 | // | 1207 | // | ||
1208 | // KTextEditor::ConfigInterface | 1208 | // KTextEditor::ConfigInterface | ||
1209 | // | 1209 | // | ||
1210 | public: | 1210 | public: | ||
1211 | QStringList configKeys() const override; | 1211 | QStringList configKeys() const override; | ||
▲ Show 20 Lines • Show All 235 Lines • Show Last 20 Lines |