Inheritance diagram for os::TabView:

Public Member Functions | |
| TabView (const Rect &cFrame, const String &cTitle, uint32 nResizeMask=CF_FOLLOW_LEFT|CF_FOLLOW_TOP, uint32 nFlags=WID_WILL_DRAW|WID_FULL_UPDATE_ON_RESIZE) | |
| Contruct the TabView. | |
| ~TabView () | |
| int | AppendTab (const String &cTitle, View *pcView=NULL) |
| Add a tab at the end of the list. | |
| int | InsertTab (uint nIndex, const String &cTitle, View *pcView=NULL) |
| Insert tabs at a given position. | |
| int | AppendTab (TabViewTab *pcTab, View *pcView=NULL) |
| int | InsertTab (uint nIndex, TabViewTab *pcTab, View *pcView=NULL) |
| View * | DeleteTab (uint nIndex) |
| Delete a given tab. | |
| View * | GetTabView (uint nIndex) const |
| Get the View associated with a given tab. | |
| int | GetTabCount () const |
| Get number of tabs currently added to the view. | |
| int | SetTabTitle (uint nIndex, const String &cTitle) |
| const String & | GetTabTitle (uint nIndex) const |
| Get the title of a given tab. | |
| uint | GetSelection () const |
| Get the current selection. | |
| void | SetSelection (uint nIndex, bool bNotify=true) |
| Select a tab, and optionally notify the target. | |
| virtual void | FrameSized (const Point &cDelta) |
| Virtual hook called by the system when the view is resized. | |
| virtual void | MouseMove (const Point &cNewPos, int nCode, uint32 nButtons, Message *pcData) |
| Hook called by the system when the mouse is moved. | |
| virtual void | MouseDown (const Point &cPosition, uint32 nButtons) |
| Hook called by the system when a mouse button is pressed. | |
| virtual void | MouseUp (const Point &cPosition, uint32 nButtons, Message *pcData) |
| Hook called by the system when a mouse button is release. | |
| 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 Point | GetPreferredSize (bool bLargest) const |
| |
| virtual void | Paint (const Rect &cUpdateRect) |
| Called by the system update "damaged" areas of the view. | |
| virtual void | AllAttached () |
| |
Friends | |
| class | TabView::TopView |
Classes | |
| class | Private |
| class | TopView |
| TabView::TabView | ( | const Rect & | cFrame, | |
| const String & | cName, | |||
| uint32 | nResizeMask = CF_FOLLOW_LEFT | CF_FOLLOW_TOP, |
|||
| uint32 | nFlags = WID_WILL_DRAW | WID_FULL_UPDATE_ON_RESIZE | |||
| ) |
| \return |
| TabView::~TabView | ( | ) |
When a view is associated with a tab, the view will be resized to fit the interiour of the TabView.
| pcTitle | - The string that should appear inside the tab. | |
| pcView | - The View to be accosiated with the tab, or NULL. |
| nIndex | - The zero based position where the tab is inserted. | |
| pcTitle | - The string that should appear inside the tab. | |
| pcView | - The View to be accosiated with the tab, or NULL. |
| int TabView::AppendTab | ( | TabViewTab * | pcTab, | |
| View * | pcView = NULL | |||
| ) |
| int TabView::InsertTab | ( | uint | nIndex, | |
| TabViewTab * | pcTab, | |||
| View * | pcView = NULL | |||
| ) |
| View * TabView::DeleteTab | ( | uint | nIndex | ) |
| nIndex | - The zero based index of the tab to delete. |
| View * TabView::GetTabView | ( | uint | nIndex | ) | const |
| nIndex | - The zero based index of the tab. |
| int TabView::GetTabCount | ( | ) | const |
| int TabView::SetTabTitle | ( | uint | nIndex, | |
| const String & | cTitle | |||
| ) |
| const String & TabView::GetTabTitle | ( | uint | nIndex | ) | const |
| nIndex | - The zero based index of the tab. |
| uint TabView::GetSelection | ( | ) | const |
| void TabView::SetSelection | ( | uint | nIndex, | |
| bool | bNotify = true | |||
| ) |
| nIndex | - The zero based index of the tab to select. | |
| bNotify | - Set to true if Invoker::Invoke() should be called. |
| void TabView::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 TabView::MouseMove | ( | const Point & | cNewPos, | |
| int | nCode, | |||
| uint32 | nButtons, | |||
| Message * | pcData | |||
| ) | [virtual] |
| cNewPos | New mouse position given in the views coordinate system. | |
| nCode | Enter/exit code. This is MOUSE_ENTERED when the mouse first enter the view, MOUSE_EXITED when the mouse leaves the view, MOUSE_INSIDE whenever the mouse move withing the boundary of the view and MOUSE_OUTSIDE when the mouse move outside the view (will only happen if the view has focus). | |
| nButtons | Bitmask telling which buttons that are currently pressed. Bit 0 is button 1 (left), bit 1 is button 2 (right), and bit 2 is button 3 (middle), and so on. | |
| pcData | Pointer to a Message object containing the dragged data if the user is in the middle of a drag and drop operation. Otherwise this pointer is NULL. Look at BeginDrag() for a more detailed description of the drag and drop system. |
Reimplemented from os::View.
| void TabView::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.
pcData member will point to a Message containing the dragged data. Look at BeginDrag() for a more detailed description of the drag and drop system. | 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. | |
| pcData | Pointer to a Message object containing the dragged data if this mouse-up was the end of a drag and drop operation. If no data was dragged it will be NULL. |
Reimplemented from os::View.
| void TabView::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.
| Point TabView::GetPreferredSize | ( | bool | bLargest | ) | const [virtual] |
Reimplemented from os::View.
| void TabView::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 TabView::AllAttached | ( | void | ) | [virtual] |
Reimplemented from os::View.
friend class TabView::TopView [friend] |
1.5.1