wxSliderComboPopup Class Reference

Inheritance diagram for wxSliderComboPopup:

wxComboPopup List of all members.

Public Member Functions

virtual void Init ()
virtual bool Create (wxWindow *parent)
virtual void OnShow ()
virtual wxSize GetAdjustedSize (int minWidth, int WXUNUSED(prefHeight), int maxHeight)
virtual wxWindow * GetControl ()
virtual void SetStringValue (const wxString &s)
virtual wxString GetStringValue () const

Protected Member Functions

void OnSliderScrollEvent (wxScrollEvent &event)

Detailed Description

Definition at line 38 of file slidercombo.cpp.


Member Function Documentation

virtual bool wxSliderComboPopup::Create wxWindow *  parent  )  [inline, virtual]
 

Implements wxComboPopup.

Definition at line 46 of file slidercombo.cpp.

00047     {
00048         long style = m_combo->GetWindowStyleFlag();
00049         style &= wxSL_HORIZONTAL | wxSL_VERTICAL | wxSL_LABELS | wxSL_INVERSE;
00050 
00051         // Add raised border for other ports (gtk2 draws its native one with the expose callback)
00052 #ifndef __WXGTK20__
00053         style |= wxRAISED_BORDER;
00054 #endif
00055 
00056         if (wxSlider::Create(parent, wxID_ANY,
00057                              50, 0, 100,
00058                              wxDefaultPosition, wxDefaultSize,
00059                              style))
00060         {
00061 #ifdef __WXGTK20__
00062             g_signal_connect (m_widget, "expose_event",
00063                               G_CALLBACK (xara_slidercombo_expose_callback), NULL);
00064 #endif
00065             return true;
00066         }
00067         return false;
00068     }

virtual wxSize wxSliderComboPopup::GetAdjustedSize int  minWidth,
int   WXUNUSED(prefHeight),
int  maxHeight
[inline, virtual]
 

Definition at line 74 of file slidercombo.cpp.

00077     {
00078         wxSize sz = GetBestSize();
00079         return wxSize(wxMax(120, minWidth), wxMin(sz.GetHeight(), maxHeight));
00080     }

virtual wxWindow* wxSliderComboPopup::GetControl  )  [inline, virtual]
 

Implements wxComboPopup.

Definition at line 82 of file slidercombo.cpp.

00082 { return this; }

virtual wxString wxSliderComboPopup::GetStringValue  )  const [inline, virtual]
 

Implements wxComboPopup.

Definition at line 88 of file slidercombo.cpp.

00089     {
00090         // FIXME: Does this get called in wxGTK? On wxMSW this gets called on popup close
00091         return m_combo->GetValue();
00092     }

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

Reimplemented from wxComboPopup.

Definition at line 42 of file slidercombo.cpp.

00043     {
00044     }

virtual void wxSliderComboPopup::OnShow  )  [inline, virtual]
 

Definition at line 70 of file slidercombo.cpp.

00071     {
00072     }

void wxSliderComboPopup::OnSliderScrollEvent wxScrollEvent &  event  )  [inline, protected]
 

Definition at line 95 of file slidercombo.cpp.

00096     {
00097         wxScrollEvent ev( event.GetEventType(),
00098                           m_combo->GetId(),
00099                           event.GetPosition(),
00100                           event.GetOrientation() );
00101         ev.SetEventObject( m_combo );
00102         m_combo->GetEventHandler()->ProcessEvent( ev );
00103         if (event.GetEventType() == wxEVT_SCROLL_THUMBRELEASE)
00104             m_combo->HidePopup();
00105     }

virtual void wxSliderComboPopup::SetStringValue const wxString &  s  )  [inline, virtual]
 

Reimplemented from wxComboPopup.

Definition at line 84 of file slidercombo.cpp.

00085     {
00086     }


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