Inheritance diagram for os::DropdownMenu:

Public Member Functions | |
| DropdownMenu (const Rect &cFrame, const String &cName, uint32 nResizeMask=CF_FOLLOW_LEFT|CF_FOLLOW_TOP, uint32 nFlags=WID_WILL_DRAW|WID_FULL_UPDATE_ON_RESIZE) | |
| DropdownMenu constructor. | |
| ~DropdownMenu () | |
| void | SetEnable (bool bEnable=true) |
| bool | IsEnabled () const |
| void | SetReadOnly (bool bFlag=true) |
| Change the "read-only" status. | |
| bool | GetReadOnly () const |
| Returns the read-only status. | |
| void | AppendItem (const String &cString) |
| Add a item to the end of the drop down list. | |
| void | InsertItem (int nPosition, const String &cString) |
| Insert and item at a given position. | |
| bool | DeleteItem (int nPosition) |
| Delete a item. | |
| int | GetItemCount () const |
| Get the item count. | |
| void | Clear () |
| Delete all items. | |
| const String & | GetItem (int nItem) const |
| Get one of the item strings. | |
| int | GetSelection () const |
| Get the current selection. | |
| void | SetSelection (int nItem, bool bNotify=true) |
| Set current selection. | |
| const String & | GetCurrentString () const |
| void | SetCurrentString (const String &cString) |
| void | SetMinPreferredSize (int nWidthChars) |
| int | GetMinPreferredSize () const |
| void | SetMaxPreferredSize (int nWidthChars) |
| int | GetMaxPreferredSize () const |
| void | SetSelectionMessage (Message *pcMsg) |
| Set the message that will be sendt when the selection changes. | |
| Message * | GetSelectionMessage () const |
| Get a pointer to the current "SelectionChanged" message. | |
| void | SetSendIntermediateMsg (bool bFlag) |
| bool | GetSendIntermediateMsg () const |
| void | SetEditMessage (Message *pcMsg) |
| Set the message sendt when the user changes the content of the edit box. | |
| Message * | GetEditMessage () const |
| Get a pointer to the current "SelectionChanged" message. | |
| virtual void | HandleMessage (Message *pcMessage) |
| Handle events from sub components. | |
| virtual void | Paint (const Rect &cUpdateRect) |
| Called by the system update "damaged" areas of the view. | |
| virtual Point | GetPreferredSize (bool bLargest) const |
| virtual void | FrameSized (const Point &cDelta) |
| Virtual hook called by the system when the view is resized. | |
| virtual void | MouseDown (const Point &cPosition, uint32 nButtons) |
| Hook called by the system when a mouse button is pressed. | |
| virtual void | KeyDown (const char *pzString, const char *pzRawString, uint32 nQualifiers) |
| Hook called by the system when a key is pressed while the view has focus. | |
| virtual void | AllAttached () |
| virtual void | Activated (bool bIsActive) |
| Hook called when the view gain or loose focus. | |
| virtual void | SetTabOrder (int nOrder=NEXT_TAB_ORDER) |
| Set the keyboard manouvering sorting order. | |
| virtual void | WheelMoved (const Point &cDelta) |
| Hook called by the system when the scroll-wheel is rotated. | |
Friends | |
| class | DropdownView |
| class | DropdownTextView |
Classes | |
| class | DropdownTextView |
| class | DropdownTextView |
| class | DropdownView |
| class | DropdownView |
| DropdownMenu::DropdownMenu | ( | const Rect & | cFrame, | |
| const String & | cName, | |||
| uint32 | nResizeMask = CF_FOLLOW_LEFT | CF_FOLLOW_TOP, |
|||
| uint32 | nFlags = WID_WILL_DRAW | WID_FULL_UPDATE_ON_RESIZE | |||
| ) |
| cFrame | - The size and position of the edit box and it's associated button. | |
| pzName | - The identifier passed down to the Handler class (Never rendered) | |
| nResizeMask | - Flags deskribing which edge follows edges of the parent when the parent is resized (Se View::View()) | |
| nFlags | - Various flags passed to the View::View() constructor. |
| DropdownMenu::~DropdownMenu | ( | ) |
| void DropdownMenu::SetEnable | ( | bool | bEnable = true |
) |
| bool DropdownMenu::IsEnabled | ( | ) | const |
| void DropdownMenu::SetReadOnly | ( | bool | bFlag = true |
) |
| bFlag | - Is true the menu will be read-only, if false it will be read/write. |
| bool DropdownMenu::GetReadOnly | ( | ) | const |
| void DropdownMenu::AppendItem | ( | const String & | cString | ) |
| cString | - The string to be appended |
| void DropdownMenu::InsertItem | ( | int | nPosition, | |
| const String & | cString | |||
| ) |
: The new item is inserted before the nPosition'th item.
| nPosition | - Zero based index of the item to insert the string in front of | |
| pzString | - The string to be insert |
| bool DropdownMenu::DeleteItem | ( | int | nPosition | ) |
| nPosition | - The zero based index of the item to delete. |
| int DropdownMenu::GetItemCount | ( | ) | const |
| void DropdownMenu::Clear | ( | ) |
| nPosition | - The zero based index of the item to delete. |
| const String & DropdownMenu::GetItem | ( | int | nItem | ) | const |
| nItem | - Zero based index of the item to return. |
| int DropdownMenu::GetSelection | ( | ) | const |
| void DropdownMenu::SetSelection | ( | int | nItem, | |
| bool | bNotify = true | |||
| ) |
| nItem | - The new selection | |
| bNotify | - If true a notification will be sendt if the new selection differ from the current. |
| const String & DropdownMenu::GetCurrentString | ( | ) | const |
| void DropdownMenu::SetCurrentString | ( | const String & | cString | ) |
| void DropdownMenu::SetMinPreferredSize | ( | int | nWidthChars | ) |
| int DropdownMenu::GetMinPreferredSize | ( | ) | const |
| void DropdownMenu::SetMaxPreferredSize | ( | int | nWidthChars | ) |
| int DropdownMenu::GetMaxPreferredSize | ( | ) | const |
| void DropdownMenu::SetSelectionMessage | ( | Message * | pcMsg | ) |
In addition to those fields comes the fields added by Invoker::Invoke().
If pcMsg is NULL no event will be triggered by changing the selection.
| pcMsg | - The message to be sendt when selection changes. |
| Message * DropdownMenu::GetSelectionMessage | ( | ) | const |
| void DropdownMenu::SetSendIntermediateMsg | ( | bool | bFlag | ) |
| bool DropdownMenu::GetSendIntermediateMsg | ( | ) | const |
| void DropdownMenu::SetEditMessage | ( | Message * | pcMsg | ) |
| pcMsg | - The message to be sendt when the edit box changes. |
| Message * DropdownMenu::GetEditMessage | ( | ) | const |
| void DropdownMenu::HandleMessage | ( | Message * | pcMessage | ) | [virtual] |
Reimplemented from os::Handler.
| void DropdownMenu::Paint | ( | const Rect & | cUpdateRect | ) | [virtual] |
| cUpdateRect | A rectangle enclosing all damaged areas. This is just a rough "worst-case", further fine-grained clipping will be performed by the Application Server to avoid updating non-damaged pixels and make the update as fast and flicker-free as possible. |
Reimplemented from os::View.
| void DropdownMenu::FrameSized | ( | const Point & | cDelta | ) | [virtual] |
cDelta calue from the current size. | cDelta | The distance the bottom/right corner was moved relative to the upper/left corner. |
Reimplemented from os::View.
| void DropdownMenu::MouseDown | ( | const Point & | cPosition, | |
| uint32 | nButtons | |||
| ) | [virtual] |
| cPosition | Mouse position in the views coordinate system at the time the mouse was pressed. | |
| nButtons | Index of the pressed button. Buttons start at 1 for the left button, 2 for the right button, 3 for the middle button. Additional buttons might be supported by the mouse driver and will then be assigned numbers from 4 and up. |
Reimplemented from os::View.
| void DropdownMenu::KeyDown | ( | const char * | pzString, | |
| const char * | pzRawString, | |||
| uint32 | nQualifiers | |||
| ) | [virtual] |
| pzString | String containing a single UTF-8 encoded character. This is the character generated by the pressed key according to the current keymap accounting for any qualifiers that might be pressed. | |
| pzRawString | Same as pzString except that the key is converted without accounting for qualifiers. Ie. if 'A' is pressed while pressing <SHIFT> pzString will contain 'A' and pzRawString will contain 'a'. | |
| nQualifiers | Bitmask describing which qualifiers that was active when the key was pressed. |
Reimplemented from os::View.
| void DropdownMenu::AllAttached | ( | ) | [virtual] |
Reimplemented from os::View.
| void DropdownMenu::Activated | ( | bool | bIsActive | ) | [virtual] |
| bIsActive | - true if the view gain and false if it loose focus. |
Reimplemented from os::View.
| void DropdownMenu::SetTabOrder | ( | int | nOrder = NEXT_TAB_ORDER |
) | [virtual] |
| nOrder | - The sorting order. |
Reimplemented from os::View.
| void DropdownMenu::WheelMoved | ( | const Point & | cDelta | ) | [virtual] |
| cDelta | Delta movement. Normally only the y value is used but it is possible for the mouse driver to also support horizontal scroll wheel functionality. The delta value is normally +/- 1.0 for each "click" on the wheel. |
Reimplemented from os::View.
friend class DropdownView [friend] |
friend class DropdownTextView [friend] |
1.5.1