• Skip to content
  • Skip to link menu
KDE 4.2 API Reference
  • KDE API Reference
  • API Reference
  • Sitemap
  • Contact Us
 

Konsole

ColorSchemeEditor.h

Go to the documentation of this file.
00001 /*
00002     Copyright 2007-2008 by Robert Knight <robertknight@gmail.com>
00003 
00004     This program is free software; you can redistribute it and/or modify
00005     it under the terms of the GNU General Public License as published by
00006     the Free Software Foundation; either version 2 of the License, or
00007     (at your option) any later version.
00008 
00009     This program is distributed in the hope that it will be useful,
00010     but WITHOUT ANY WARRANTY; without even the implied warranty of
00011     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00012     GNU General Public License for more details.
00013 
00014     You should have received a copy of the GNU General Public License
00015     along with this program; if not, write to the Free Software
00016     Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
00017     02110-1301  USA.
00018 */
00019 
00020 #ifndef COLORSCHEMEEDITOR_H
00021 #define COLORSCHEMEEDITOR_H
00022 
00023 // Qt
00024 #include <QtGui/QWidget>
00025 
00026 // Konsole
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 

Konsole

Skip menu "Konsole"
  • Main Page
  • Namespace List
  • Class Hierarchy
  • Alphabetical List
  • Class List
  • File List
  • Namespace Members
  • Class Members
  • Related Pages

API Reference

Skip menu "API Reference"
  • Konsole
  • Libraries
  •   libkonq
Generated for API Reference by doxygen 1.5.7
This website is maintained by Adriaan de Groot and Allen Winter.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal