File: SettingsDialog.cpp

package info (click to toggle)
wxastrocapture 1.8.1%2Bgit20140821.796e1a1%2Bdfsg-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, forky, sid, trixie
  • size: 42,212 kB
  • sloc: cpp: 43,421; sh: 733; perl: 246; makefile: 14
file content (47 lines) | stat: -rw-r--r-- 1,741 bytes parent folder | download | duplicates (4)
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
#include "SettingsDialog.h"

#include "SettingsVideoCapture.h"
#include "SettingsControlPort.h"
// #include "SettingsGuidePort.h"  // CA 20080823 "Guide Port" tab removed from "OptionsSettings"
#include "SettingsNamePolicy.h"

#include "wx/bookctrl.h"

BEGIN_EVENT_TABLE(SettingsDialog,wxPropertyPageDialog)
   EVT_BOOKCTRL_PAGE_CHANGED(wxID_ANY, wxPropertyPageDialog::OnPageChanged)
END_EVENT_TABLE()

SettingsDialog::SettingsDialog(wxWindow* parent)
{

    Create(parent, wxID_ANY, _("Settings"), wxDefaultPosition, wxDefaultSize,
        wxDEFAULT_DIALOG_STYLE|wxPROPSHEET_SHRINKTOFIT |wxRESIZE_BORDER
    );

    SettingsVideoCapture* vc = new SettingsVideoCapture(GetBookCtrl());
    SettingsControlPort*  cp = new SettingsControlPort(GetBookCtrl());
  //  SettingsGuidePort*    gp = new SettingsGuidePort(GetBookCtrl());   // CA 20080823 "Guide Port" tab removed from "OptionsSettings"
    SettingsNamePolicy*   cnp = new SettingsNamePolicyContainer(GetBookCtrl());
    SettingsNamePolicy*   fnp = new SettingsNamePolicyFile(GetBookCtrl());

    m_pages.push_back(vc);
    m_pages.push_back(cnp);
    m_pages.push_back(fnp);
    m_pages.push_back(cp);
//     m_pages.push_back(gp);  // CA 20080823 "Guide Port" tab removed from "OptionsSettings"

    GetBookCtrl()->AddPage(vc, wxT("Video Capture"));
    GetBookCtrl()->AddPage(cnp, wxT("Container Name"));
    GetBookCtrl()->AddPage(fnp, wxT("File Name"));
    GetBookCtrl()->AddPage(cp, wxT("LE Control Port"));
 //   GetBookCtrl()->AddPage(gp, wxT("Guide Port"));  // CA 20080823 "Guide Port" tab removed from "OptionsSettings"
    CreateButtons(wxOK|wxCANCEL);

    LayoutDialog();
}

SettingsDialog::~SettingsDialog()
{
   //dtor
}