Changeset View
Changeset View
Standalone View
Standalone View
src/EditProfileDialog.h
Show All 29 Lines | |||||
30 | // KDE | 30 | // KDE | ||
31 | #include <KNS3/Entry> | 31 | #include <KNS3/Entry> | ||
32 | 32 | | |||
33 | // Konsole | 33 | // Konsole | ||
34 | #include "Profile.h" | 34 | #include "Profile.h" | ||
35 | #include "Enumeration.h" | 35 | #include "Enumeration.h" | ||
36 | #include "ColorScheme.h" | 36 | #include "ColorScheme.h" | ||
37 | #include "ColorSchemeEditor.h" | 37 | #include "ColorSchemeEditor.h" | ||
38 | #include "KeyboardTranslatorManager.h" | ||||
38 | 39 | | |||
39 | class QAbstractButton; | 40 | class QAbstractButton; | ||
40 | class QItemSelectionModel; | 41 | class QItemSelectionModel; | ||
41 | class QTextCodec; | 42 | class QTextCodec; | ||
42 | class QDialogButtonBox; | 43 | class QDialogButtonBox; | ||
43 | namespace Ui { | 44 | namespace Ui { | ||
44 | class EditProfileDialog; | 45 | class EditProfileDialog; | ||
45 | } | 46 | } | ||
▲ Show 20 Lines • Show All 114 Lines • ▼ Show 20 Line(s) | 102 | private Q_SLOTS: | |||
160 | void scrollFullPage(); | 161 | void scrollFullPage(); | ||
161 | void scrollHalfPage(); | 162 | void scrollHalfPage(); | ||
162 | 163 | | |||
163 | // keyboard page | 164 | // keyboard page | ||
164 | void editKeyBinding(); | 165 | void editKeyBinding(); | ||
165 | void newKeyBinding(); | 166 | void newKeyBinding(); | ||
166 | void keyBindingSelected(); | 167 | void keyBindingSelected(); | ||
167 | void removeKeyBinding(); | 168 | void removeKeyBinding(); | ||
169 | void resetKeyBindings(); | ||||
168 | 170 | | |||
169 | // mouse page | 171 | // mouse page | ||
170 | void toggleUnderlineFiles(bool enable); | 172 | void toggleUnderlineFiles(bool enable); | ||
171 | void toggleUnderlineLinks(bool); | 173 | void toggleUnderlineLinks(bool); | ||
172 | void toggleOpenLinksByDirectClick(bool); | 174 | void toggleOpenLinksByDirectClick(bool); | ||
173 | void toggleCtrlRequiredForDrag(bool); | 175 | void toggleCtrlRequiredForDrag(bool); | ||
174 | void toggleDropUrlsAsText(bool); | 176 | void toggleDropUrlsAsText(bool); | ||
175 | void toggleCopyTextToClipboard(bool); | 177 | void toggleCopyTextToClipboard(bool); | ||
Show All 39 Lines | 205 | private: | |||
215 | // Returns the name of the colorScheme used in the current profile | 217 | // Returns the name of the colorScheme used in the current profile | ||
216 | const QString currentColorSchemeName() const; | 218 | const QString currentColorSchemeName() const; | ||
217 | 219 | | |||
218 | // select @p selectedColorSchemeName after the changes are saved | 220 | // select @p selectedColorSchemeName after the changes are saved | ||
219 | // in the colorScheme editor | 221 | // in the colorScheme editor | ||
220 | void updateColorSchemeList(const QString &selectedColorSchemeName = QString()); | 222 | void updateColorSchemeList(const QString &selectedColorSchemeName = QString()); | ||
221 | 223 | | |||
222 | void updateColorSchemeButtons(); | 224 | void updateColorSchemeButtons(); | ||
223 | void updateKeyBindingsList(bool selectCurrentTranslator = false); | 225 | | ||
226 | // Convenience method | ||||
227 | KeyboardTranslatorManager *_keyManager = KeyboardTranslatorManager::instance(); | ||||
228 | | ||||
229 | // Updates the key bindings list widget on the Keyboard tab and selects | ||||
230 | // @p selectTranslatorName | ||||
231 | void updateKeyBindingsList(const QString &selectTranslatorName = QString()); | ||||
224 | void updateKeyBindingsButtons(); | 232 | void updateKeyBindingsButtons(); | ||
233 | void showKeyBindingEditor(bool isNewTranslator); | ||||
225 | 234 | | |||
226 | void showColorSchemeEditor(bool isNewScheme); | 235 | void showColorSchemeEditor(bool isNewScheme); | ||
227 | void closeColorSchemeEditor(); | 236 | void closeColorSchemeEditor(); | ||
228 | void showKeyBindingEditor(bool isNewTranslator); | | |||
229 | 237 | | |||
230 | void preview(int property, const QVariant &value); | 238 | void preview(int property, const QVariant &value); | ||
231 | void delayedPreview(int property, const QVariant &value); | 239 | void delayedPreview(int property, const QVariant &value); | ||
232 | void unpreview(int property); | 240 | void unpreview(int property); | ||
233 | void unpreviewAll(); | 241 | void unpreviewAll(); | ||
234 | void enableIfNonEmptySelection(QWidget *widget, QItemSelectionModel *selectionModel); | 242 | void enableIfNonEmptySelection(QWidget *widget, QItemSelectionModel *selectionModel); | ||
235 | 243 | | |||
236 | void updateCaption(const Profile::Ptr profile); | 244 | void updateCaption(const Profile::Ptr profile); | ||
▲ Show 20 Lines • Show All 74 Lines • Show Last 20 Lines |