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

#include <CtlDlg.h>

Inheritance diagram for CtlDlg:
FormWindow ActiveWindow Window EventTarget

List of all members.

Public Member Functions

 CtlDlg (Screen *s, FormDef &def, BaseScreen *mgr)
virtual ~CtlDlg ()
virtual void RegisterControls ()
virtual void Show ()
virtual void ExecFrame ()
virtual void OnCommand (AWEvent *event)
virtual void OnCategory (AWEvent *event)
virtual void OnControlModel (AWEvent *event)
virtual void OnJoySelect (AWEvent *event)
virtual void OnJoyThrottle (AWEvent *event)
virtual void OnJoyRudder (AWEvent *event)
virtual void OnJoySensitivity (AWEvent *event)
virtual void OnJoyAxis (AWEvent *event)
virtual void OnMouseSelect (AWEvent *event)
virtual void OnMouseSensitivity (AWEvent *event)
virtual void OnMouseInvert (AWEvent *event)
virtual void Apply ()
virtual void Cancel ()
virtual void OnApply (AWEvent *event)
virtual void OnCancel (AWEvent *event)
virtual void OnAudio (AWEvent *event)
virtual void OnVideo (AWEvent *event)
virtual void OnOptions (AWEvent *event)
virtual void OnControls (AWEvent *event)
virtual void OnMod (AWEvent *event)
- 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 Member Functions

void ShowCategory ()
void UpdateCategory ()
- 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)

Protected Attributes

BaseScreenmanager
Buttoncategory [4]
ListBoxcommands
int command_index
ComboBoxcontrol_model_combo
ComboBoxjoy_select_combo
ComboBoxjoy_throttle_combo
ComboBoxjoy_rudder_combo
Sliderjoy_sensitivity_slider
Buttonjoy_axis_button
ComboBoxmouse_select_combo
Slidermouse_sensitivity_slider
Buttonmouse_invert_checkbox
Buttonaud_btn
Buttonvid_btn
Buttonopt_btn
Buttonctl_btn
Buttonmod_btn
Buttonapply
Buttoncancel
int selected_category
int control_model
int joy_select
int joy_throttle
int joy_rudder
int joy_sensitivity
int mouse_select
int mouse_sensitivity
int mouse_invert
bool closed

Detailed Description

Definition at line 34 of file CtlDlg.h.


Constructor & Destructor Documentation

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

Definition at line 56 of file CtlDlg.cpp.

CtlDlg::~CtlDlg ( )
virtual

Definition at line 67 of file CtlDlg.cpp.


Member Function Documentation

void CtlDlg::Apply ( )
virtual

Definition at line 428 of file CtlDlg.cpp.

void CtlDlg::Cancel ( )
virtual

Definition at line 458 of file CtlDlg.cpp.

void CtlDlg::ExecFrame ( )
virtual

Definition at line 174 of file CtlDlg.cpp.

void CtlDlg::OnApply ( AWEvent event)
virtual

Definition at line 412 of file CtlDlg.cpp.

void CtlDlg::OnAudio ( AWEvent event)
virtual

Definition at line 403 of file CtlDlg.cpp.

void CtlDlg::OnCancel ( AWEvent event)
virtual

Definition at line 419 of file CtlDlg.cpp.

void CtlDlg::OnCategory ( AWEvent event)
virtual

Definition at line 301 of file CtlDlg.cpp.

void CtlDlg::OnCommand ( AWEvent event)
virtual

Definition at line 317 of file CtlDlg.cpp.

void CtlDlg::OnControlModel ( AWEvent event)
virtual

Definition at line 343 of file CtlDlg.cpp.

void CtlDlg::OnControls ( AWEvent event)
virtual

Definition at line 406 of file CtlDlg.cpp.

void CtlDlg::OnJoyAxis ( AWEvent event)
virtual

Definition at line 375 of file CtlDlg.cpp.

void CtlDlg::OnJoyRudder ( AWEvent event)
virtual

Definition at line 363 of file CtlDlg.cpp.

void CtlDlg::OnJoySelect ( AWEvent event)
virtual

Definition at line 351 of file CtlDlg.cpp.

void CtlDlg::OnJoySensitivity ( AWEvent event)
virtual

Definition at line 369 of file CtlDlg.cpp.

void CtlDlg::OnJoyThrottle ( AWEvent event)
virtual

Definition at line 357 of file CtlDlg.cpp.

void CtlDlg::OnMod ( AWEvent event)
virtual

Definition at line 407 of file CtlDlg.cpp.

void CtlDlg::OnMouseInvert ( AWEvent event)
virtual

Definition at line 396 of file CtlDlg.cpp.

void CtlDlg::OnMouseSelect ( AWEvent event)
virtual

Definition at line 384 of file CtlDlg.cpp.

void CtlDlg::OnMouseSensitivity ( AWEvent event)
virtual

Definition at line 390 of file CtlDlg.cpp.

void CtlDlg::OnOptions ( AWEvent event)
virtual

Definition at line 405 of file CtlDlg.cpp.

void CtlDlg::OnVideo ( AWEvent event)
virtual

Definition at line 404 of file CtlDlg.cpp.

void CtlDlg::RegisterControls ( )
virtual

Reimplemented from FormWindow.

Definition at line 74 of file CtlDlg.cpp.

void CtlDlg::Show ( )
virtual

Reimplemented from ActiveWindow.

Definition at line 152 of file CtlDlg.cpp.

void CtlDlg::ShowCategory ( )
protected

Definition at line 184 of file CtlDlg.cpp.

void CtlDlg::UpdateCategory ( )
protected

Definition at line 284 of file CtlDlg.cpp.


Member Data Documentation

Button* CtlDlg::apply
protected

Definition at line 100 of file CtlDlg.h.

Button* CtlDlg::aud_btn
protected

Definition at line 94 of file CtlDlg.h.

Button* CtlDlg::cancel
protected

Definition at line 101 of file CtlDlg.h.

Button* CtlDlg::category[4]
protected

Definition at line 78 of file CtlDlg.h.

bool CtlDlg::closed
protected

Definition at line 115 of file CtlDlg.h.

int CtlDlg::command_index
protected

Definition at line 80 of file CtlDlg.h.

ListBox* CtlDlg::commands
protected

Definition at line 79 of file CtlDlg.h.

int CtlDlg::control_model
protected

Definition at line 104 of file CtlDlg.h.

ComboBox* CtlDlg::control_model_combo
protected

Definition at line 82 of file CtlDlg.h.

Button* CtlDlg::ctl_btn
protected

Definition at line 97 of file CtlDlg.h.

Button* CtlDlg::joy_axis_button
protected

Definition at line 88 of file CtlDlg.h.

int CtlDlg::joy_rudder
protected

Definition at line 108 of file CtlDlg.h.

ComboBox* CtlDlg::joy_rudder_combo
protected

Definition at line 86 of file CtlDlg.h.

int CtlDlg::joy_select
protected

Definition at line 106 of file CtlDlg.h.

ComboBox* CtlDlg::joy_select_combo
protected

Definition at line 84 of file CtlDlg.h.

int CtlDlg::joy_sensitivity
protected

Definition at line 109 of file CtlDlg.h.

Slider* CtlDlg::joy_sensitivity_slider
protected

Definition at line 87 of file CtlDlg.h.

int CtlDlg::joy_throttle
protected

Definition at line 107 of file CtlDlg.h.

ComboBox* CtlDlg::joy_throttle_combo
protected

Definition at line 85 of file CtlDlg.h.

BaseScreen* CtlDlg::manager
protected

Definition at line 76 of file CtlDlg.h.

Button* CtlDlg::mod_btn
protected

Definition at line 98 of file CtlDlg.h.

int CtlDlg::mouse_invert
protected

Definition at line 113 of file CtlDlg.h.

Button* CtlDlg::mouse_invert_checkbox
protected

Definition at line 92 of file CtlDlg.h.

int CtlDlg::mouse_select
protected

Definition at line 111 of file CtlDlg.h.

ComboBox* CtlDlg::mouse_select_combo
protected

Definition at line 90 of file CtlDlg.h.

int CtlDlg::mouse_sensitivity
protected

Definition at line 112 of file CtlDlg.h.

Slider* CtlDlg::mouse_sensitivity_slider
protected

Definition at line 91 of file CtlDlg.h.

Button* CtlDlg::opt_btn
protected

Definition at line 96 of file CtlDlg.h.

int CtlDlg::selected_category
protected

Definition at line 103 of file CtlDlg.h.

Button* CtlDlg::vid_btn
protected

Definition at line 95 of file CtlDlg.h.


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