save_details_widget.h
changeset 1 67188bd752db
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/save_details_widget.h	Mon Jul 07 08:10:39 2008 -0500
     1.3 @@ -0,0 +1,87 @@
     1.4 +#ifndef SAVE_DETAILS_WIDGET
     1.5 +#define SAVE_DETAILS_WIDGET
     1.6 +
     1.7 +#include <gtkmm/entry.h>
     1.8 +#include <gtkmm/box.h>
     1.9 +#include <gtkmm/radiobutton.h>
    1.10 +#include <gtkmm/label.h>
    1.11 +#include <gtkmm/notebook.h>
    1.12 +#include <gtkmm/treemodel.h>
    1.13 +#include <gtkmm/liststore.h>
    1.14 +#include <gtkmm/treeview.h>
    1.15 +#include <gtkmm/scrolledwindow.h>
    1.16 +
    1.17 +class MapStorage;
    1.18 +
    1.19 +class SaveDetailsWidget : public Gtk::VBox
    1.20 +{
    1.21 +  public:
    1.22 +    struct MapModelColumns : public Gtk::TreeModel::ColumnRecord
    1.23 +    {
    1.24 +      MapModelColumns()
    1.25 +      {
    1.26 +        add(colName);
    1.27 +        add(colSaveToMainSect);
    1.28 +        add(colSaveToGuiSect);
    1.29 +      }
    1.30 +      Gtk::TreeModelColumn<Glib::ustring> colName;
    1.31 +      Gtk::TreeModelColumn<bool> colSaveToMainSect;
    1.32 +      Gtk::TreeModelColumn<bool> colSaveToGuiSect;
    1.33 +    };
    1.34 +  private:
    1.35 +    Gtk::RadioButton rbLgfFile;
    1.36 +    Gtk::RadioButton rbConfFile;
    1.37 +
    1.38 +    Gtk::TreeView twNodeMaps;
    1.39 +    Gtk::TreeView twArcMaps;
    1.40 +
    1.41 +    MapModelColumns NodeMapColumns;
    1.42 +    MapModelColumns ArcMapColumns;
    1.43 +
    1.44 +    Glib::RefPtr<Gtk::ListStore> refNodeMapStore;
    1.45 +    Glib::RefPtr<Gtk::ListStore> refArcMapStore;
    1.46 +
    1.47 +    Gtk::RadioButton rblueCoordGuiSection;
    1.48 +    Gtk::RadioButton rblueCoordNodesetSection;
    1.49 +    Gtk::RadioButton rblueCoordOneMap;
    1.50 +    Gtk::RadioButton rblueCoordTwoMaps;
    1.51 +    Gtk::Entry entNodeCoordsOneMap;
    1.52 +    Gtk::Entry entNodeCoordsTwoMaps1;
    1.53 +    Gtk::Entry entNodeCoordsTwoMaps2;
    1.54 +
    1.55 +    Gtk::RadioButton rbArrowCoordGuiSection;
    1.56 +    Gtk::RadioButton rbArrowCoordArcsetSection;
    1.57 +    Gtk::RadioButton rbArrowCoordOneMap;
    1.58 +    Gtk::RadioButton rbArrowCoordTwoMaps;
    1.59 +    Gtk::Entry entArrowCoordsOneMap;
    1.60 +    Gtk::Entry entArrowCoordsTwoMaps1;
    1.61 +    Gtk::Entry entArrowCoordsTwoMaps2;
    1.62 +
    1.63 +    MapStorage* pMapStorage;
    1.64 +
    1.65 +    void onGuiSectSaveDestChanged();
    1.66 +
    1.67 +    void onNodeCoordSaveDestChanged();
    1.68 +    void onNodeCoordMapNumChanged();
    1.69 +
    1.70 +    void onNodeCoordsOneMapName();
    1.71 +    void onNodeCoordsTwoMaps1Name();
    1.72 +    void onNodeCoordsTwoMaps2Name();
    1.73 +
    1.74 +    void onArrowCoordSaveDestChanged();
    1.75 +    void onArrowCoordMapNumChanged();
    1.76 +
    1.77 +    void onArrowCoordsOneMapName();
    1.78 +    void onArrowCoordsTwoMaps1Name();
    1.79 +    void onArrowCoordsTwoMaps2Name();
    1.80 +
    1.81 +    void onArcMapRowChanged(const Gtk::TreeModel::Path& path,
    1.82 +        const Gtk::TreeModel::iterator& iter);
    1.83 +    void onNodeMapRowChanged(const Gtk::TreeModel::Path& path,
    1.84 +        const Gtk::TreeModel::iterator& iter);
    1.85 +  public:
    1.86 +    SaveDetailsWidget(MapStorage* ms);
    1.87 +    ~SaveDetailsWidget();
    1.88 +};
    1.89 +
    1.90 +#endif