|
Yate
|
An abstract user interface window. More...
#include <yatecbase.h>
Static Public Member Functions | |
| static bool | isValidParamPrefix (const String &prefix) |
Static Public Member Functions inherited from GenObject | |
| static void * | getObject (const String &name, const GenObject *obj) |
| static bool | getObjCounting () |
| static void | setObjCounting (bool enable) |
| static NamedCounter * | getObjCounter (const String &name, bool create=true) |
| static ObjList & | getObjCounters () |
Protected Member Functions | |
| virtual void | doPopulate ()=0 |
| virtual void | doInit ()=0 |
Protected Attributes | |
| String | m_id |
| String | m_title |
| String | m_context |
| bool | m_visible |
| bool | m_active |
| bool | m_master |
| bool | m_popup |
| bool | m_saveOnClose |
Friends | |
| class | Client |
An abstract user interface window.
A window is the basic user interface element. Everything inside is implementation specific functionality.
Constructor, creates a new windows with an ID
| id | String identifier of the new window |
|
inline |
Check if this window is the active one
|
virtual |
Append or insert text lines to a widget
| name | The name of the widget |
| lines | List containing the lines |
| max | The maximum number of lines allowed to be displayed. Set to 0 to ignore |
| atStart | True to insert, false to append |
|
pure virtual |
Add an item to an element that supports such an operation (list)
| name | Name of the element |
| item | Name of the item to add |
| atStart | True to insert item on the first position, false to append |
| text | Displayed text to associate with the item (not all lists support it) |
|
virtual |
Add a row to a table owned by this window
| name | Name of the element |
| item | Name of the item to add |
| data | Table's columns to set |
| atStart | True to insert, false to append |
Build a menu from a list of parameters. See Client::buildMenu() for more info
| params | Menu build parameters |
Check if this window can be closed
Clear (delete all rows) a table owned by this window
| name | Name of the element |
Destroy a modal dialog
| name | Dialog name |
Get the contextual information previously associated with this window
Set the contextual information previously associated with this window
| text | New contextual information |
|
pure virtual |
Create a modal dialog
| name | Dialog name (resource config section) |
| title | Dialog title |
| alias | Optional dialog alias (used as dialog object name) |
| params | Optional dialog parameters |
Remove an item from an element (list)
| name | Name of the element |
| item | Name of the item to remove |
Delete a row from a table owned by this window
| name | Name of the element |
| item | Name of the item to remove |
Get the checked state of a checkable control
| name | Name of the element |
| checked | The checked state of the control |
Get an element's items
| name | Name of the element to search for |
| items | List to fill with element's items |
Get a property from this window or from a widget owned by it
| name | Name of the element |
| item | Property's name |
| value | Property's value |
Retrieve an element's multiple selection
| name | Name of the element |
| items | List to be to filled with selection's contents |
Retrieve an element's selection
| name | Name of the element |
| item | String to fill with selection's contents |
Retrieve a row from a table owned by this window
| name | Name of the element |
| item | Name of the item to retrieve |
| data | List to fill with table's columns contents |
Get an element's text
| name | Name of the element |
| text | The destination string |
| richText | True to get the element's roch text if supported. |
Check if this window has an element by name
| name | Name of the element to search for |
Check if an element has an item by its name
| name | Name of the element to search for |
| item | Name of the item that should be searched |
Hide this window
Referenced by Window::visible().
Retrieve the standard name of this Window
|
inline |
Initialize the window if not already done
|
virtual |
Insert a row into a table owned by this window
| name | Name of the element |
| item | Name of the item to insert |
| before | Name of the item to insert before |
| data | Table's columns to set |
Check if a string is a parameter prefix handled by setParams(). Exact prefix match is not a valid one
| prefix | String to check |
|
inline |
Check if this window is a master (topmost) window
Move this window
| x | The x coordinate of the upper left corner |
| y | The y coordinate of the upper left corner |
Move this window related to its current position
| dx | The value to be added to the current x coordinate of the upper left corner |
| dy | The value to be added to the current y coordinate of the upper left corner |
|
inline |
Populate the window if not already done
|
inline |
Check if this window is a popup window
Checkes if this window is related to the given window
| wnd | The window to check for any relation |
Remove a menu (from UI and memory) See Client::removeMenu() for more info
| params | Menu remove parameters |
Set an element as interactive in the window
| name | Name of the element |
| active | True to make interactive, false to disallow interaction |
Show or hide control busy state
| name | Name of the element |
| on | True to show, false to hide |
Set the checked or toggled status of an element in the window
| name | Name of the element |
| checked | True to make element checked or toggled |
Set an element as receiving input in the window
| name | Name of the element |
| select | Also select the content of the focused element |
Set an element's image
| name | Name of the element |
| image | Image to set |
| fit | Fit image in element (defaults to false) |
|
virtual |
Append or update several table rows at once
| name | Name of the element |
| data | Parameters to initialize the rows with |
| prefix | Prefix to match (and remove) in parameter names |
Force this window on top of another one which becomes its parent
| parent | Window to force as parent of this one |
Set window parameters or widget contents
| params | List of parameters to set in the window and its widgets |
|
inlinevirtual |
Set a property for this window or for a widget owned by it
| name | Name of the element |
| item | Property's name |
| value | Property's value |
Set the selection of an item in an element in the window
| name | Name of the element |
| item | Name of the item that should be selected |
Set the visibility of an element in the window
| name | Name of the element |
| visible | True to make element visible, false to hide it |
|
virtual |
Update a row from a table owned by this window
| name | Name of the element |
| item | Name of the item to update |
| data | Data to update |
|
pure virtual |
Set the displayed text of an element in the window
| name | Name of the element |
| text | Text value to set in the element |
| richText | True if the text contains format data |
Flag an element as requiring immediate attention
| name | Name of the element |
| urgent | True if the element requires immediate attention |
Show this window
Referenced by Window::visible().
Resize this window
| width | The new width |
| height | The new width |
Retrieve the standard name of this Window, used to search in lists
Reimplemented from GenObject.
Referenced by ClientContact::isChatWnd().
|
virtual |
Set a table row or add a new one if not found
| name | Name of the element |
| item | Table item to set/add |
| data | Optional list of parameters used to set row data |
| atStart | True to add item at start, false to add them to the end |
|
virtual |
Add or set one or more table row(s). Screen update is locked while changing the table. Each data list element is a NamedPointer carrying a NamedList with item parameters. The name of an element is the item to update. Set element's value to boolean value 'true' to add a new item if not found or 'false' to set an existing one. Set it to empty string to delete the item
| name | Name of the table |
| data | The list of items to add/set/delete |
| atStart | True to add new items at start, false to add them to the end |
|
inline |
Get the visibility status of this window
Set the visibility status of this window
| yes | True if window should be visible |
References Window::hide(), and Window::show().