Eclipse SUMO - Simulation of Urban MObility
|
Persists window position in the registry. More...
#include <GUIPersistentWindowPos.h>
Public Member Functions | |
GUIPersistentWindowPos (FXWindow *parent, const std::string &name, bool storeSize, int x=150, int y=150, int width=700, int height=500, int minSize=400, int minTitlebarHeight=20) | |
Constructor (Notifies both the parent and the storage about being initialised) | |
void | loadWindowPos () |
void | saveWindowPos () |
~GUIPersistentWindowPos () | |
Destructor (Notifies both the parent and the storage about being destroyed) | |
Protected Member Functions | |
GUIPersistentWindowPos () | |
Protected Attributes | |
int | myDefaultHeight |
int | myDefaultWidth |
int | myDefaultX |
int | myDefaultY |
int | myMinSize |
int | myMinTitlebarHeight |
FXWindow * | myParent |
The window for which the position is being stored. | |
bool | myStoreSize |
whether window size shall be stored | |
std::string | myWindowName |
Name for storing in the registry. | |
Persists window position in the registry.
Definition at line 33 of file GUIPersistentWindowPos.h.
GUIPersistentWindowPos::GUIPersistentWindowPos | ( | FXWindow * | parent, |
const std::string & | name, | ||
bool | storeSize, | ||
int | x = 150 , |
||
int | y = 150 , |
||
int | width = 700 , |
||
int | height = 500 , |
||
int | minSize = 400 , |
||
int | minTitlebarHeight = 20 |
||
) |
Constructor (Notifies both the parent and the storage about being initialised)
[in] | parent | The parent window |
[in] | str | The storage of object selections to use |
Definition at line 46 of file GUIPersistentWindowPos.cpp.
GUIPersistentWindowPos::~GUIPersistentWindowPos | ( | ) |
Destructor (Notifies both the parent and the storage about being destroyed)
Definition at line 65 of file GUIPersistentWindowPos.cpp.
References saveWindowPos().
|
protected |
Definition at line 61 of file GUIPersistentWindowPos.cpp.
void GUIPersistentWindowPos::loadWindowPos | ( | ) |
Definition at line 84 of file GUIPersistentWindowPos.cpp.
References MAX2(), MIN2(), myDefaultHeight, myDefaultWidth, myDefaultX, myDefaultY, myMinSize, myMinTitlebarHeight, myParent, myStoreSize, and myWindowName.
Referenced by GUIParameterTableWindow::GUIParameterTableWindow().
void GUIPersistentWindowPos::saveWindowPos | ( | ) |
Definition at line 71 of file GUIPersistentWindowPos.cpp.
References myParent, myStoreSize, and myWindowName.
Referenced by GUIDialog_ViewSettings::hide(), and ~GUIPersistentWindowPos().
|
protected |
Definition at line 65 of file GUIPersistentWindowPos.h.
Referenced by loadWindowPos().
|
protected |
Definition at line 64 of file GUIPersistentWindowPos.h.
Referenced by loadWindowPos().
|
protected |
Definition at line 61 of file GUIPersistentWindowPos.h.
Referenced by loadWindowPos().
|
protected |
Definition at line 62 of file GUIPersistentWindowPos.h.
Referenced by loadWindowPos().
|
protected |
Definition at line 67 of file GUIPersistentWindowPos.h.
Referenced by loadWindowPos().
|
protected |
Definition at line 68 of file GUIPersistentWindowPos.h.
Referenced by loadWindowPos().
|
protected |
The window for which the position is being stored.
Definition at line 53 of file GUIPersistentWindowPos.h.
Referenced by loadWindowPos(), and saveWindowPos().
|
protected |
whether window size shall be stored
Definition at line 59 of file GUIPersistentWindowPos.h.
Referenced by loadWindowPos(), and saveWindowPos().
|
protected |
Name for storing in the registry.
Definition at line 56 of file GUIPersistentWindowPos.h.
Referenced by loadWindowPos(), and saveWindowPos().