settingsdlg.h

00001 /***************************************************************************
00002  *   Copyright (C) 2005 by David Saxton                                    *
00003  *   david@bluehaze.org                                                    *
00004  *                                                                         *
00005  *   This program is free software; you can redistribute it and/or modify  *
00006  *   it under the terms of the GNU General Public License as published by  *
00007  *   the Free Software Foundation; either version 2 of the License, or     *
00008  *   (at your option) any later version.                                   *
00009  ***************************************************************************/
00010 
00011 #ifndef SETTINGSDLG_H
00012 #define SETTINGSDLG_H
00013 
00014 #include <kconfigdialog.h>
00015 #include <qmap.h>
00016 
00017 class AsmFormattingWidget;
00018 class GeneralOptionsWidget;
00019 class GpasmSettingsWidget;
00020 class LogicWidget;
00021 class PicProgrammerConfigWidget;
00022 class PicProgrammerSettings;
00023 class SDCCOptionsWidget;
00024 
00025 
00029 class SettingsDlg : public KConfigDialog
00030 {
00031         Q_OBJECT
00032         public:
00033                 SettingsDlg( QWidget *parent, const char *name, KConfigSkeleton *config );
00034                 ~SettingsDlg();
00035         
00036                 static int refreshRateToSliderValue( int refreshRate );
00037                 static int sliderValueToRefreshRate( int sliderValue );
00038                 
00039                 virtual void show();
00040 
00041         public slots:
00042                 void slotUpdateRefreshRateLabel( int sliderValue );
00043                 void slotUpdatePicProgrammerDescription();
00044                 void slotAddProgrammerConfig();
00045                 void slotRemoveProgrammerConfig();
00046                 void slotSaveCurrentProgrammerConfig();
00047                 
00048         protected slots:
00049                 void slotUpdateSettings();
00050                 void slotUpdateWidgets();
00051         
00052         protected:
00053                 virtual void updateSettings();
00054                 virtual void updateWidgets();
00055                 virtual void updateWidgetsDefault();
00056                 virtual bool hasChanged();
00057                 virtual bool isDefault();
00058         
00059                 PicProgrammerSettings * m_pPicProgrammerSettings;
00060                 
00061                 GeneralOptionsWidget * m_generalOptionsWidget;
00062                 GpasmSettingsWidget * m_gpasmSettingsWidget;
00063                 SDCCOptionsWidget * m_sdccOptionsWidget;
00064                 AsmFormattingWidget * m_asmFormattingWidget;
00065                 LogicWidget * m_logicWidget;
00066                 PicProgrammerConfigWidget * m_picProgrammerConfigWidget;
00067 };
00068 
00069 #endif

Generated on Tue May 8 17:05:32 2007 for KTechLab by  doxygen 1.5.1