blob: bca94c4f71473bbd42127d0e450848834f925f24 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
|
/***************************************************************************
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 <tqstringlist.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 TQWidget;
class KStars;
class OpsColors : public OpsColorsUI
{
Q_OBJECT
TQ_OBJECT
public:
OpsColors( TQWidget *parent=0, const char *name=0, WFlags fl = 0 );
~OpsColors();
private slots:
void newColor( TQListBoxItem* item );
void slotPreset( int i );
void slotAddPreset();
void slotRemovePreset();
void slotStarColorMode( int );
void slotStarColorIntensity( int );
private:
bool setColors( TQString filename );
KStars *ksw;
TQStringList PresetFileList;
};
#endif //OPSCOLORS_H
|