1 | #include "file_chooser_extra_widget.h" |
---|
2 | #include "mapstorage.h" |
---|
3 | |
---|
4 | FileChooserExtraWidget::FileChooserExtraWidget(MapStorage* ms) : |
---|
5 | Gtk::Expander("_Options", true), |
---|
6 | lblGUIData("Save GUI specific data to:"), |
---|
7 | rbGUISection("_GUI section", true), |
---|
8 | rbConfFile("s_eparate .conf file", true) |
---|
9 | { |
---|
10 | std::cout << "FileChooserExtraWidget()" << std::endl; |
---|
11 | |
---|
12 | Gtk::RadioButtonGroup group = rbGUISection.get_group(); |
---|
13 | rbConfFile.set_group(group); |
---|
14 | |
---|
15 | /* |
---|
16 | switch (pMapStorage->getGUIDataSaveLocation()) |
---|
17 | { |
---|
18 | case GUI_SECTION: |
---|
19 | break; |
---|
20 | case CONF_FILE: |
---|
21 | break; |
---|
22 | } |
---|
23 | */ |
---|
24 | |
---|
25 | add(box); |
---|
26 | box.pack_start(lblGUIData, Gtk::PACK_SHRINK); |
---|
27 | box.pack_start(rbGUISection, Gtk::PACK_SHRINK); |
---|
28 | box.pack_start(rbConfFile, Gtk::PACK_SHRINK); |
---|
29 | |
---|
30 | rbConfFile.signal_group_changed().connect( |
---|
31 | sigc::mem_fun(*this, &FileChooserExtraWidget::onRbToggled)); |
---|
32 | rbGUISection.signal_group_changed().connect( |
---|
33 | sigc::mem_fun(*this, &FileChooserExtraWidget::onRbToggled)); |
---|
34 | |
---|
35 | show_all_children(); |
---|
36 | } |
---|
37 | |
---|
38 | void FileChooserExtraWidget::onRbToggled() |
---|
39 | { |
---|
40 | std::cout << "onRbToggled()" << std::endl; |
---|
41 | } |
---|
42 | |
---|
43 | FileChooserExtraWidget::~FileChooserExtraWidget() |
---|
44 | { |
---|
45 | std::cout << "~FileChooserExtraWidget()" << std::endl; |
---|
46 | } |
---|