00001 #ifndef EDITABLE_PERCENT_H
00002 #define EDITABLE_PERCENT_H
00003
00004 #include "AbstractEditable.h"
00005 #include "Editable_Int.h"
00006 #include "Editor_Int.h"
00007
00009 class VEditable_Percent : public VEditable_Int
00010 {
00011 public:
00012 VEditable_Percent( ) { m_nValue = 0; }
00013 VEditable_Percent( int n ) { m_nValue = n; }
00014 VEditable_Percent( const VEditable_Percent& i ) { m_nValue = i.m_nValue; }
00015
00017 VAbstractEditor* CreateEditor()
00018 {
00019 VEditor_Int* pEditor = new VEditor_Int(&m_nValue);
00020 if (pEditor == NULL)
00021 return (VAbstractEditor*) VOUTOFMEMORYCONSTANT;
00022 pEditor->SetLabel(_T("%"));
00023 return pEditor;
00024 }
00025 };
00026
00027 #endif