00001 00017 #ifndef GUIMULTIENTRY_H 00018 #define GUIMULTIENTRY_H 00019 00020 #include <Midad/Gui/GuiBox.h> 00021 #include <map> 00022 #include <string> 00023 00024 class GuiTextEntry; 00025 00026 class GuiMultiEntry : public GuiBox 00027 { 00028 00029 public: 00030 00031 GuiMultiEntry(TGWindow& parent); 00032 virtual ~GuiMultiEntry(); 00033 00034 // Add an entry. Returns text entry 00035 GuiTextEntry& AddEntry(std::string label, std::string init_value=""); 00036 00037 typedef std::map<std::string, GuiTextEntry*> EntryMap_t; 00038 EntryMap_t GetEntries(); 00039 00040 typedef std::map<std::string, GuiBox*> BoxMap_t; 00041 BoxMap_t GetBoxes(); 00042 00043 private: 00044 00045 // copy constructor, assignment: 00046 GuiMultiEntry(const GuiMultiEntry& rhs); // copy constructor 00047 GuiMultiEntry& operator=(const GuiMultiEntry& rhs); // assignment 00048 00049 EntryMap_t fEntryMap; 00050 BoxMap_t fBoxMap; 00051 }; // end of class GuiMultiEntry 00052 00053 #endif // GUIMULTIENTRY_H
1.3.9.1