moved kdeaccessibility kdeaddons kdeadmin kdeartwork kdebindings kdeedu kdegames...
[kdeedu.git] / kstars / kstars / opscolors.h
blobd1a510d5fa78342dadbed532f598aba922c44e73
1 /***************************************************************************
2 opscolors.h - K Desktop Planetarium
3 -------------------
4 begin : Sun Feb 29 2004
5 copyright : (C) 2004 by Jason Harris
6 email : jharris@30doradus.org
7 ***************************************************************************/
8 /***************************************************************************
9 * *
10 * This program is free software; you can redistribute it and/or modify *
11 * it under the terms of the GNU General Public License as published by *
12 * the Free Software Foundation; either version 2 of the License, or *
13 * (at your option) any later version. *
14 * *
15 ***************************************************************************/
17 #ifndef OPSCOLORS_H
18 #define OPSCOLORS_H
20 #include <qstringlist.h>
22 #include "opscolorsui.h"
24 /**@class OpsColors
25 *The Colors page allows the user to adjust all of the colors used to
26 *display the night sky. The colors are presented as a list of
27 *colored rectangles and a description of its assignment in the map.
28 *Clicking on any color opens a KColorDialog for selecting a new color.
30 *The user can also load preset color schemes, or create new schemes
31 *from the current set of colors.
33 *@short The Colors page of the Options window.
34 *@author Jason Harris
35 *@version 1.0
38 class QWidget;
39 class KStars;
41 class OpsColors : public OpsColorsUI
43 Q_OBJECT
45 public:
46 OpsColors( QWidget *parent=0, const char *name=0, WFlags fl = 0 );
47 ~OpsColors();
49 private slots:
50 void newColor( QListBoxItem* item );
51 void slotPreset( int i );
52 void slotAddPreset();
53 void slotRemovePreset();
54 void slotStarColorMode( int );
55 void slotStarColorIntensity( int );
57 private:
58 bool setColors( QString filename );
60 KStars *ksw;
62 QStringList PresetFileList;
65 #endif //OPSCOLORS_H