![]() |
Diana Software
|
Drop down box with tab-complete. More...
Public Member Functions | |
| QGDropDownBox (const TGWindow *p=0) | |
| Constructor. More... | |
| virtual | ~QGDropDownBox () |
| Destructor. More... | |
| void | AddEntryS (const std::string &entry) |
| Add entry. More... | |
| void | EnableTabCompletion () |
| Enable tab completion. More... | |
| std::vector< std::string > | FindMatches (const std::string &s) |
| Find a match to a string. More... | |
| std::string | GetCommonText (const std::vector< std::string > &v) |
| Get common text. More... | |
| void | HandleReturnPressed () |
| Handle tab pressed. More... | |
| void | QGHandleEvent (Event_t *event) |
| Handle event. More... | |
| void | SetReturnTarget (TGTextEntry *textBox) |
| Set return target. More... | |
| void | TabComplete () |
| Tab complete. More... | |
Private Attributes | |
| std::vector< std::string > | fEntries |
| Collection of entries. More... | |
| TGTextEntry * | fReturnTarget |
| Text box to change to when return is pressed. More... | |
Drop down box with tab-complete.
Definition at line 17 of file QGDropDownBox.hh.
| QGDropDownBox::QGDropDownBox | ( | const TGWindow * | p = 0 | ) |
Constructor.
Definition at line 9 of file QGDropDownBox.cc.
|
virtual |
Destructor.
Definition at line 17 of file QGDropDownBox.cc.
| void QGDropDownBox::AddEntryS | ( | const std::string & | entry | ) |
Add entry.
Definition at line 21 of file QGDropDownBox.cc.
References fEntries.
Referenced by QGHistogramEditWindow::FillVariablesDropDownBoxes(), QGPulseEditWindow::FillVariablesDropDownBoxes(), and QGScatterPlotEditWindow::FillVariablesDropDownBoxes().
| void QGDropDownBox::EnableTabCompletion | ( | ) |
Enable tab completion.
Definition at line 27 of file QGDropDownBox.cc.
Referenced by QGCutsFrame::QGCutsFrame(), QGHistogramParametersFrame::QGHistogramParametersFrame(), QGPulseParametersFrame::QGPulseParametersFrame(), and QGScatterPlotParametersFrame::QGScatterPlotParametersFrame().
| vector< string > QGDropDownBox::FindMatches | ( | const std::string & | s | ) |
Find a match to a string.
Definition at line 32 of file QGDropDownBox.cc.
References fEntries.
Referenced by TabComplete().
| string QGDropDownBox::GetCommonText | ( | const std::vector< std::string > & | v | ) |
Get common text.
Definition at line 42 of file QGDropDownBox.cc.
References N.
Referenced by TabComplete().
| void QGDropDownBox::HandleReturnPressed | ( | ) |
| void QGDropDownBox::QGHandleEvent | ( | Event_t * | event | ) |
Handle event.
Definition at line 65 of file QGDropDownBox.cc.
| void QGDropDownBox::SetReturnTarget | ( | TGTextEntry * | textBox | ) |
Set return target.
Definition at line 72 of file QGDropDownBox.cc.
References fReturnTarget.
Referenced by QGHistogramParametersFrame::QGHistogramParametersFrame(), and QGScatterPlotParametersFrame::QGScatterPlotParametersFrame().
| void QGDropDownBox::TabComplete | ( | ) |
Tab complete.
Definition at line 87 of file QGDropDownBox.cc.
References FindMatches(), and GetCommonText().
|
private |
Collection of entries.
Definition at line 51 of file QGDropDownBox.hh.
Referenced by AddEntryS(), and FindMatches().
|
private |
Text box to change to when return is pressed.
Definition at line 54 of file QGDropDownBox.hh.
Referenced by HandleReturnPressed(), and SetReturnTarget().