Starshatter_Open
Open source Starshatter engine
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
NavDlg Class Reference

#include <NavDlg.h>

Inheritance diagram for NavDlg:
FormWindow ActiveWindow Window EventTarget MsnEditNavDlg MsnNavDlg

List of all members.

Public Types

enum  NAV_EDIT_MODE { NAV_EDIT_NONE = 0, NAV_EDIT_ADD = 1, NAV_EDIT_DEL = 2, NAV_EDIT_MOVE = 3 }

Public Member Functions

 NavDlg (Screen *s, FormDef &def, BaseScreen *mgr)
virtual ~NavDlg ()
virtual void RegisterControls ()
virtual void OnView (AWEvent *event)
virtual void OnFilter (AWEvent *event)
virtual void OnSelect (AWEvent *event)
virtual void OnCommit (AWEvent *event)
virtual void OnCancel (AWEvent *event)
virtual void OnEngage (AWEvent *event)
virtual void OnMapDown (AWEvent *event)
virtual void OnMapMove (AWEvent *event)
virtual void OnMapClick (AWEvent *event)
virtual void OnClose (AWEvent *event)
virtual void ExecFrame ()
StarSystemGetSystem () const
void SetSystem (StarSystem *s)
MissionGetMission () const
void SetMission (Mission *m)
ShipGetShip () const
void SetShip (Ship *s)
bool GetEditorMode () const
void SetEditorMode (bool b)
void UseViewMode (int mode)
void UseFilter (int index)
void SelectObject (int index)
void UpdateSelection ()
void UpdateLists ()
void CoordinateSelection ()
void SelectStar (Orbital *star)
void SelectPlanet (Orbital *planet)
void SelectRegion (OrbitalRegion *rgn)
void SetNavEditMode (int mode)
int GetNavEditMode ()
- Public Member Functions inherited from FormWindow
 FormWindow (Screen *s, int ax, int ay, int aw, int ah, DWORD aid=0, DWORD style=0, ActiveWindow *parent=0)
virtual ~FormWindow ()
virtual void Init ()
virtual void Init (const FormDef &def)
virtual void Destroy ()
virtual ActiveWindowFindControl (DWORD id)
virtual ActiveWindowFindControl (int x, int y)
virtual void AdoptFormDef (const FormDef &def)
virtual void AddControl (ActiveWindow *ctrl)
virtual ActiveWindowCreateLabel (const char *text, int x, int y, int w, int h, DWORD id=0, DWORD pid=0, DWORD style=0)
virtual ButtonCreateButton (const char *text, int x, int y, int w, int h, DWORD id=0, DWORD pid=0)
virtual ImageBoxCreateImageBox (const char *text, int x, int y, int w, int h, DWORD id=0, DWORD pid=0)
virtual ListBoxCreateListBox (const char *text, int x, int y, int w, int h, DWORD id=0, DWORD pid=0)
virtual ComboBoxCreateComboBox (const char *text, int x, int y, int w, int h, DWORD id=0, DWORD pid=0)
virtual EditBoxCreateEditBox (const char *text, int x, int y, int w, int h, DWORD id=0, DWORD pid=0)
virtual RichTextBoxCreateRichTextBox (const char *text, int x, int y, int w, int h, DWORD id=0, DWORD pid=0, DWORD style=0)
virtual SliderCreateSlider (const char *text, int x, int y, int w, int h, DWORD id=0, DWORD pid=0, DWORD style=0)
ListIter< ActiveWindowControls ()
- Public Member Functions inherited from ActiveWindow
 ActiveWindow (Screen *s, int ax, int ay, int aw, int ah, DWORD id=0, DWORD style=0, ActiveWindow *parent=0)
virtual ~ActiveWindow ()
int operator== (const ActiveWindow &w) const
virtual void Paint ()
virtual void Draw ()
virtual void Show ()
virtual void Hide ()
virtual void MoveTo (const Rect &r)
virtual void UseLayout (const std::vector< DWORD > &min_x, const std::vector< DWORD > &min_y, const std::vector< float > &weight_x, const std::vector< float > &weight_y)
virtual void UseLayout (const std::vector< float > &min_x, const std::vector< float > &min_y, const std::vector< float > &weight_x, const std::vector< float > &weight_y)
virtual void UseLayout (int ncols, int nrows, int *min_x, int *min_y, float *weight_x, float *weight_y)
virtual void DoLayout ()
virtual int OnMouseMove (int x, int y)
virtual int OnLButtonDown (int x, int y)
virtual int OnLButtonUp (int x, int y)
virtual int OnClick ()
virtual int OnSelect ()
virtual int OnRButtonDown (int x, int y)
virtual int OnRButtonUp (int x, int y)
virtual int OnMouseEnter (int x, int y)
virtual int OnMouseExit (int x, int y)
virtual int OnMouseWheel (int wheel)
virtual int OnKeyDown (int vk, int flags)
virtual const char * GetDescription () const
virtual int OnDragStart (int x, int y)
virtual int OnDragDrop (int x, int y, ActiveWindow *source)
virtual Rect TargetRect () const
virtual ActiveWindowGetCapture ()
virtual int SetCapture ()
virtual int ReleaseCapture ()
virtual void SetFocus ()
virtual void KillFocus ()
virtual bool HasFocus () const
void SetEnabled (bool e=true)
bool IsEnabled () const
bool IsVisible () const
DWORD GetID () const
void SetStyle (DWORD s)
DWORD GetStyle () const
void SetText (const char *t)
void SetText (const Text &t)
void AddText (const char *t)
void AddText (const Text &t)
const TextGetText () const
void SetAltText (const char *t)
void SetAltText (const Text &t)
const TextGetAltText () const
void SetTexture (Bitmap *bmp)
BitmapGetTexture ()
void SetMargins (const Insets &m)
InsetsGetMargins ()
void SetTextInsets (const Insets &t)
InsetsGetTextInsets ()
List< ActiveWindow > & GetChildren ()
void SetCellInsets (const Insets &c)
InsetsGetCellInsets ()
void SetCells (int cx, int cy, int cw=1, int ch=1)
void SetCells (const Rect &r)
RectGetCells ()
void SetFixedWidth (int w)
int GetFixedWidth () const
void SetFixedHeight (int h)
int GetFixedHeight () const
void SetAlpha (double a)
double GetAlpha () const
void SetBackColor (Color c)
Color GetBackColor () const
void SetBaseColor (Color c)
Color GetBaseColor () const
void SetForeColor (Color c)
Color GetForeColor () const
void SetSingleLine (bool a)
bool GetSingleLine () const
void SetTextAlign (DWORD a)
DWORD GetTextAlign () const
void SetTransparent (bool t)
bool GetTransparent () const
void SetHidePartial (bool a)
bool GetHidePartial () const
void SetTabStop (int n, int x)
int GetTabStop (int n) const
void DrawText (const char *txt, int count, Rect &txt_rect, DWORD flags)
virtual void RegisterClient (int EID, ActiveWindow *client, PFVAWE callback)
virtual void UnregisterClient (int EID, ActiveWindow *client)
virtual void ClientEvent (int EID, int x=0, int y=0)
virtual ActiveWindowGetForm ()
virtual void SetForm (ActiveWindow *f)
virtual bool IsFormActive () const
virtual bool IsTopMost () const
virtual void SetTopMost (bool t)
virtual ActiveWindowFindChild (DWORD id)
virtual ActiveWindowFindChild (int x, int y)
- Public Member Functions inherited from Window
 Window (Screen *s, int ax, int ay, int aw, int ah)
virtual ~Window ()
int operator== (const Window &that) const
ScreenGetScreen () const
const RectGetRect () const
int X () const
int Y () const
int Width () const
int Height () const
virtual bool IsShown () const
virtual bool AddView (View *v)
virtual bool DelView (View *v)
Rect ClipRect (const Rect &r)
bool ClipLine (int &x1, int &y1, int &x2, int &y2)
bool ClipLine (double &x1, double &y1, double &x2, double &y2)
void DrawLine (int x1, int y1, int x2, int y2, Color color, int blend=0)
void DrawRect (int x1, int y1, int x2, int y2, Color color, int blend=0)
void DrawRect (const Rect &r, Color color, int blend=0)
void FillRect (int x1, int y1, int x2, int y2, Color color, int blend=0)
void FillRect (const Rect &r, Color color, int alpha=0)
void DrawBitmap (int x1, int y1, int x2, int y2, Bitmap *img, int blend=0)
void FadeBitmap (int x1, int y1, int x2, int y2, Bitmap *img, Color c, int blend)
void ClipBitmap (int x1, int y1, int x2, int y2, Bitmap *img, Color c, int blend, const Rect &clip)
void TileBitmap (int x1, int y1, int x2, int y2, Bitmap *img, int blend=0)
void DrawLines (int nPts, POINT *pts, Color color, int blend=0)
void DrawPoly (int nPts, POINT *pts, Color color, int blend=0)
void FillPoly (int nPts, POINT *pts, Color color, int blend=0)
void DrawEllipse (int x1, int y1, int x2, int y2, Color color, int blend=0)
void FillEllipse (int x1, int y1, int x2, int y2, Color color, int blend=0)
void SetFont (Font *f)
FontGetFont () const
void Print (int x1, int y1, const char *fmt,...)
- Public Member Functions inherited from EventTarget
virtual ~EventTarget ()
int operator== (const EventTarget &t) const

Protected Attributes

Buttonview_btn [3]
Buttonfilter_btn [6]
Buttoncommit_btn
Buttonzoom_in_btn
Buttonzoom_out_btn
Buttonclose_btn
MapViewstar_map
ActiveWindowmap_win
ActiveWindowloc_labels
ActiveWindowdst_labels
ActiveWindowloc_data
ActiveWindowdst_data
ListBoxseln_list
ListBoxinfo_list
BaseScreenmanager
int seln_mode
int nav_edit_mode
StarSystemstar_system
List< Orbitalstars
List< Orbitalplanets
List< OrbitalRegionregions
List< Shipcontacts
Shipship
Missionmission
bool editor

Additional Inherited Members

- Protected Member Functions inherited from FormWindow
virtual void CreateDefLabel (CtrlDef &def)
virtual void CreateDefButton (CtrlDef &def)
virtual void CreateDefImage (CtrlDef &def)
virtual void CreateDefList (CtrlDef &def)
virtual void CreateDefCombo (CtrlDef &def)
virtual void CreateDefEdit (CtrlDef &def)
virtual void CreateDefSlider (CtrlDef &def)
virtual void CreateDefRichText (CtrlDef &def)
- Protected Member Functions inherited from ActiveWindow
virtual Color ShadeColor (Color c, double shade)
virtual void AddChild (ActiveWindow *child)
virtual void DrawStyleRect (const Rect &r, int style)
virtual void DrawStyleRect (int x1, int y1, int x2, int y2, int style)
virtual void DrawTabbedText ()
virtual void DrawTextureGrid ()
virtual void CalcGrid ()
- Protected Member Functions inherited from Window
virtual void ScreenToWindow (int &x, int &y)
virtual void ScreenToWindow (Rect &r)

Detailed Description

Definition at line 35 of file NavDlg.h.


Member Enumeration Documentation

Enumerator:
NAV_EDIT_NONE 
NAV_EDIT_ADD 
NAV_EDIT_DEL 
NAV_EDIT_MOVE 

Definition at line 77 of file NavDlg.h.


Constructor & Destructor Documentation

NavDlg::NavDlg ( Screen s,
FormDef def,
BaseScreen mgr 
)

Definition at line 81 of file NavDlg.cpp.

NavDlg::~NavDlg ( )
virtual

Definition at line 91 of file NavDlg.cpp.


Member Function Documentation

void NavDlg::CoordinateSelection ( )

Definition at line 1064 of file NavDlg.cpp.

void NavDlg::ExecFrame ( )
virtual

Reimplemented in MsnNavDlg.

Definition at line 347 of file NavDlg.cpp.

bool NavDlg::GetEditorMode ( ) const
inline

Definition at line 63 of file NavDlg.h.

Mission* NavDlg::GetMission ( ) const
inline

Definition at line 58 of file NavDlg.h.

int NavDlg::GetNavEditMode ( )

Definition at line 1025 of file NavDlg.cpp.

Ship* NavDlg::GetShip ( ) const
inline

Definition at line 60 of file NavDlg.h.

StarSystem* NavDlg::GetSystem ( ) const
inline

Definition at line 56 of file NavDlg.h.

void NavDlg::OnCancel ( AWEvent event)
virtual

Reimplemented in MsnEditNavDlg, and MsnNavDlg.

Definition at line 997 of file NavDlg.cpp.

void NavDlg::OnClose ( AWEvent event)
virtual

Definition at line 1122 of file NavDlg.cpp.

void NavDlg::OnCommit ( AWEvent event)
virtual

Reimplemented in MsnEditNavDlg, and MsnNavDlg.

Definition at line 987 of file NavDlg.cpp.

void NavDlg::OnEngage ( AWEvent event)
virtual

Definition at line 955 of file NavDlg.cpp.

void NavDlg::OnFilter ( AWEvent event)
virtual

Definition at line 513 of file NavDlg.cpp.

void NavDlg::OnMapClick ( AWEvent event)
virtual

Definition at line 1041 of file NavDlg.cpp.

void NavDlg::OnMapDown ( AWEvent event)
virtual

Definition at line 1031 of file NavDlg.cpp.

void NavDlg::OnMapMove ( AWEvent event)
virtual

Definition at line 1036 of file NavDlg.cpp.

void NavDlg::OnSelect ( AWEvent event)
virtual

Definition at line 652 of file NavDlg.cpp.

void NavDlg::OnView ( AWEvent event)
virtual

Definition at line 472 of file NavDlg.cpp.

void NavDlg::RegisterControls ( )
virtual

Reimplemented from FormWindow.

Reimplemented in MsnEditNavDlg, and MsnNavDlg.

Definition at line 95 of file NavDlg.cpp.

void NavDlg::SelectObject ( int  index)

Definition at line 667 of file NavDlg.cpp.

void NavDlg::SelectPlanet ( Orbital planet)

Definition at line 604 of file NavDlg.cpp.

void NavDlg::SelectRegion ( OrbitalRegion rgn)

Definition at line 627 of file NavDlg.cpp.

void NavDlg::SelectStar ( Orbital star)

Definition at line 581 of file NavDlg.cpp.

void NavDlg::SetEditorMode ( bool  b)

Definition at line 336 of file NavDlg.cpp.

void NavDlg::SetMission ( Mission m)

Definition at line 266 of file NavDlg.cpp.

void NavDlg::SetNavEditMode ( int  mode)

Definition at line 1006 of file NavDlg.cpp.

void NavDlg::SetShip ( Ship s)

Definition at line 230 of file NavDlg.cpp.

void NavDlg::SetSystem ( StarSystem s)

Definition at line 160 of file NavDlg.cpp.

void NavDlg::UpdateLists ( )

Definition at line 829 of file NavDlg.cpp.

void NavDlg::UpdateSelection ( )

Definition at line 679 of file NavDlg.cpp.

void NavDlg::UseFilter ( int  index)

Definition at line 531 of file NavDlg.cpp.

void NavDlg::UseViewMode ( int  mode)

Definition at line 543 of file NavDlg.cpp.


Member Data Documentation

Button* NavDlg::close_btn
protected

Definition at line 91 of file NavDlg.h.

Button* NavDlg::commit_btn
protected

Definition at line 88 of file NavDlg.h.

List<Ship> NavDlg::contacts
protected

Definition at line 111 of file NavDlg.h.

ActiveWindow* NavDlg::dst_data
protected

Definition at line 98 of file NavDlg.h.

ActiveWindow* NavDlg::dst_labels
protected

Definition at line 96 of file NavDlg.h.

bool NavDlg::editor
protected

Definition at line 115 of file NavDlg.h.

Button* NavDlg::filter_btn[6]
protected

Definition at line 87 of file NavDlg.h.

ListBox* NavDlg::info_list
protected

Definition at line 101 of file NavDlg.h.

ActiveWindow* NavDlg::loc_data
protected

Definition at line 97 of file NavDlg.h.

ActiveWindow* NavDlg::loc_labels
protected

Definition at line 95 of file NavDlg.h.

BaseScreen* NavDlg::manager
protected

Definition at line 103 of file NavDlg.h.

ActiveWindow* NavDlg::map_win
protected

Definition at line 94 of file NavDlg.h.

Mission* NavDlg::mission
protected

Definition at line 114 of file NavDlg.h.

int NavDlg::nav_edit_mode
protected

Definition at line 105 of file NavDlg.h.

List<Orbital> NavDlg::planets
protected

Definition at line 109 of file NavDlg.h.

List<OrbitalRegion> NavDlg::regions
protected

Definition at line 110 of file NavDlg.h.

ListBox* NavDlg::seln_list
protected

Definition at line 100 of file NavDlg.h.

int NavDlg::seln_mode
protected

Definition at line 104 of file NavDlg.h.

Ship* NavDlg::ship
protected

Definition at line 113 of file NavDlg.h.

MapView* NavDlg::star_map
protected

Definition at line 93 of file NavDlg.h.

StarSystem* NavDlg::star_system
protected

Definition at line 107 of file NavDlg.h.

List<Orbital> NavDlg::stars
protected

Definition at line 108 of file NavDlg.h.

Button* NavDlg::view_btn[3]
protected

Definition at line 86 of file NavDlg.h.

Button* NavDlg::zoom_in_btn
protected

Definition at line 89 of file NavDlg.h.

Button* NavDlg::zoom_out_btn
protected

Definition at line 90 of file NavDlg.h.


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