• Skip to content
  • Skip to link menu
KDE API Reference
  • KDE API Reference
  • applications API Reference
  • KDE Home
  • Contact Us
 

Konsole

  • kde-4.14
  • applications
  • konsole
  • src
ColorSchemeEditor.h
Go to the documentation of this file.
1 /*
2  Copyright 2007-2008 by Robert Knight <robertknight@gmail.com>
3 
4  This program is free software; you can redistribute it and/or modify
5  it under the terms of the GNU General Public License as published by
6  the Free Software Foundation; either version 2 of the License, or
7  (at your option) any later version.
8 
9  This program is distributed in the hope that it will be useful,
10  but WITHOUT ANY WARRANTY; without even the implied warranty of
11  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12  GNU General Public License for more details.
13 
14  You should have received a copy of the GNU General Public License
15  along with this program; if not, write to the Free Software
16  Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
17  02110-1301 USA.
18 */
19 
20 #ifndef COLORSCHEMEEDITOR_H
21 #define COLORSCHEMEEDITOR_H
22 
23 // Qt
24 #include <QWidget>
25 
26 // KDE
27 #include <KDialog>
28 
29 // Konsole
30 #include "Profile.h"
31 
32 class QTableWidgetItem;
33 
34 namespace Ui
35 {
36 class ColorSchemeEditor;
37 }
38 
39 namespace Konsole
40 {
41 class ColorScheme;
42 
55 class KONSOLEPRIVATE_EXPORT ColorSchemeEditor : public KDialog
56 {
57  Q_OBJECT
58 
59 public:
61  explicit ColorSchemeEditor(QWidget* parent = 0);
62  virtual ~ColorSchemeEditor();
63 
65  void setup(const ColorScheme* scheme, bool isNewScheme);
67  ColorScheme& colorScheme() const;
68  bool isNewScheme() const;
69 
70 signals:
72  void colorsChanged(ColorScheme* scheme);
74  void colorSchemeSaveRequested(const ColorScheme& scheme,bool isNewScheme);
75 
76 public slots:
78  void setDescription(const QString& description);
79 
80 private slots:
81  void setTransparencyPercentLabel(int percent);
82  void setRandomizedBackgroundColor(bool randomized);
83  void editColorItem(QTableWidgetItem* item);
84  void wallpaperPathChanged(const QString& path);
85  void selectWallpaper();
87  void saveColorScheme();
88 
89 private:
90  void setupColorTable(const ColorScheme* table);
91 
92  bool _isNewScheme;
93  Ui::ColorSchemeEditor* _ui;
94  ColorScheme* _colors;
95 };
96 }
97 
98 #endif // COLORSCHEMEEDITOR_H
QWidget
QTableWidgetItem
KDialog
QString
Konsole::ColorSchemeEditor
A dialog for editing color schemes.
Definition: ColorSchemeEditor.h:55
KONSOLEPRIVATE_EXPORT
#define KONSOLEPRIVATE_EXPORT
Definition: konsole_export.h:33
Profile.h
Konsole::ColorScheme
Represents a color scheme for a terminal display.
Definition: ColorScheme.h:72
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Sat May 9 2020 03:56:27 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

Konsole

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

applications API Reference

Skip menu "applications API Reference"
  •   kate
  •       kate
  •   KTextEditor
  •   Kate
  • Konsole

Search



Report problems with this website to our bug tracking system.
Contact the specific authors with questions and comments about the page contents.

KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal