QGuiDropDownList Class Reference
[Apollo GuiApollo]

Inheritance diagram for QGuiDropDownList:

QGuiCompositeFrame

List of all members.


Detailed Description

drop down list widget

Author:
Sergio Di Domizio Very similar to TGComboBox: only implements few more utility methods for code simplification.

Public Member Functions

 QGuiDropDownList (const TGWindow *parent)
 ctor
virtual ~QGuiDropDownList ()
 dtor
void SetList (const std::vector< std::string > &items)
 set list of items to be shown in this widget
Bool_t Allowed (const std::string &entry)
 check whether the requested entry is allowed
Bool_t SetSelected (const std::string &entry)
 set current selection
const std::string & GetSelected () const
void ValueChanged ()
void Lock (Bool_t doLock)

Private Attributes

TGComboBox * fCombo
std::vector< std::string > fItems

Member Function Documentation

Bool_t QGuiDropDownList::Allowed ( const std::string &  entry  ) 

check whether the requested entry is allowed

Parameters:
entry string containing the entry to be checked
Returns:
true if the requested entry is allowed

References fItems.

Referenced by SetSelected().

Bool_t QGuiDropDownList::SetSelected ( const std::string &  entry  ) 

set current selection

Parameters:
entry string corresponding to the selection to be displayed
Returns:
true unless the requested entry is not allowed

References Allowed(), and fItems.

Referenced by QGEBiasFrame::SetBias(), SetList(), and QGERLoadFrame::SetSelected().


Member Data Documentation

std::vector<std::string> QGuiDropDownList::fItems [private]

vector of items allowed in this widget

Referenced by Allowed(), SetList(), and SetSelected().


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

Generated on Tue Nov 16 10:50:06 2010 for CUORE Software by  doxygen 1.5.6