Blame view

GUI/SW2/SRC/src/main/DlgPrefs.hpp 4.72 KB
886c558b   Steve Greedy   SACAMOS Public Re...
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
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
//**************************************************************************************************
//                                          DlgPrefs.hpp                                           *
//                                         --------------                                          *
// Description : This dialogue is used to enter applications preferences.                          *
// Started     : 2006-10-17                                                                        *
// Last Update : 2016-11-09                                                                        *
// Copyright   : (C) 2006-2016 MSWaters                                                            *
//**************************************************************************************************

//**************************************************************************************************
//                                                                                                 *
//      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 3 of the License, or (at your option) any later version.                    *
//                                                                                                 *
//**************************************************************************************************

#ifndef DLGPREFS_HPP
#define DLGPREFS_HPP

// Application Includes

#include "TypeDefs.hpp"
#include "Config.hpp"
#include "CmdLinePcr.hpp"
#include "utility/PnlValue.hpp"
#include "utility/TextCtrl.hpp"
#include "utility/PnlLblCho.hpp"
#include "utility/PnlLblTxt.hpp"
#include "utility/PnlTxtSpn.hpp"
#include "process/PrcGNetList.hpp"

// wxWidgets Includes

#include <wx/config.h>

//**************************************************************************************************

class DlgPrefs : public wxDialog
{
  private :

    // Display controls
//    PnlLblCho   m_oChoSchemEdit;
    PnlLblCho   m_oChoDataViewer;
    PnlLblCho   m_oChoTmpFileMgt;
    PnlLblCho   m_oChoFrmLayout;
    PnlLblCho   m_oChoPhaseUnits;
    PnlLblCho   m_oChoPrecision;
    PnlLblCho   m_oChoGuileProc;
    PnlValue    m_oPnlNbkMaxLns;
    PnlValue    m_oPnlSpnPeriod;
    PnlValue    m_oPnlToolTipDly;
    wxCheckBox  m_oCbxToolTips;
    wxCheckBox  m_oCbxSyncSwpSrcs;
    wxCheckBox  m_oCbxSyncTemps;
    wxCheckBox  m_oCbxKeepNetLst;
    wxCheckBox  m_oCbxVerboseMode;
    wxCheckBox  m_oCbxIncludeMode;
    wxCheckBox  m_oCbxEmbedMode;
    wxCheckBox  m_oCbxNoMungeMode;
//  wxCheckBox  m_oCbxSubcktCpnts;  // ??? MSW 2015-04-18 Include sub-circuit components in Components list
//  PnlLblTxt   m_oTxtBinGschem;    // ??? MSW 2014-03-11 Allow binary names to be specified
//  PnlLblTxt   m_oTxtBinGnetlst;
//  PnlLblTxt   m_oTxtBinNgspice;
//  PnlLblTxt   m_oTxtBinGnucap;
//  PnlLblTxt   m_oTxtBinGaw;
//  PnlLblTxt   m_oTxtBinGwave;
//  PnlLblTxt   m_oTxtBinCalc;
//  PnlLblTxt   m_oTxtDocNgSpice;
//  PnlLblTxt   m_oTxtDocGnuCap;

    // Button controls
    wxButton    m_oBtnOk;
    wxButton    m_oBtnCancel;

    // Object initialization functions
    void  Initialize( void );
    void  Create    ( void );
    void  ToolTips  ( void );
    void  DoLayout  ( void );

    void  Load( void );
    void  Save( void );

  public :

          DlgPrefs( wxWindow * poWin );
         ~DlgPrefs( );

    bool  bClear( void );

  private :

    // Event handlers
    void  OnBtnOk    ( wxCommandEvent & roEvtCmd );
    void  OnBtnCancel( wxCommandEvent & roEvtCmd );

    friend  class  FrmMain;

    // In order to be able to react to a menu command, it must be given a unique identifier such as
    // a const or an enum.
    enum eDlgItemID
    {
      ID_CHO_SIMENG,
      ID_CHO_SCHEMEDIT,
      ID_CHO_DATAVIEWER,
      ID_CHO_TMPFILEMGT,
      ID_CHO_FRMLAYOUT,
      ID_CHO_PHASEUNITS,
      ID_CHO_PRECISION,
      ID_CHO_GUILEPROC,

      ID_VAL_NBKMAXLNS,
      ID_VAL_SPINPERIOD,
      ID_VAL_TOOLTIPDLY,

      ID_CBX_TOOLTIPS,
      ID_CBX_SYNCSWPSRCS,
      ID_CBX_SYNCTEMPS,
      ID_CBX_KEEPNETLST,
      ID_CBX_VERBOSEMODE,
      ID_CBX_INCLUDEMODE,
      ID_CBX_EMBEDMODE,
      ID_CBX_NOMUNGEMODE,

      ID_TXT_GSCHEM,
      ID_TXT_GNETLST,
      ID_TXT_NGSPICE,
      ID_TXT_GNUCAP,
      ID_TXT_GAW,
      ID_TXT_GWAVE,
      ID_TXT_CALC,

      ID_BTN_OK,
      ID_BTN_CANCEL,

      ID_UNUSED,      // Assigned to controls for which events are not used
    };

    // Leave this as the last line as private access is envoked by macro
    wxDECLARE_EVENT_TABLE( );
};

//**************************************************************************************************

#endif // DLGPREFS_HPP