wxComboPopup Class Reference

#include <combo.h>

Inheritance diagram for wxComboPopup:

wxGridComboPopup wxSliderComboPopup wxVListBoxComboPopup wxCamGridPopup wxCamVListBoxComboPopup wxCamBitmapDropdownPopup List of all members.

Public Member Functions

 wxComboPopup ()
virtual void Init ()
virtual ~wxComboPopup ()
virtual bool Create (wxWindow *parent)=0
virtual wxWindow * GetControl ()=0
virtual void OnPopup ()
virtual void OnDismiss ()
virtual void SetStringValue (const wxString &value)
virtual wxString GetStringValue () const =0
virtual void PaintComboControl (wxDC &dc, const wxRect &rect)
virtual void OnComboKeyEvent (wxKeyEvent &event)
virtual void OnComboDoubleClick ()
virtual wxSize GetAdjustedSize (int minWidth, int prefHeight, int maxHeight)
virtual bool LazyCreate ()
void Dismiss ()
bool IsCreated () const

Static Public Member Functions

static void DefaultPaintComboControl (wxComboCtrlBase *combo, wxDC &dc, const wxRect &rect)

Protected Attributes

wxComboCtrlBasem_combo
wxUint32 m_iFlags

Private Member Functions

void InitBase (wxComboCtrlBase *combo)

Friends

class wxComboCtrlBase

Detailed Description

Definition at line 543 of file combo.h.


Constructor & Destructor Documentation

wxComboPopup::wxComboPopup  )  [inline]
 

Definition at line 547 of file combo.h.

00548     {
00549         m_combo = (wxComboCtrlBase*) NULL;
00550         m_iFlags = 0;
00551     }

wxComboPopup::~wxComboPopup  )  [virtual]
 

Definition at line 353 of file combo.cpp.

00354 {
00355 }


Member Function Documentation

virtual bool wxComboPopup::Create wxWindow *  parent  )  [pure virtual]
 

Implemented in wxGridComboPopup, wxVListBoxComboPopup, and wxSliderComboPopup.

void wxComboPopup::DefaultPaintComboControl wxComboCtrlBase combo,
wxDC &  dc,
const wxRect &  rect
[static]
 

Definition at line 372 of file combo.cpp.

00374 {
00375     if ( combo->GetWindowStyle() & wxCB_READONLY ) // ie. no textctrl
00376     {
00377         combo->DrawFocusBackground(dc,rect,0);
00378 
00379         dc.DrawText( combo->GetValue(),
00380                      rect.x + combo->GetTextIndent(),
00381                      (rect.height-dc.GetCharHeight())/2 + rect.y );
00382     }
00383 }

void wxComboPopup::Dismiss  ) 
 

Definition at line 408 of file combo.cpp.

00409 {
00410     m_combo->HidePopup();
00411 }

virtual wxSize wxComboPopup::GetAdjustedSize int  minWidth,
int  prefHeight,
int  maxHeight
[virtual]
 

Reimplemented in wxGridComboPopup, and wxVListBoxComboPopup.

virtual wxWindow* wxComboPopup::GetControl  )  [pure virtual]
 

Implemented in wxGridComboPopup, wxVListBoxComboPopup, and wxSliderComboPopup.

virtual wxString wxComboPopup::GetStringValue  )  const [pure virtual]
 

Implemented in wxGridComboPopup, wxVListBoxComboPopup, and wxSliderComboPopup.

virtual void wxComboPopup::Init void   )  [inline, virtual]
 

Reimplemented in wxGridComboPopup, wxVListBoxComboPopup, and wxSliderComboPopup.

Definition at line 557 of file combo.h.

00557 { };

void wxComboPopup::InitBase wxComboCtrlBase combo  )  [inline, private]
 

Definition at line 630 of file combo.h.

00631     {
00632         m_combo = combo;
00633     }

bool wxComboPopup::IsCreated  )  const [inline]
 

Definition at line 614 of file combo.h.

00615     {
00616         return (m_iFlags & wxCP_IFLAG_CREATED) ? true : false;
00617     }

bool wxComboPopup::LazyCreate  )  [virtual]
 

Reimplemented in wxVListBoxComboPopup.

Definition at line 403 of file combo.cpp.

00404 {
00405     return false;
00406 }

void wxComboPopup::OnComboDoubleClick  )  [virtual]
 

Reimplemented in wxVListBoxComboPopup.

Definition at line 395 of file combo.cpp.

00396 {
00397 }

void wxComboPopup::OnComboKeyEvent wxKeyEvent &  event  )  [virtual]
 

Reimplemented in wxVListBoxComboPopup.

Definition at line 390 of file combo.cpp.

00391 {
00392     event.Skip();
00393 }

void wxComboPopup::OnDismiss  )  [virtual]
 

Definition at line 361 of file combo.cpp.

00362 {
00363 }

void wxComboPopup::OnPopup  )  [virtual]
 

Reimplemented in wxVListBoxComboPopup.

Definition at line 357 of file combo.cpp.

00358 {
00359 }

void wxComboPopup::PaintComboControl wxDC &  dc,
const wxRect &  rect
[virtual]
 

Reimplemented in wxCamBitmapDropdownPopup, wxGridComboPopup, and wxVListBoxComboPopup.

Definition at line 385 of file combo.cpp.

00386 {
00387     DefaultPaintComboControl(m_combo,dc,rect);
00388 }

virtual void wxComboPopup::SetStringValue const wxString &  value  )  [virtual]
 

Reimplemented in wxVListBoxComboPopup, and wxSliderComboPopup.


Friends And Related Function Documentation

friend class wxComboCtrlBase [friend]
 

Definition at line 545 of file combo.h.


Member Data Documentation

wxComboCtrlBase* wxComboPopup::m_combo [protected]
 

Definition at line 625 of file combo.h.

wxUint32 wxComboPopup::m_iFlags [protected]
 

Definition at line 626 of file combo.h.


The documentation for this class was generated from the following files:
Generated on Sat Nov 10 04:03:17 2007 for Camelot by  doxygen 1.4.4