blob: 751c5246d0deecfba687a00112d50041f9793b21 (
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
68
69
70
|
/***************************************************************************
* Copyright (C) 2005 by David Saxton *
* [email protected] *
* *
* 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 SETTINGSDLG_H
#define SETTINGSDLG_H
#include <tdeconfigdialog.h>
#include <tqmap.h>
class AsmFormattingWidget;
class GeneralOptionsWidget;
class GpasmSettingsWidget;
class LogicWidget;
class PicProgrammerConfigWidget;
class PicProgrammerSettings;
class SDCCOptionsWidget;
/**
@author David Saxton
*/
class SettingsDlg : public TDEConfigDialog
{
TQ_OBJECT
public:
SettingsDlg( TQWidget *parent, const char *name, TDEConfigSkeleton *config );
~SettingsDlg();
static int refreshRateToSliderValue( int refreshRate );
static int sliderValueToRefreshRate( int sliderValue );
virtual void show();
public slots:
void slotUpdateRefreshRateLabel( int sliderValue );
void slotUpdatePicProgrammerDescription();
void slotAddProgrammerConfig();
void slotRemoveProgrammerConfig();
void slotSaveCurrentProgrammerConfig();
protected slots:
void slotUpdateSettings();
void slotUpdateWidgets();
protected:
virtual void updateSettings();
virtual void updateWidgets();
virtual void updateWidgetsDefault();
virtual bool hasChanged();
virtual bool isDefault();
PicProgrammerSettings * m_pPicProgrammerSettings;
GeneralOptionsWidget * m_generalOptionsWidget;
GpasmSettingsWidget * m_gpasmSettingsWidget;
SDCCOptionsWidget * m_sdccOptionsWidget;
AsmFormattingWidget * m_asmFormattingWidget;
LogicWidget * m_logicWidget;
PicProgrammerConfigWidget * m_picProgrammerConfigWidget;
};
#endif
|