My Project
D:/source/c++/Programme/sally/sally/sallyAPI/Edit.h
Go to the documentation of this file.
00001 
00002 
00003 
00004 
00005 
00006 
00007 
00008 
00009 
00010 
00011 
00012 
00013 
00014 
00015 
00016 
00017 
00018 
00019 
00020 
00021 
00022 
00023 
00024 
00025 
00026 
00027 
00028 #pragma once
00029 #include "Define.h"
00030 #include "Control.h"
00031 
00032 namespace SallyAPI
00033 {
00034         namespace GUI
00035         {
00041 
00042                 enum EditCharacterInputType {EDIT_CHARACTER_INPUT_TYPE_NONE, EDIT_CHARACTER_INPUT_TYPE_LOWER, EDIT_CHARACTER_INPUT_TYPE_UPPER};
00043 
00052 
00053                 class DLL_API_SALLY CEdit 
00054                         : public SallyAPI::GUI::CControl
00055                 {
00056                 protected:
00057                         int                     m_iImage;
00058                         int                     m_iImageSize;
00059                         bool            m_bImageLeft;
00060                         bool            m_bNumberOnly;
00061                         bool            m_bPassword;
00062                         bool            m_bKeyboardInputEnabled;
00063                         int                     m_iMaxCharacterInputLength;
00064                         bool            m_bEnableKeyboardBrainHistory;
00065                         bool            m_bEnableKeyboardBrainWordList;
00066                         bool            m_bEnableKeyboardWordRequest;
00067                         EditCharacterInputType  m_eCharacterInputType;
00068                         std::string     m_strInfoText;
00069 
00070                         virtual void    RenderControl();
00071                         virtual bool    ProcessMouseUp(int x, int y);
00072                 public:
00073                         CEdit(SallyAPI::GUI::CGUIBaseObject* parent, int x, int y, int width, int controlId = 0);
00074                         virtual ~CEdit();
00075 
00076                         virtual void    SetText(const std::string& text);
00077 
00078                         void            SetInfoText(const std::string& text);
00079                         std::string     GetInfoText();
00080 
00081                         void    SetImageLeft();
00082                         void    SetImageRight();
00083                         void    SetImageId(int image);
00084                         void    SetNumberOnly(bool value);
00085                         bool    GetNumberOnly();
00086                         void    SetPassword(bool value);
00087                         bool    GetPassword();
00088                         void    SetEnableKeyboardBrainHistory(bool value);
00089                         bool    GetEnableKeyboardBrainHistory();
00090                         void    SetEnableKeyboardBrainWordList(bool value);
00091                         bool    GetEnableKeyboardBrainWordList();
00092                         void    SetEnableKeyboardWordRequest(bool value);
00093                         bool    GetEnableKeyboardWordRequest();
00094                         void    SetKeyboardInputEnabled(bool value);
00095                         bool    GetKeyboardInputEnabled();
00096                         void    SetMaxCharacterInputLength(int value);
00097                         int             GetMaxCharacterInputLength();
00098                         void    SetCharacterInputType(EditCharacterInputType value);
00099                         EditCharacterInputType  GetCharacterInputType();
00100                 };
00101         }
00102 }
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Defines