Upgrade gettext infrastructure.
1 #ifndef SAVE_DETAILS_WIDGET
2 #define SAVE_DETAILS_WIDGET
4 #include <gtkmm/entry.h>
6 #include <gtkmm/radiobutton.h>
7 #include <gtkmm/label.h>
8 #include <gtkmm/notebook.h>
9 #include <gtkmm/treemodel.h>
10 #include <gtkmm/liststore.h>
11 #include <gtkmm/treeview.h>
12 #include <gtkmm/scrolledwindow.h>
16 class SaveDetailsWidget : public Gtk::VBox
19 struct MapModelColumns : public Gtk::TreeModel::ColumnRecord
24 add(colSaveToMainSect);
25 add(colSaveToGuiSect);
27 Gtk::TreeModelColumn<Glib::ustring> colName;
28 Gtk::TreeModelColumn<bool> colSaveToMainSect;
29 Gtk::TreeModelColumn<bool> colSaveToGuiSect;
32 Gtk::RadioButton rbLgfFile;
33 Gtk::RadioButton rbConfFile;
35 Gtk::TreeView twNodeMaps;
36 Gtk::TreeView twArcMaps;
38 MapModelColumns NodeMapColumns;
39 MapModelColumns ArcMapColumns;
41 Glib::RefPtr<Gtk::ListStore> refNodeMapStore;
42 Glib::RefPtr<Gtk::ListStore> refArcMapStore;
44 Gtk::RadioButton rblueCoordGuiSection;
45 Gtk::RadioButton rblueCoordNodesetSection;
46 Gtk::RadioButton rblueCoordOneMap;
47 Gtk::RadioButton rblueCoordTwoMaps;
48 Gtk::Entry entNodeCoordsOneMap;
49 Gtk::Entry entNodeCoordsTwoMaps1;
50 Gtk::Entry entNodeCoordsTwoMaps2;
52 Gtk::RadioButton rbArrowCoordGuiSection;
53 Gtk::RadioButton rbArrowCoordArcsetSection;
54 Gtk::RadioButton rbArrowCoordOneMap;
55 Gtk::RadioButton rbArrowCoordTwoMaps;
56 Gtk::Entry entArrowCoordsOneMap;
57 Gtk::Entry entArrowCoordsTwoMaps1;
58 Gtk::Entry entArrowCoordsTwoMaps2;
60 MapStorage* pMapStorage;
62 void onGuiSectSaveDestChanged();
64 void onNodeCoordSaveDestChanged();
65 void onNodeCoordMapNumChanged();
67 void onNodeCoordsOneMapName();
68 void onNodeCoordsTwoMaps1Name();
69 void onNodeCoordsTwoMaps2Name();
71 void onArrowCoordSaveDestChanged();
72 void onArrowCoordMapNumChanged();
74 void onArrowCoordsOneMapName();
75 void onArrowCoordsTwoMaps1Name();
76 void onArrowCoordsTwoMaps2Name();
78 void onArcMapRowChanged(const Gtk::TreeModel::Path& path,
79 const Gtk::TreeModel::iterator& iter);
80 void onNodeMapRowChanged(const Gtk::TreeModel::Path& path,
81 const Gtk::TreeModel::iterator& iter);
83 SaveDetailsWidget(MapStorage* ms);