20 #ifndef EDITPROFILEDIALOG_H
21 #define EDITPROFILEDIALOG_H
24 #include <QAbstractItemDelegate>
25 #include <QtCore/QHash>
26 #include <QtCore/QPointer>
37 class QAbstractButton;
38 class QItemSelectionModel;
43 class EditProfileDialog;
87 void selectProfileName();
92 virtual void accept();
94 virtual void reject();
97 virtual bool eventFilter(
QObject* watched , QEvent* event);
101 void preparePage(
int);
107 void selectInitialDir();
110 void profileNameChanged(
const QString& text);
111 void initialDirChanged(
const QString& text);
112 void startInSameDir(
bool);
113 void commandChanged(
const QString& text);
114 void tabTitleFormatChanged(
const QString& text);
115 void remoteTabTitleFormatChanged(
const QString& text);
117 void showTerminalSizeHint(
bool);
118 void saveGeometryOnExit(
bool);
119 void showEnvironmentEditor();
120 void silenceSecondsChanged(
int);
123 void setFontSize(
double pointSize);
124 void setFontInputValue(
const QFont&);
125 void setAntialiasText(
bool enable);
126 void setBoldIntense(
bool enable);
127 void showFontDialog();
128 void newColorScheme();
129 void editColorScheme();
130 void saveColorScheme(
const ColorScheme& scheme,
bool isNewScheme);
131 void removeColorScheme();
132 void colorSchemeSelected();
133 void previewColorScheme(
const QModelIndex& index);
134 void fontSelected(
const QFont&);
135 void toggleMouseWheelZoom(
bool enable);
140 void historySizeChanged(
int);
142 void hideScrollBar();
143 void showScrollBarLeft();
144 void showScrollBarRight();
146 void scrollFullPage();
147 void scrollHalfPage();
150 void editKeyBinding();
151 void newKeyBinding();
152 void keyBindingSelected();
153 void removeKeyBinding();
156 void toggleUnderlineLinks(
bool);
157 void toggleOpenLinksByDirectClick(
bool);
158 void toggleCtrlRequiredForDrag(
bool);
159 void toggleCopyTextToClipboard(
bool);
160 void toggleTrimTrailingSpacesInSelectedText(
bool);
161 void pasteFromX11Selection();
162 void pasteFromClipboard();
164 void TripleClickModeChanged(
int);
165 void wordCharactersChanged(
const QString&);
168 void toggleBlinkingText(
bool);
169 void toggleFlowControl(
bool);
170 void togglebidiRendering(
bool);
171 void lineSpacingChanged(
int);
172 void toggleBlinkingCursor(
bool);
174 void setCursorShape(
int);
175 void autoCursorColor();
176 void customCursorColor();
177 void customCursorColorChanged(
const QColor&);
178 void setDefaultCodec(QTextCodec*);
181 void delayedPreviewActivate();
193 void updateColorSchemeList(
bool selectCurrentScheme =
false);
194 void updateColorSchemeButtons();
195 void updateKeyBindingsList(
bool selectCurrentTranslator =
false);
196 void updateKeyBindingsButtons();
198 void showColorSchemeEditor(
bool isNewScheme);
199 void closeColorSchemeEditor();
200 void showKeyBindingEditor(
bool newTranslator);
202 void preview(
int property ,
const QVariant& value);
203 void delayedPreview(
int property ,
const QVariant& value);
204 void unpreview(
int property);
206 void enableIfNonEmptySelection(
QWidget* widget, QItemSelectionModel* selectionModel);
209 void updateTransparencyWarning();
218 void createTempProfile();
222 void updateButtonApply();
224 static QString groupProfileNames(
const ProfileGroup::Ptr group,
int maxLength = -1);
227 QAbstractButton* button;
231 void setupRadio(RadioOption* possibilities,
int actual);
232 struct BooleanOption {
233 QAbstractButton* button;
237 void setupCheckBoxes(BooleanOption* options ,
const Profile::Ptr profile);
239 Ui::EditProfileDialog* _ui;
247 QVector<bool> _pageNeedsUpdate;
248 QHash<int, QVariant> _previewedProperties;
250 QHash<int, QVariant> _delayedPreviewProperties;
251 QTimer* _delayedPreviewTimer;
267 virtual void paint(QPainter* painter,
const QStyleOptionViewItem& option,
268 const QModelIndex& index)
const;
269 virtual QSize
sizeHint(
const QStyleOptionViewItem& option,
270 const QModelIndex& index)
const;
274 #endif // EDITPROFILEDIALOG_H
KSharedPtr< ProfileGroup > Ptr
virtual void paint(QPainter *painter, const QStyleOptionViewItem &option, const QModelIndex &index) const
Property
This enum describes the available properties which a Profile may consist of.
ColorSchemeViewDelegate(QObject *parent=0)
A dialog which allows the user to edit a profile.
HistoryModeEnum
This enum describes the modes available to remember lines of output produced by the terminal...
KSharedPtr< Profile > Ptr
virtual QSize sizeHint(const QStyleOptionViewItem &option, const QModelIndex &index) const
A delegate which can display and edit color schemes in a view.
A dialog for editing color schemes.
#define KONSOLEPRIVATE_EXPORT
Represents a color scheme for a terminal display.