COIN-OR::LEMON - Graph Library

source: glemon-0.x/file_chooser_extra_widget.cc @ 173:8339178ae43d

Last change on this file since 173:8339178ae43d was 173:8339178ae43d, checked in by Akos Ladanyi, 18 years ago

Added two new classes.

File size: 1.2 KB
Line 
1#include "file_chooser_extra_widget.h"
2#include "mapstorage.h"
3
4FileChooserExtraWidget::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
38void FileChooserExtraWidget::onRbToggled()
39{
40  std::cout << "onRbToggled()" << std::endl;
41}
42
43FileChooserExtraWidget::~FileChooserExtraWidget()
44{
45  std::cout << "~FileChooserExtraWidget()" << std::endl;
46}
Note: See TracBrowser for help on using the repository browser.