Object name edit form with label and edit field. More...
#include <rvc/uieditdescriptor.h>

Public Types | |
| enum | FLAGS { FLAG_Default = 0x0000, FLAG_NoModifyName = 0x0008, FLAG_IsFileDescriptor = 0x0010 } |
Public Member Functions | |
| FORM_EDIT_DESCRIPTOR () | |
| virtual | ~FORM_EDIT_DESCRIPTOR () |
| void | Create (MGUI::LAYOUT_PANE_BASE &ParentPane, FLAGS flags=FLAG_Default, MGUI::LAYOUT_SIZEALIGN sizealign=MGUI::LAYOUT_SIZEALIGN_Expand, MGUI::CTRL_EDIT_TEXT::FLAGS textflags=MGUI::CTRL_EDIT_TEXT::FLAG_Default, int DescriptionHeight=5) |
| const RVC::DESCRIPTOR & | GetValue () |
| void | SetDelegateOnAnyChange (DELEGATE_VOID_NOPARMS delegate) |
| void | SetDelegateOnNameChange (FastDelegate< void(const MISTRING &)> delegate) |
| void | SetDelegateOnTestUniqueShortName (FastDelegate< int(const RVC::OBJECTNAME &)> delegate) |
| void | SetDelegateOnValidateShortName (FastDelegate< bool(RVC::OBJECTNAME &)> delegate) |
| void | SetFocusToName () |
| void | SetParentDirectory (const FILEPATH *pParentDirectory) |
| void | SetValue (const RVC::DESCRIPTOR &Descriptor, bool notify=true) |
Object name edit form with label and edit field.
| RVC::UI::FORM_EDIT_DESCRIPTOR::FORM_EDIT_DESCRIPTOR | ( | ) |
Constructor.
| virtual RVC::UI::FORM_EDIT_DESCRIPTOR::~FORM_EDIT_DESCRIPTOR | ( | ) | [virtual] |
Destructor.
| void RVC::UI::FORM_EDIT_DESCRIPTOR::Create | ( | MGUI::LAYOUT_PANE_BASE & | ParentPane, | |
| FLAGS | flags = FLAG_Default, |
|||
| MGUI::LAYOUT_SIZEALIGN | sizealign = MGUI::LAYOUT_SIZEALIGN_Expand, |
|||
| MGUI::CTRL_EDIT_TEXT::FLAGS | textflags = MGUI::CTRL_EDIT_TEXT::FLAG_Default, |
|||
| int | DescriptionHeight = 5 | |||
| ) |
Create form with label from resource lookup.
| ParentPane | Parent pane |
| const RVC::DESCRIPTOR& RVC::UI::FORM_EDIT_DESCRIPTOR::GetValue | ( | ) |
Get current descriptor value.
Equivalent to GetEditCtrl().GetValue().
| void RVC::UI::FORM_EDIT_DESCRIPTOR::SetDelegateOnAnyChange | ( | DELEGATE_VOID_NOPARMS | delegate | ) | [inline] |
Set delegate to call to get notified on any descriptor changes.
| void RVC::UI::FORM_EDIT_DESCRIPTOR::SetDelegateOnNameChange | ( | FastDelegate< void(const MISTRING &)> | delegate | ) | [inline] |
Set delegate to call to get notified on name changes.
| void RVC::UI::FORM_EDIT_DESCRIPTOR::SetDelegateOnTestUniqueShortName | ( | FastDelegate< int(const RVC::OBJECTNAME &)> | delegate | ) | [inline] |
Set delegate to call to test if short name unique.
Delegate must return TRUE if name unique, FALSE if not, < 0 if error.
| void RVC::UI::FORM_EDIT_DESCRIPTOR::SetDelegateOnValidateShortName | ( | FastDelegate< bool(RVC::OBJECTNAME &)> | delegate | ) | [inline] |
Set delegate to call to validate short name.
| void RVC::UI::FORM_EDIT_DESCRIPTOR::SetFocusToName | ( | ) | [inline] |
| void RVC::UI::FORM_EDIT_DESCRIPTOR::SetParentDirectory | ( | const FILEPATH * | pParentDirectory | ) | [inline] |
| void RVC::UI::FORM_EDIT_DESCRIPTOR::SetValue | ( | const RVC::DESCRIPTOR & | Descriptor, | |
| bool | notify = true | |||
| ) |
No comparison is made with the current string value.
Equivalent to GetEditCtrl().SetValue(...).
| Descriptor | New string to set | |
| notify | Call OnChangeValue() if string actually updated |
1.6.1