Planeshift
|
Window that drives the main interface. More...
#include <pawscontrolwindow.h>
Classes | |
struct | WindowNames |
Public Member Functions | |
void | AddWindow (csString wndName, csString btnName) |
Creates a new WBName structure to hold window and button status. | |
bool | Contains (int x, int y) |
Determines if the coordinates are within this widget. | |
pawsButton * | FindButtonFromWindow (csString wndName) |
The find window and find button methods are used to match a button to it's related window. | |
pawsControlledWindow * | FindWindowFromButton (csString btnName) |
The find window and find button methods are used to match a button to it's related window. | |
Icon * | GetIcon (csString btnName) |
Matchs the button name to the icon that represents it on the display. | |
csString | getWindowInfo (csString widgetStr) |
Used to get the size and position of windows from a command. | |
csString | getWindowNames () |
Used to get all names and alternative names of windows from a command. | |
void | HandleQuit () |
When the quit button is pressed this method displays the yes/no dialog box to confirm that a user really wants to quit. | |
bool | HandleWindow (csString widgetStr) |
Used for generic controlled window behavior when a window's button is pressed. | |
bool | HandleWindowName (csString widgetStr) |
Used for generic controlled window behavior when a window's is called Displays a window that is hidden when asked for by a command. | |
void | Hide () |
Makes widget invisible and removes focus if widget has current focus. | |
bool | hideWindow (csString widgetStr) |
Used to hide a window. | |
bool | hideWindowName (csString widgetStr) |
Used to hide a window from a command. | |
void | NextStyle () |
Advances through the available styles when a users clicks the right mouse button in the control window. | |
bool | OnButtonReleased (int mouseButton, int keyModifier, pawsWidget *reporter) |
Called whenever a button is released. | |
bool | OnChildMouseEnter (pawsWidget *child) |
Called when mouse enters a child widget. | |
bool | OnChildMouseExit (pawsWidget *child) |
Called when a mouse exits a child widget. | |
bool | OnMouseEnter () |
Called whenever the mouse enters this widget. | |
bool | OnMouseExit () |
Called whenever the mouse leaves this widget. | |
pawsControlWindow (const pawsControlWindow &origin) | |
pawsControlWindow () | |
bool | PostSetup () |
This is called after the widget and all of it's children have been created. | |
void | Register (pawsControlledWindow *window) |
When a new window registers make an entry for them in our list. | |
bool | setWindowPositionName (csString widgetStr, int x, int y) |
Used to set the position of windows from a command. | |
bool | setWindowSizeName (csString widgetStr, int width, int height) |
Used to set the size of windows from a command. | |
void | Show () |
Makes widget visible and brings it to the front. | |
bool | showWindow (csString widgetStr) |
Used to show a window. | |
bool | showWindowName (csString widgetStr) |
Used to show a window from a command. | |
void | Toggle () |
Toggle a window and it's children from hidden to visible or back depending on the window state when called. | |
void | WindowClose (pawsWidget *wnd) |
Changes the icon IsActive flag to FALSE and displays the proper background for it when a window is closed. | |
void | WindowOpen (pawsWidget *wnd) |
Changes the icon IsActive flag to TRUE and displays the proper background for it when a window is opened. | |
virtual | ~pawsControlWindow () |
Window that drives the main interface.
This widget controls the behavior of the main toolbar and the interaction with the various windows it controls.
Definition at line 55 of file pawscontrolwindow.h.
pawsControlWindow::pawsControlWindow | ( | ) |
virtual pawsControlWindow::~pawsControlWindow | ( | ) | [virtual] |
pawsControlWindow::pawsControlWindow | ( | const pawsControlWindow & | origin | ) | [inline] |
Definition at line 60 of file pawscontrolwindow.h.
void pawsControlWindow::AddWindow | ( | csString | wndName, |
csString | btnName | ||
) |
Creates a new WBName structure to hold window and button status.
wndName,: | The name of the window to add. |
btnName,: | The name of the button associated with the window. |
Determines if the coordinates are within this widget.
Typically the border or screenFrame.
x | The x screen position. |
y | The y screen position. |
Reimplemented from pawsWidget.
pawsButton* pawsControlWindow::FindButtonFromWindow | ( | csString | wndName | ) |
The find window and find button methods are used to match a button to it's related window.
If you have the window name you can find the button.
wndName,: | The window name who's button you need. |
pawsControlledWindow* pawsControlWindow::FindWindowFromButton | ( | csString | btnName | ) |
The find window and find button methods are used to match a button to it's related window.
If you have the button name you can find the window.
btnName,: | The button name who's window you need. |
Icon* pawsControlWindow::GetIcon | ( | csString | btnName | ) |
Matchs the button name to the icon that represents it on the display.
btnName,: | The name to match. |
csString pawsControlWindow::getWindowInfo | ( | csString | widgetStr | ) |
Used to get the size and position of windows from a command.
widgetStr,: | The window that should return its info or "all" |
csString pawsControlWindow::getWindowNames | ( | ) |
Used to get all names and alternative names of windows from a command.
void pawsControlWindow::HandleQuit | ( | ) |
When the quit button is pressed this method displays the yes/no dialog box to confirm that a user really wants to quit.
bool pawsControlWindow::HandleWindow | ( | csString | widgetStr | ) |
Used for generic controlled window behavior when a window's button is pressed.
Displays a window that is hidden when it's button is pressed. Hides a window that is currently diplayed.
widgetStr,: | The window to handle. |
bool pawsControlWindow::HandleWindowName | ( | csString | widgetStr | ) |
Used for generic controlled window behavior when a window's is called Displays a window that is hidden when asked for by a command.
Hides a window that is currently diplayed.
widgetStr,: | The window to handle. |
void pawsControlWindow::Hide | ( | ) | [virtual] |
Makes widget invisible and removes focus if widget has current focus.
Sets visible FALSE, hides border if present and then if focused when called it calls SetCurrentFocusedWidget(NULL).
Reimplemented from pawsWidget.
bool pawsControlWindow::hideWindow | ( | csString | widgetStr | ) |
Used to hide a window.
If the window was already hidden nothing happens.
widgetStr,: | The window to show |
bool pawsControlWindow::hideWindowName | ( | csString | widgetStr | ) |
Used to hide a window from a command.
If the window was already hidden nothing happens.
widgetStr,: | The window to hide (command form, translated to the actual window name by the function) |
void pawsControlWindow::NextStyle | ( | ) |
Advances through the available styles when a users clicks the right mouse button in the control window.
bool pawsControlWindow::OnButtonReleased | ( | int | button, |
int | keyModifier, | ||
pawsWidget * | widget | ||
) | [virtual] |
Called whenever a button is released.
button | The button released. |
keyModifier | Modifier key in effect. |
widget | The widget the button belongs to. |
Reimplemented from pawsWidget.
bool pawsControlWindow::OnChildMouseEnter | ( | pawsWidget * | child | ) | [virtual] |
Called when mouse enters a child widget.
If child wants to inform parent.
child | The child widget. |
Reimplemented from pawsWidget.
bool pawsControlWindow::OnChildMouseExit | ( | pawsWidget * | child | ) | [virtual] |
Called when a mouse exits a child widget.
If child wants to inform parent.
child | The child widget. |
Reimplemented from pawsWidget.
bool pawsControlWindow::OnMouseEnter | ( | ) | [virtual] |
Called whenever the mouse enters this widget.
Reimplemented from pawsWidget.
bool pawsControlWindow::OnMouseExit | ( | ) | [virtual] |
Called whenever the mouse leaves this widget.
Reimplemented from pawsWidget.
bool pawsControlWindow::PostSetup | ( | ) | [virtual] |
This is called after the widget and all of it's children have been created.
Reimplemented from pawsWidget.
void pawsControlWindow::Register | ( | pawsControlledWindow * | window | ) |
When a new window registers make an entry for them in our list.
window | The window to register. |
Used to set the position of windows from a command.
widgetStr,: | The window to hide (command form, translated to the actual window name by the function) |
x,: | New x postion ofthe window |
y,: | New y postion ofthe window |
Used to set the size of windows from a command.
widgetStr,: | The window to resizehide (command form, translated to the actual window name by the function) |
width,: | New width of the window |
height,: | New height of the window |
void pawsControlWindow::Show | ( | ) | [virtual] |
Makes widget visible and brings it to the front.
Sets visible TRUE shows border if present then calls BringToTop() on itself.
Reimplemented from pawsWidget.
bool pawsControlWindow::showWindow | ( | csString | widgetStr | ) |
Used to show a window.
If the window was already shown nothing happens.
widgetStr,: | The window to show |
bool pawsControlWindow::showWindowName | ( | csString | widgetStr | ) |
Used to show a window from a command.
If the window was already shown nothing happens.
widgetStr,: | The window to hide (command form, translated to the actual window name by the function) |
void pawsControlWindow::Toggle | ( | ) |
Toggle a window and it's children from hidden to visible or back depending on the window state when called.
void pawsControlWindow::WindowClose | ( | pawsWidget * | wnd | ) |
Changes the icon IsActive flag to FALSE and displays the proper background for it when a window is closed.
wnd,: | The window that closed. |
void pawsControlWindow::WindowOpen | ( | pawsWidget * | wnd | ) |
Changes the icon IsActive flag to TRUE and displays the proper background for it when a window is opened.
wnd,: | The window that opened. |