summaryrefslogtreecommitdiffstats
path: root/kstars/kstars/opscolors.h
diff options
context:
space:
mode:
Diffstat (limited to 'kstars/kstars/opscolors.h')
-rw-r--r--kstars/kstars/opscolors.h66
1 files changed, 66 insertions, 0 deletions
diff --git a/kstars/kstars/opscolors.h b/kstars/kstars/opscolors.h
new file mode 100644
index 00000000..d1a510d5
--- /dev/null
+++ b/kstars/kstars/opscolors.h
@@ -0,0 +1,66 @@
+/***************************************************************************
+ opscolors.h - K Desktop Planetarium
+ -------------------
+ begin : Sun Feb 29 2004
+ copyright : (C) 2004 by Jason Harris
+ email : jharris@30doradus.org
+ ***************************************************************************/
+/***************************************************************************
+ * *
+ * This program is free software; you can redistribute it and/or modify *
+ * it under the terms of the GNU General Public License as published by *
+ * the Free Software Foundation; either version 2 of the License, or *
+ * (at your option) any later version. *
+ * *
+ ***************************************************************************/
+
+#ifndef OPSCOLORS_H
+#define OPSCOLORS_H
+
+#include <qstringlist.h>
+
+#include "opscolorsui.h"
+
+/**@class OpsColors
+ *The Colors page allows the user to adjust all of the colors used to
+ *display the night sky. The colors are presented as a list of
+ *colored rectangles and a description of its assignment in the map.
+ *Clicking on any color opens a KColorDialog for selecting a new color.
+ *
+ *The user can also load preset color schemes, or create new schemes
+ *from the current set of colors.
+ *
+ *@short The Colors page of the Options window.
+ *@author Jason Harris
+ *@version 1.0
+ */
+
+class QWidget;
+class KStars;
+
+class OpsColors : public OpsColorsUI
+{
+ Q_OBJECT
+
+public:
+ OpsColors( QWidget *parent=0, const char *name=0, WFlags fl = 0 );
+ ~OpsColors();
+
+private slots:
+ void newColor( QListBoxItem* item );
+ void slotPreset( int i );
+ void slotAddPreset();
+ void slotRemovePreset();
+ void slotStarColorMode( int );
+ void slotStarColorIntensity( int );
+
+private:
+ bool setColors( QString filename );
+
+ KStars *ksw;
+
+ QStringList PresetFileList;
+};
+
+#endif //OPSCOLORS_H
+