Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members

kdepreferencesdialog.h

Go to the documentation of this file.
00001 /***************************************************************************
00002                           kdepreferencesdialog.h  -  description
00003                              -------------------
00004     begin                : Sun Jul 21 2002
00005     copyright            : (C) 2002 by chris
00006     email                : chris@tux.teyssier.org
00007  ***************************************************************************/
00008 
00009 /***************************************************************************
00010  *                                                                         *
00011  *   This program is free software; you can redistribute it and/or modify  *
00012  *   it under the terms of the GNU General Public License as published by  *
00013  *   the Free Software Foundation; either version 2 of the License, or     *
00014  *   (at your option) any later version.                                   *
00015  *                                                                         *
00016  ***************************************************************************/
00017 
00018 #include <kdialogbase.h>
00019 
00020 #include "celestiacore.h"
00021 
00022 class QLabel;
00023 class QSpinBox;
00024 class QComboBox;
00025 class QCheckBox;
00026 class KKeyChooser;
00027 
00028 class KdeApp;
00029 
00030 class KdePreferencesDialog : public KDialogBase {
00031 Q_OBJECT
00032 
00033 public:
00034     KdePreferencesDialog( QWidget* parent, CelestiaCore* core );   
00035     ~KdePreferencesDialog();
00036 
00037 public slots:
00038     void slotOk();
00039     void slotApply();
00040     void slotCancel();
00041     void setNow();
00042     void ltSubstract();
00043     void slotTimeHasChanged();
00044     void slotAmbientLightLevel(int l);
00045     void slotFaintestVisible(int m);
00046     void slotRenderPath(int);
00047     void slotDistanceToScreen(int);
00048     void slotMinFeatureSize(int);
00049 
00050 protected:
00051     CelestiaCore* appCore;
00052     KdeApp* parent;
00053     
00054     KKeyChooser* keyChooser;
00055 
00056     int savedRendererFlags;
00057     int savedLabelMode;
00058     int savedOrbitMask;
00059     int savedAmbientLightLevel;
00060     int savedFaintestVisible;
00061     int savedHudDetail;
00062     int savedDisplayLocalTime;
00063     int savedRenderPath;
00064     int savedDistanceToScreen;
00065     uint32 savedLocationFilter;
00066     int savedMinFeatureSize;
00067 
00068     bool timeHasChanged;
00069 
00070     QComboBox* displayTimezoneCombo;
00071     QComboBox* setTimezoneCombo;
00072     QSpinBox *YSpin, *MSpin, *DSpin;
00073 
00074     QSpinBox *hSpin, *mSpin, *sSpin;
00075 
00076     QSpinBox *dtsSpin;
00077 
00078     QComboBox *renderPathCombo;
00079     QLabel* renderPathLabel;
00080     QLabel* ambientLabel, *faintestLabel, *minFeatureSizeLabel;
00081     
00082     void setTime(double d);
00083     double getTime() const;
00084 
00085     void setRenderPathLabel();
00086 };        
00087 

Generated on Sat Jan 14 22:30:31 2006 for Celestia by  doxygen 1.4.1