Eclipse SUMO - Simulation of Urban MObility
Loading...
Searching...
No Matches
GUIPersistentWindowPos Class Reference

Persists window position in the registry. More...

#include <GUIPersistentWindowPos.h>

Inheritance diagram for GUIPersistentWindowPos:
[legend]

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.

Detailed Description

Persists window position in the registry.

Definition at line 33 of file GUIPersistentWindowPos.h.

Constructor & Destructor Documentation

◆ GUIPersistentWindowPos() [1/2]

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).

Parameters
[in]parentThe parent window
[in]strThe storage of object selections to use

Definition at line 46 of file GUIPersistentWindowPos.cpp.

References myDefaultHeight, myDefaultWidth, myDefaultX, myDefaultY, myMinSize, myMinTitlebarHeight, myParent, myStoreSize, and myWindowName.

Referenced by GUIDialog_ChooserAbstract::GUIDialog_ChooserAbstract(), GUIDialog_EditViewport::GUIDialog_EditViewport(), GUIDialog_GLChosenEditor::GUIDialog_GLChosenEditor(), GUIDialog_ViewSettings::GUIDialog_ViewSettings(), and GUIParameterTableWindow::GUIParameterTableWindow().

Here is the caller graph for this function:

◆ ~GUIPersistentWindowPos()

GUIPersistentWindowPos::~GUIPersistentWindowPos ( )

Destructor (Notifies both the parent and the storage about being destroyed).

Definition at line 65 of file GUIPersistentWindowPos.cpp.

References saveWindowPos().

◆ GUIPersistentWindowPos() [2/2]

GUIPersistentWindowPos::GUIPersistentWindowPos ( )
protected

Definition at line 61 of file GUIPersistentWindowPos.cpp.

References myParent.

Member Function Documentation

◆ loadWindowPos()

void GUIPersistentWindowPos::loadWindowPos ( )

◆ saveWindowPos()

void GUIPersistentWindowPos::saveWindowPos ( )

Definition at line 71 of file GUIPersistentWindowPos.cpp.

References myParent, myStoreSize, and myWindowName.

Referenced by GUIDialog_ViewSettings::hide(), and ~GUIPersistentWindowPos().

Here is the caller graph for this function:

Field Documentation

◆ myDefaultHeight

int GUIPersistentWindowPos::myDefaultHeight
protected

Definition at line 65 of file GUIPersistentWindowPos.h.

Referenced by GUIPersistentWindowPos(), and loadWindowPos().

◆ myDefaultWidth

int GUIPersistentWindowPos::myDefaultWidth
protected

Definition at line 64 of file GUIPersistentWindowPos.h.

Referenced by GUIPersistentWindowPos(), and loadWindowPos().

◆ myDefaultX

int GUIPersistentWindowPos::myDefaultX
protected

Definition at line 61 of file GUIPersistentWindowPos.h.

Referenced by GUIPersistentWindowPos(), and loadWindowPos().

◆ myDefaultY

int GUIPersistentWindowPos::myDefaultY
protected

Definition at line 62 of file GUIPersistentWindowPos.h.

Referenced by GUIPersistentWindowPos(), and loadWindowPos().

◆ myMinSize

int GUIPersistentWindowPos::myMinSize
protected

Definition at line 67 of file GUIPersistentWindowPos.h.

Referenced by GUIPersistentWindowPos(), and loadWindowPos().

◆ myMinTitlebarHeight

int GUIPersistentWindowPos::myMinTitlebarHeight
protected

Definition at line 68 of file GUIPersistentWindowPos.h.

Referenced by GUIPersistentWindowPos(), and loadWindowPos().

◆ myParent

FXWindow* GUIPersistentWindowPos::myParent
protected

The window for which the position is being stored.

Definition at line 53 of file GUIPersistentWindowPos.h.

Referenced by GUIPersistentWindowPos(), GUIPersistentWindowPos(), loadWindowPos(), and saveWindowPos().

◆ myStoreSize

bool GUIPersistentWindowPos::myStoreSize
protected

whether window size shall be stored

Definition at line 59 of file GUIPersistentWindowPos.h.

Referenced by GUIPersistentWindowPos(), loadWindowPos(), and saveWindowPos().

◆ myWindowName

std::string GUIPersistentWindowPos::myWindowName
protected

Name for storing in the registry.

Definition at line 56 of file GUIPersistentWindowPos.h.

Referenced by GUIPersistentWindowPos(), loadWindowPos(), and saveWindowPos().


The documentation for this class was generated from the following files: