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

#include <PlayerDlg.h>

Inheritance diagram for PlayerDlg:
FormWindow ActiveWindow Window EventTarget

List of all members.

Public Member Functions

 PlayerDlg (Screen *s, FormDef &def, MenuScreen *mgr)
virtual ~PlayerDlg ()
virtual void RegisterControls ()
virtual void Show ()
virtual void ExecFrame ()
virtual void OnApply (AWEvent *event)
virtual void OnCancel (AWEvent *event)
virtual void OnSelectPlayer (AWEvent *event)
virtual void OnAdd (AWEvent *event)
virtual void OnDel (AWEvent *event)
virtual void OnDelConfirm (AWEvent *event)
virtual void OnRank (AWEvent *event)
virtual void OnMedal (AWEvent *event)
virtual void UpdatePlayer ()
virtual void ShowPlayer ()
- 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 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

MenuScreenmanager
ListBoxlst_roster
Buttonbtn_add
Buttonbtn_del
EditBoxtxt_name
EditBoxtxt_password
EditBoxtxt_squadron
EditBoxtxt_signature
EditBoxtxt_chat [10]
ActiveWindowlbl_createdate
ActiveWindowlbl_rank
ActiveWindowlbl_flighttime
ActiveWindowlbl_missions
ActiveWindowlbl_kills
ActiveWindowlbl_losses
ActiveWindowlbl_points
ImageBoximg_rank
ImageBoximg_medals [15]
int medals [15]
Buttonapply
Buttoncancel

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 33 of file PlayerDlg.h.


Constructor & Destructor Documentation

PlayerDlg::PlayerDlg ( Screen s,
FormDef def,
MenuScreen mgr 
)

Definition at line 49 of file PlayerDlg.cpp.

PlayerDlg::~PlayerDlg ( )
virtual

Definition at line 58 of file PlayerDlg.cpp.


Member Function Documentation

void PlayerDlg::ExecFrame ( )
virtual

Definition at line 140 of file PlayerDlg.cpp.

void PlayerDlg::OnAdd ( AWEvent event)
virtual

Definition at line 271 of file PlayerDlg.cpp.

void PlayerDlg::OnApply ( AWEvent event)
virtual

Definition at line 371 of file PlayerDlg.cpp.

void PlayerDlg::OnCancel ( AWEvent event)
virtual

Definition at line 384 of file PlayerDlg.cpp.

void PlayerDlg::OnDel ( AWEvent event)
virtual

Definition at line 290 of file PlayerDlg.cpp.

void PlayerDlg::OnDelConfirm ( AWEvent event)
virtual

Definition at line 313 of file PlayerDlg.cpp.

void PlayerDlg::OnMedal ( AWEvent event)
virtual

Definition at line 346 of file PlayerDlg.cpp.

void PlayerDlg::OnRank ( AWEvent event)
virtual

Definition at line 334 of file PlayerDlg.cpp.

void PlayerDlg::OnSelectPlayer ( AWEvent event)
virtual

Definition at line 252 of file PlayerDlg.cpp.

void PlayerDlg::RegisterControls ( )
virtual

Reimplemented from FormWindow.

Definition at line 65 of file PlayerDlg.cpp.

void PlayerDlg::Show ( )
virtual

Reimplemented from ActiveWindow.

Definition at line 112 of file PlayerDlg.cpp.

void PlayerDlg::ShowPlayer ( )
virtual

Definition at line 150 of file PlayerDlg.cpp.

void PlayerDlg::UpdatePlayer ( )
virtual

Definition at line 232 of file PlayerDlg.cpp.


Member Data Documentation

Button* PlayerDlg::apply
protected

Definition at line 81 of file PlayerDlg.h.

Button* PlayerDlg::btn_add
protected

Definition at line 60 of file PlayerDlg.h.

Button* PlayerDlg::btn_del
protected

Definition at line 61 of file PlayerDlg.h.

Button* PlayerDlg::cancel
protected

Definition at line 82 of file PlayerDlg.h.

ImageBox* PlayerDlg::img_medals[15]
protected

Definition at line 78 of file PlayerDlg.h.

ImageBox* PlayerDlg::img_rank
protected

Definition at line 77 of file PlayerDlg.h.

ActiveWindow* PlayerDlg::lbl_createdate
protected

Definition at line 70 of file PlayerDlg.h.

ActiveWindow* PlayerDlg::lbl_flighttime
protected

Definition at line 72 of file PlayerDlg.h.

ActiveWindow* PlayerDlg::lbl_kills
protected

Definition at line 74 of file PlayerDlg.h.

ActiveWindow* PlayerDlg::lbl_losses
protected

Definition at line 75 of file PlayerDlg.h.

ActiveWindow* PlayerDlg::lbl_missions
protected

Definition at line 73 of file PlayerDlg.h.

ActiveWindow* PlayerDlg::lbl_points
protected

Definition at line 76 of file PlayerDlg.h.

ActiveWindow* PlayerDlg::lbl_rank
protected

Definition at line 71 of file PlayerDlg.h.

ListBox* PlayerDlg::lst_roster
protected

Definition at line 59 of file PlayerDlg.h.

MenuScreen* PlayerDlg::manager
protected

Definition at line 57 of file PlayerDlg.h.

int PlayerDlg::medals[15]
protected

Definition at line 79 of file PlayerDlg.h.

EditBox* PlayerDlg::txt_chat[10]
protected

Definition at line 68 of file PlayerDlg.h.

EditBox* PlayerDlg::txt_name
protected

Definition at line 63 of file PlayerDlg.h.

EditBox* PlayerDlg::txt_password
protected

Definition at line 64 of file PlayerDlg.h.

EditBox* PlayerDlg::txt_signature
protected

Definition at line 66 of file PlayerDlg.h.

EditBox* PlayerDlg::txt_squadron
protected

Definition at line 65 of file PlayerDlg.h.


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