wxPGComboControlBase Class Reference

#include <odcombo.h>

Inheritance diagram for wxPGComboControlBase:
Inheritance graph
[legend]

List of all members.

Public Member Functions

bool ConsumingTextCtrlFocusEvent ()
virtual void Copy ()
bool Create (wxWindow *parent, wxWindowID id, const wxString &value, const wxPoint &pos, const wxSize &size, long style, const wxValidator &validator, const wxString &name)
virtual void Cut ()
virtual bool Destroy ()
virtual void DrawFocusBackground (wxDC &dc, const wxRect &rect, int flags)
virtual bool Enable (bool enable=true)
const wxBitmap & GetBitmapDisabled () const
const wxBitmap & GetBitmapHover () const
const wxBitmap & GetBitmapNormal () const
const wxBitmap & GetBitmapPressed () const
wxWindow * GetButton () const
int GetCustomPaintWidth () const
virtual long GetInsertionPoint () const
wxUint32 GetInternalFlags () const
virtual long GetLastPosition () const
wxPGComboPopupGetPopup () const
wxWindow * GetPopupControl () const
wxWindow * GetPopupWindow () const
wxTextCtrlGetTextCtrl () const
wxCoord GetTextIndent () const
const wxRect & GetTextRect () const
virtual wxString GetValue () const
virtual void HidePopup ()
bool IsCreated () const
bool IsFocused () const
bool IsPopupShown () const
virtual void OnButtonClick ()
virtual bool OnDrawItem (wxDC &dc, const wxRect &rect, int item, int flags) const
virtual wxCoord OnMeasureItem (size_t item) const
virtual wxCoord OnMeasureItemWidth (size_t item) const
virtual void Paste ()
virtual void Remove (long from, long to)
virtual void Replace (long from, long to, const wxString &value)
void SetButtonBitmaps (const wxBitmap &bmpNormal, bool blankButtonBg=false, const wxBitmap &bmpPressed=wxNullBitmap, const wxBitmap &bmpHover=wxNullBitmap, const wxBitmap &bmpDisabled=wxNullBitmap)
void SetButtonPosition (int width=0, int height=0, int side=wxRIGHT, int spacingX=0)
void SetCustomPaintWidth (int width)
virtual bool SetFont (const wxFont &font)
virtual void SetInsertionPoint (long pos)
virtual void SetInsertionPointEnd ()
void SetPopup (wxPGComboPopup *iface)
void SetPopupExtents (int extLeft, int extRight)
void SetPopupMaxHeight (int height)
void SetPopupMinWidth (int width)
virtual void SetSelection (long from, long to)
void SetText (const wxString &value)
void SetTextIndent (int indent)
virtual void SetValue (const wxString &value)
bool ShouldDrawFocus () const
virtual bool Show (bool show=true)
virtual void ShowPopup ()
virtual void Undo ()
 wxPGComboControlBase ()
virtual ~wxPGComboControlBase ()

Protected Types

enum  { Button_PaintBackground = 0x0001, Button_BitmapOnly = 0x0002 }

Protected Member Functions

void CalculateAreas (int btnWidth=0)
void CreatePopup ()
void CreateTextCtrl (int extraStyle, const wxValidator &validator)
void Customize (wxUint32 flags)
virtual wxSize DoGetBestSize () const
virtual void DoMoveWindow (int x, int y, int width, int height)
void DrawButton (wxDC &dc, const wxRect &rect, int flags=Button_PaintBackground)
virtual wxCoord GetNativeTextIndent () const
bool HandleButtonMouseEvent (wxMouseEvent &event, int flags)
void HandleNormalMouseEvent (wxMouseEvent &event)
void InstallInputHandlers ()
void OnFocusEvent (wxFocusEvent &event)
void OnKeyEvent (wxKeyEvent &event)
void OnPopupDismiss ()
virtual void OnResize ()=0
void OnSizeEvent (wxSizeEvent &event)
void OnSysColourChanged (wxSysColourChangedEvent &event)
void OnTextCtrlEvent (wxCommandEvent &event)
virtual void OnThemeChange ()
virtual void PositionTextCtrl (int textCtrlXAdjust, int textCtrlYAdjust)
bool PreprocessMouseEvent (wxMouseEvent &event, int flags)
void RecalcAndRefresh ()

Protected Attributes

wxCoord m_absIndent
bool m_blankButtonBg
wxBitmap m_bmpDisabled
wxBitmap m_bmpHover
wxBitmap m_bmpNormal
wxBitmap m_bmpPressed
wxWindow * m_btn
wxRect m_btnArea
int m_btnHei
int m_btnSide
wxSize m_btnSize
int m_btnSpacingX
int m_btnState
int m_btnWid
int m_btnWidDefault
wxCoord m_extLeft
wxCoord m_extRight
unsigned char m_fakePopupUsage
wxCoord m_heightPopup
wxUint32 m_iFlags
bool m_isPopupShown
wxWindow * m_popup
wxEvtHandler * m_popupExtraHandler
wxPGComboPopupm_popupInterface
wxByte m_skipTextCtrlFocusEvents
wxRect m_tcArea
wxTextCtrlm_text
wxEvtHandler * m_textEvtHandler
wxLongLong m_timeCanAcceptClick
wxEvtHandler * m_toplevEvtHandler
wxString m_valueString
wxCoord m_widthCustomBorder
wxCoord m_widthCustomPaint
wxCoord m_widthMinPopup
wxWindow * m_winPopup

Private Member Functions

void Init ()

Friends

class wxPGComboPopup
class wxPGComboPopupWindow

Detailed Description

Definition at line 141 of file odcombo.h.


Member Enumeration Documentation

anonymous enum [protected]
Enumerator:
Button_PaintBackground 
Button_BitmapOnly 

Definition at line 406 of file odcombo.h.


Constructor & Destructor Documentation

wxPGComboControlBase::wxPGComboControlBase (  )  [inline]

Definition at line 147 of file odcombo.h.

virtual wxPGComboControlBase::~wxPGComboControlBase (  )  [virtual]

Member Function Documentation

void wxPGComboControlBase::CalculateAreas ( int  btnWidth = 0  )  [protected]
bool wxPGComboControlBase::ConsumingTextCtrlFocusEvent (  )  [inline]

Definition at line 368 of file odcombo.h.

virtual void wxPGComboControlBase::Copy (  )  [virtual]
bool wxPGComboControlBase::Create ( wxWindow *  parent,
wxWindowID  id,
const wxString &  value,
const wxPoint &  pos,
const wxSize &  size,
long  style,
const wxValidator &  validator,
const wxString &  name 
)
void wxPGComboControlBase::CreatePopup (  )  [protected]
void wxPGComboControlBase::CreateTextCtrl ( int  extraStyle,
const wxValidator &  validator 
) [protected]
void wxPGComboControlBase::Customize ( wxUint32  flags  )  [inline, protected]

Definition at line 463 of file odcombo.h.

virtual void wxPGComboControlBase::Cut (  )  [virtual]
virtual bool wxPGComboControlBase::Destroy (  )  [virtual]
virtual wxSize wxPGComboControlBase::DoGetBestSize (  )  const [protected, virtual]
virtual void wxPGComboControlBase::DoMoveWindow ( int  x,
int  y,
int  width,
int  height 
) [protected, virtual]
void wxPGComboControlBase::DrawButton ( wxDC &  dc,
const wxRect &  rect,
int  flags = Button_PaintBackground 
) [protected]
virtual void wxPGComboControlBase::DrawFocusBackground ( wxDC &  dc,
const wxRect &  rect,
int  flags 
) [virtual]
virtual bool wxPGComboControlBase::Enable ( bool  enable = true  )  [virtual]
const wxBitmap& wxPGComboControlBase::GetBitmapDisabled (  )  const [inline]

Definition at line 345 of file odcombo.h.

const wxBitmap& wxPGComboControlBase::GetBitmapHover (  )  const [inline]

Definition at line 344 of file odcombo.h.

const wxBitmap& wxPGComboControlBase::GetBitmapNormal (  )  const [inline]

Definition at line 342 of file odcombo.h.

const wxBitmap& wxPGComboControlBase::GetBitmapPressed (  )  const [inline]

Definition at line 343 of file odcombo.h.

wxWindow* wxPGComboControlBase::GetButton (  )  const [inline]

Definition at line 189 of file odcombo.h.

int wxPGComboControlBase::GetCustomPaintWidth (  )  const [inline]

Definition at line 263 of file odcombo.h.

virtual long wxPGComboControlBase::GetInsertionPoint (  )  const [virtual]
wxUint32 wxPGComboControlBase::GetInternalFlags (  )  const [inline]

Definition at line 348 of file odcombo.h.

virtual long wxPGComboControlBase::GetLastPosition (  )  const [virtual]
virtual wxCoord wxPGComboControlBase::GetNativeTextIndent (  )  const [protected, virtual]
wxPGComboPopup* wxPGComboControlBase::GetPopup (  )  const [inline]

Definition at line 176 of file odcombo.h.

wxWindow* wxPGComboControlBase::GetPopupControl (  )  const [inline]

Definition at line 182 of file odcombo.h.

wxWindow* wxPGComboControlBase::GetPopupWindow (  )  const [inline]

Definition at line 179 of file odcombo.h.

wxTextCtrl* wxPGComboControlBase::GetTextCtrl (  )  const [inline]

Definition at line 185 of file odcombo.h.

wxCoord wxPGComboControlBase::GetTextIndent (  )  const [inline]

Definition at line 302 of file odcombo.h.

const wxRect& wxPGComboControlBase::GetTextRect (  )  const [inline]

Definition at line 220 of file odcombo.h.

virtual wxString wxPGComboControlBase::GetValue (  )  const [virtual]
bool wxPGComboControlBase::HandleButtonMouseEvent ( wxMouseEvent &  event,
int  flags 
) [protected]
void wxPGComboControlBase::HandleNormalMouseEvent ( wxMouseEvent &  event  )  [protected]
virtual void wxPGComboControlBase::HidePopup (  )  [virtual]
void wxPGComboControlBase::Init (  )  [private]
void wxPGComboControlBase::InstallInputHandlers (  )  [protected]
bool wxPGComboControlBase::IsCreated (  )  const [inline]

Definition at line 351 of file odcombo.h.

bool wxPGComboControlBase::IsFocused (  )  const [inline]

Definition at line 323 of file odcombo.h.

bool wxPGComboControlBase::IsPopupShown (  )  const [inline]

Definition at line 170 of file odcombo.h.

virtual void wxPGComboControlBase::OnButtonClick (  )  [virtual]
virtual bool wxPGComboControlBase::OnDrawItem ( wxDC &  dc,
const wxRect &  rect,
int  item,
int  flags 
) const [virtual]
void wxPGComboControlBase::OnFocusEvent ( wxFocusEvent &  event  )  [protected]
void wxPGComboControlBase::OnKeyEvent ( wxKeyEvent &  event  )  [protected]
virtual wxCoord wxPGComboControlBase::OnMeasureItem ( size_t  item  )  const [virtual]
virtual wxCoord wxPGComboControlBase::OnMeasureItemWidth ( size_t  item  )  const [virtual]
void wxPGComboControlBase::OnPopupDismiss (  )  [protected]
virtual void wxPGComboControlBase::OnResize (  )  [protected, pure virtual]

Implemented in wxPGGenericComboControl.

void wxPGComboControlBase::OnSizeEvent ( wxSizeEvent &  event  )  [protected]
void wxPGComboControlBase::OnSysColourChanged ( wxSysColourChangedEvent &  event  )  [protected]
void wxPGComboControlBase::OnTextCtrlEvent ( wxCommandEvent &  event  )  [protected]
virtual void wxPGComboControlBase::OnThemeChange (  )  [protected, virtual]
virtual void wxPGComboControlBase::Paste (  )  [virtual]
virtual void wxPGComboControlBase::PositionTextCtrl ( int  textCtrlXAdjust,
int  textCtrlYAdjust 
) [protected, virtual]
bool wxPGComboControlBase::PreprocessMouseEvent ( wxMouseEvent &  event,
int  flags 
) [protected]
void wxPGComboControlBase::RecalcAndRefresh (  )  [protected]
virtual void wxPGComboControlBase::Remove ( long  from,
long  to 
) [virtual]
virtual void wxPGComboControlBase::Replace ( long  from,
long  to,
const wxString &  value 
) [virtual]
void wxPGComboControlBase::SetButtonBitmaps ( const wxBitmap &  bmpNormal,
bool  blankButtonBg = false,
const wxBitmap &  bmpPressed = wxNullBitmap,
const wxBitmap &  bmpHover = wxNullBitmap,
const wxBitmap &  bmpDisabled = wxNullBitmap 
)
void wxPGComboControlBase::SetButtonPosition ( int  width = 0,
int  height = 0,
int  side = wxRIGHT,
int  spacingX = 0 
)
void wxPGComboControlBase::SetCustomPaintWidth ( int  width  ) 
virtual bool wxPGComboControlBase::SetFont ( const wxFont &  font  )  [virtual]
virtual void wxPGComboControlBase::SetInsertionPoint ( long  pos  )  [virtual]
virtual void wxPGComboControlBase::SetInsertionPointEnd (  )  [virtual]
void wxPGComboControlBase::SetPopup ( wxPGComboPopup iface  ) 
void wxPGComboControlBase::SetPopupExtents ( int  extLeft,
int  extRight 
) [inline]

Definition at line 252 of file odcombo.h.

void wxPGComboControlBase::SetPopupMaxHeight ( int  height  )  [inline]

Definition at line 242 of file odcombo.h.

void wxPGComboControlBase::SetPopupMinWidth ( int  width  )  [inline]

Definition at line 233 of file odcombo.h.

virtual void wxPGComboControlBase::SetSelection ( long  from,
long  to 
) [virtual]
void wxPGComboControlBase::SetText ( const wxString &  value  )  [inline]

Definition at line 203 of file odcombo.h.

void wxPGComboControlBase::SetTextIndent ( int  indent  ) 
virtual void wxPGComboControlBase::SetValue ( const wxString &  value  )  [virtual]
bool wxPGComboControlBase::ShouldDrawFocus (  )  const [inline]

Definition at line 333 of file odcombo.h.

virtual bool wxPGComboControlBase::Show ( bool  show = true  )  [virtual]
virtual void wxPGComboControlBase::ShowPopup (  )  [virtual]
virtual void wxPGComboControlBase::Undo (  )  [virtual]

Friends And Related Function Documentation

friend class wxPGComboPopup [friend]

Definition at line 143 of file odcombo.h.

friend class wxPGComboPopupWindow [friend]

Reimplemented in wxPGOwnerDrawnComboBox.

Definition at line 144 of file odcombo.h.


Member Data Documentation

wxCoord wxPGComboControlBase::m_absIndent [protected]

Definition at line 518 of file odcombo.h.

Definition at line 552 of file odcombo.h.

Definition at line 543 of file odcombo.h.

wxBitmap wxPGComboControlBase::m_bmpHover [protected]

Definition at line 542 of file odcombo.h.

wxBitmap wxPGComboControlBase::m_bmpNormal [protected]

Definition at line 540 of file odcombo.h.

wxBitmap wxPGComboControlBase::m_bmpPressed [protected]

Definition at line 541 of file odcombo.h.

wxWindow* wxPGComboControlBase::m_btn [protected]

Definition at line 474 of file odcombo.h.

wxRect wxPGComboControlBase::m_btnArea [protected]

Definition at line 525 of file odcombo.h.

Definition at line 532 of file odcombo.h.

Definition at line 533 of file odcombo.h.

wxSize wxPGComboControlBase::m_btnSize [protected]

Definition at line 546 of file odcombo.h.

Definition at line 534 of file odcombo.h.

Definition at line 528 of file odcombo.h.

Definition at line 531 of file odcombo.h.

Definition at line 537 of file odcombo.h.

wxCoord wxPGComboControlBase::m_extLeft [protected]

Definition at line 503 of file odcombo.h.

wxCoord wxPGComboControlBase::m_extRight [protected]

Definition at line 504 of file odcombo.h.

unsigned char wxPGComboControlBase::m_fakePopupUsage [protected]

Definition at line 558 of file odcombo.h.

Definition at line 510 of file odcombo.h.

wxUint32 wxPGComboControlBase::m_iFlags [protected]

Definition at line 549 of file odcombo.h.

Definition at line 555 of file odcombo.h.

wxWindow* wxPGComboControlBase::m_popup [protected]

Definition at line 480 of file odcombo.h.

wxEvtHandler* wxPGComboControlBase::m_popupExtraHandler [protected]

Definition at line 492 of file odcombo.h.

Reimplemented in wxPGOwnerDrawnComboBox.

Definition at line 483 of file odcombo.h.

Definition at line 560 of file odcombo.h.

wxRect wxPGComboControlBase::m_tcArea [protected]

Definition at line 524 of file odcombo.h.

Definition at line 473 of file odcombo.h.

wxEvtHandler* wxPGComboControlBase::m_textEvtHandler [protected]

Definition at line 486 of file odcombo.h.

Definition at line 500 of file odcombo.h.

wxEvtHandler* wxPGComboControlBase::m_toplevEvtHandler [protected]

Definition at line 489 of file odcombo.h.

Definition at line 470 of file odcombo.h.

Definition at line 521 of file odcombo.h.

Definition at line 515 of file odcombo.h.

Definition at line 507 of file odcombo.h.

wxWindow* wxPGComboControlBase::m_winPopup [protected]

Definition at line 477 of file odcombo.h.


The documentation for this class was generated from the following file:
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Friends Defines


wxpropgrid
Author(s): Jaakko Salli
autogenerated on Fri Jan 11 09:34:06 2013