Main Page | Class List | File List | Class Members | Related Pages

WDS::CFrame Class Reference

#include <frame.h>

Collaboration diagram for WDS::CFrame:

Collaboration graph
[legend]
List of all members.

Public Member Functions

void Init ()
void OnKeyDown (wxKeyEvent &event)
void SwitchProfile (CProfile *newProfile)

Protected Member Functions

void OnOpen (wxEvent &event)
void OnClose (wxEvent &event)
void OnMenuGoTo (wxEvent &event)
void OnMenuFind (wxEvent &event)
void OnMouseWheel (wxMouseEvent &event)
void SetFullScreen (bool bFull)
void GoTo (int x, int y)
void LoadProfile (CProfile *newProfile)

Detailed Description

The WdSMap's mainwindow. It includes a menubar, toolbar and provides some tools (find, goto, etc)

Definition at line 43 of file frame.h.


Member Function Documentation

void WDS::CFrame::GoTo int  x,
int  y
[protected]
 

GoTo() springt zur angegebenen Position

Definition at line 401 of file frame.cpp.

References WDS::CGLCanvas::ScrollTo().

Referenced by OnMenuGoTo().

Here is the call graph for this function:

void WDS::CFrame::Init  ) 
 

Init( ) Wird aufgerufen, wenn das Fenster angezeigt wird ( = OpenGL Context bereit ) Initialisiert die OpenGL Canvas, zeigt einen Splash Screen an und läd die Graphiken sowie die Karte die in der Config angegeben ist

Definition at line 287 of file frame.cpp.

References WDS::CGLCanvas::Init(), WDS::CProfile::IsValid(), LoadProfile(), and WDS::CGLCanvas::UpdateView().

Here is the call graph for this function:

void WDS::CFrame::LoadProfile CProfile newProfile  )  [protected]
 

LoadProfile loads the profile newProfile.

Definition at line 386 of file frame.cpp.

References WDS::CProfile::GetDat(), WDS::CProfile::GetLastScrollPositionX(), WDS::CProfile::GetLastScrollPositionY(), WDS::CProfile::GetLastZoom(), WDS::CProfile::GetMap(), WDS::CGLCanvas::SetXYPos(), and WDS::CGLCanvas::SetZoom().

Referenced by Init(), and SwitchProfile().

Here is the call graph for this function:

void WDS::CFrame::OnClose wxEvent &  event  )  [protected]
 

OnClose( ) Schliesst die aktuell geladene Karte

Definition at line 458 of file frame.cpp.

References WDS::CProfile::GetName(), and SwitchProfile().

Here is the call graph for this function:

void WDS::CFrame::OnKeyDown wxKeyEvent &  event  ) 
 

OnKeyDown( ) Wird aufgerufen, wenn der Benutzer eine Taste drueckt Tasten: Funktion: Esc Beendet den Fullscreen Modus F11 Schaltet zwischen Fullscreen und Window Modus um + Zoomt in die Karte hinein

  • Zoomt aus der karte heraus

Definition at line 672 of file frame.cpp.

References SetFullScreen(), WDS::CGLCanvas::ZoomIn(), and WDS::CGLCanvas::ZoomOut().

Here is the call graph for this function:

void WDS::CFrame::OnMenuFind wxEvent &  event  )  [protected]
 

OnMenuFind( ) Zeigt den Suchen-Dialog an mit dem der Nutzer nach Staeten, Spieler usw. suchen kann.

Definition at line 538 of file frame.cpp.

void WDS::CFrame::OnMenuGoTo wxEvent &  event  )  [protected]
 

OnMenuGoTo( ) Zeigt einen Dialog an in dem der Benutzer die x/y-Position des Feldes angeben kann zu dem er gehen will

Definition at line 516 of file frame.cpp.

References WDS::CDlgGoTo::GetX(), WDS::CDlgGoTo::GetY(), and GoTo().

Here is the call graph for this function:

void WDS::CFrame::OnMouseWheel wxMouseEvent &  event  )  [protected]
 

OnMouseWheel( ) Wird aufgerufen, wenn das Mausrad gedreht wird. Veraendert den Zoom

Definition at line 648 of file frame.cpp.

References WDS::CGLCanvas::ZoomIn(), and WDS::CGLCanvas::ZoomOut().

Here is the call graph for this function:

void WDS::CFrame::OnOpen wxEvent &  event  )  [protected]
 

OnOpen( ) keine funktion atm

Definition at line 450 of file frame.cpp.

void WDS::CFrame::SetFullScreen bool  bFull  )  [protected]
 

SetFullScreen( ) Schaltet zwischen Fullscreen und Windowed hin und her

Definition at line 326 of file frame.cpp.

Referenced by OnKeyDown().

void WDS::CFrame::SwitchProfile CProfile newProfile  ) 
 

SwitchProfile( ) Entlaedt aktuelles Profil und laedt neues Profil newProfile. Setzt newProfile als CurrentProfile. newProfile kann auch NULL sein, was Close() gleichkommt.

Definition at line 343 of file frame.cpp.

References WDS::CGLCanvas::GetXPos(), WDS::CGLCanvas::GetYPos(), WDS::CGLCanvas::GetZoom(), WDS::CProfile::IsValid(), LoadProfile(), WDS::CGLCanvas::ScrollTo(), WDS::CProfile::SetLastScrollPosition(), WDS::CProfile::SetLastZoom(), WDS::CGLCanvas::SetZoom(), and WDS::CGLCanvas::UpdateView().

Referenced by OnClose().

Here is the call graph for this function:


The documentation for this class was generated from the following files:
Generated on Sun Jan 16 18:20:27 2005 for WDSMap by  doxygen 1.3.9.1