00001 00015 #ifndef INC_MGUI_DLGSELECTUNITS_H 00016 #define INC_MGUI_DLGSELECTUNITS_H 00017 00018 #ifndef INC_MGUI_DLGSELECTLIST_H 00019 #include <mgui/dlgselectlist.h> 00020 #endif 00021 00022 #ifndef INC_MI32_UOM_H 00023 #include <mi32/uom.h> 00024 #endif 00025 00026 namespace MGUI { 00027 //===================================================================================================================== 00028 00030 class DLG_SELECT_UNITS : public DLG_SELECT_LIST { 00031 public: 00032 00033 DLG_SELECT_UNITS ( 00034 UOM::MEASURE::TYPE MeasureType, 00035 const MISTRING& dlgtitle, 00036 const MISTRING& prompt 00037 ); 00038 00039 virtual ~DLG_SELECT_UNITS (); 00040 00042 int GetUnitNum ( 00043 ) { return (GetSelectedItemID()); } 00044 00046 void SetDefaultUnitNum ( 00047 int UnitNum 00048 ) { SetDefaultItemID(static_cast<MGUI::ID>(UnitNum)); } 00049 }; 00050 00051 //===================================================================================================================== 00052 } // End namespace MGUI 00053 00054 #endif // INC_MGUI_DLGSELECTUNITS_H
1.6.1