Konsole
ColorSchemeEditor.h
Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020 #ifndef COLORSCHEMEEDITOR_H
00021 #define COLORSCHEMEEDITOR_H
00022
00023
00024 #include <QtGui/QWidget>
00025
00026
00027 #include "ColorScheme.h"
00028
00029 class QTableWidgetItem;
00030
00031 namespace Ui
00032 {
00033 class ColorSchemeEditor;
00034 }
00035
00036 namespace Konsole
00037 {
00038
00039 class ColorScheme;
00040
00053 class ColorSchemeEditor : public QWidget
00054 {
00055 Q_OBJECT
00056
00057 public:
00059 ColorSchemeEditor(QWidget* parent = 0);
00060 virtual ~ColorSchemeEditor();
00061
00063 void setup(const ColorScheme* scheme);
00065 ColorScheme* colorScheme() const;
00066
00067 signals:
00069 void colorsChanged(ColorScheme* scheme);
00070
00071 public slots:
00073 void setDescription(const QString& description);
00074
00075 private slots:
00076 void setTransparencyPercentLabel(int percent);
00077 void setRandomizedBackgroundColor(bool randomized);
00078 void editColorItem(QTableWidgetItem* item);
00079
00080 private:
00081 void setupColorTable(const ColorScheme* table);
00082
00083 Ui::ColorSchemeEditor* _ui;
00084 ColorScheme* _colors;
00085 };
00086
00087 }
00088
00089 #endif // COLORSCHEMEEDITOR_H