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

WDS::CProfile Class Reference

#include <profilemanager.h>

List of all members.

Public Member Functions

 CProfile ()
 ~CProfile ()
void SetName (const wxString &name)
 Set new name.
wxString GetName () const
 get name
void SetMap (const wxString &map)
 Set new mapfile map.
wxString GetMap () const
 map filename
void SetDat (const wxString &dat)
 Set new datfile dat.
wxString GetDat () const
 dat filename
bool IsValid () const
 return true if map != ""
void SetUser (const wxString &user)
 set user name
wxString GetUser () const
 user name
void SetPassword (const wxString &pw)
 set password
wxString GetPassword () const
 password
void SetServer (const wxString &server)
 set server url
wxString GetServer () const
 server url, format: www.server.org:port/rest/
void SetUsePhpmap (bool b_use)
 use phpmap
bool GetUsePhpmap () const
 use phpmap?
void SetFogOfWar (bool fow)
 set fow
bool GetFogOfWar () const
 Fog Of War.
void SetTimestamp (int ts)
 set new timestamp ts
int GetTimestamp () const
 timestamp
void SetDirty (bool dirty)
bool GetDirty () const
 dirty flag
GoToArray & GetBookmarks ()
 reference to bookmarks
GoToArray & GetRecentGoTos ()
 reference to recent gotos
void AddBookmark (int x, int y, const wxString &comment)
void AddRecentGoTo (int x, int y)
 add goto to recent list
void Load (wxFileConfig *pConfig)
 load profile from pConfig
void Save (wxFileConfig *pConfig)
 save profile to pConfig
void SetLastScrollPosition (int x, int y)
int GetLastScrollPositionX () const
int GetLastScrollPositionY () const
void SetLastZoom (float zoom)
float GetLastZoom () const


Detailed Description

A profile contains all information about a map, which are:

Todo:
notes (as in wds "Notizen") -favourite gotos

last position (useful?)

zoom level (useful?)

favourite paths (useful?) .

Author:
Dominik Haumann <dhaumann@users.sf.net>

Definition at line 81 of file profilemanager.h.


Constructor & Destructor Documentation

WDS::CProfile::CProfile  ) 
 

constructor, set defaults

Definition at line 38 of file profilemanager.cpp.

WDS::CProfile::~CProfile  ) 
 

destructor, empty

Definition at line 57 of file profilemanager.cpp.


Member Function Documentation

void WDS::CProfile::AddBookmark int  x,
int  y,
const wxString &  comment
 

Add (x,y) to the goto list

Parameters:
comment comment from the user

Definition at line 176 of file profilemanager.cpp.

int WDS::CProfile::GetLastScrollPositionX  )  const
 

Returns:
last x position from glcanvas

Definition at line 322 of file profilemanager.cpp.

Referenced by WDS::CFrame::LoadProfile(), and Save().

int WDS::CProfile::GetLastScrollPositionY  )  const
 

Returns:
last y position from glcanvas

Definition at line 327 of file profilemanager.cpp.

Referenced by WDS::CFrame::LoadProfile(), and Save().

float WDS::CProfile::GetLastZoom  )  const
 

Returns:
zoom level from last session

Definition at line 337 of file profilemanager.cpp.

Referenced by WDS::CFrame::LoadProfile(), and Save().

void WDS::CProfile::SetDirty bool  dirty  ) 
 

Set dirty flag.

Parameters:
dirty true means that we updated from the phpmap, so we have to save the changes when we close the profile.

Definition at line 156 of file profilemanager.cpp.

void WDS::CProfile::SetLastScrollPosition int  x,
int  y
 

save the scroll position (x,y) from glCanvas (session management)

Parameters:
x x component from glCanvas
y y component from glCanvas

Definition at line 316 of file profilemanager.cpp.

Referenced by Load(), and WDS::CFrame::SwitchProfile().

void WDS::CProfile::SetLastZoom float  zoom  ) 
 

Parameters:
zoom last zoom level from glcanvas

Definition at line 332 of file profilemanager.cpp.

Referenced by Load(), and WDS::CFrame::SwitchProfile().


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