#include <ListDialog.h>
Inheritance diagram for ListDialog:
It provides dialog which presents the names of the top level DataSource objects in the file that can be used. The user can then select one.
Examples of files that can have multiple DataSource objects are ROOT and FITS files.
Definition at line 44 of file ListDialog.h.
Public Member Functions | |
accept () | |
done (int r) | |
virtual void | doubleClicked () |
Responds to a double click on the contained QListView object. | |
enum {Rejected, Accepted} | |
exec () | |
extension () const | |
isModal () const | |
isSizeGripEnabled () const | |
ListDialog (QWidget *parent) | |
The constructor. | |
orientation () const | |
prop -whether the size grip is enabled | |
prop -whether show() should pop up the dialog as modal or modeless | |
reject () | |
result () const | |
unsigned int | selectedItem () const |
Returns the index of the selected item. | |
setExtension (QWidget *extension) | |
setModal (bool modal) | |
void | setNames (const std::vector< std::string > &names) |
Sets the names of the of the top level objects that might be valid DataSource objects. | |
setOrientation (Orientation orientation) | |
setResult (int i) | |
setSizeGripEnabled (bool) | |
show () | |
showExtension (bool showIt) | |
Public Attributes | |
QPushButton * | m_cancel_button |
QPushButton * | m_select_button |
QListView * | m_tuple_list |
QLabel * | textLabel1 |
Protected Slots | |
virtual void | languageChange () |
Private Attributes | |
std::vector< QListViewItem * > | m_item_list |
The list of items added to the list of data source names. |
ListDialog | ( | QWidget * | parent | ) |
The constructor.
The constructor using parent as its parent widget.
Definition at line 26 of file ListDialog.cxx.
void doubleClicked | ( | ) | [virtual] |
Responds to a double click on the contained QListView object.
Responds to a double click on the contained QListView object by issuing QDialog::done with return code the index of selected QListViewItem.
Implements ListDialogBase.
Definition at line 89 of file ListDialog.cxx.
References QDialog::accept().
void languageChange | ( | ) | [protected, virtual, slot, inherited] |
Definition at line 79 of file ListDialogBase.cpp.
References QListView::header(), ListDialogBase::m_cancel_button, ListDialogBase::m_select_button, ListDialogBase::m_tuple_list, QPushButton::setText(), QLabel::setText(), and ListDialogBase::textLabel1.
Referenced by ListDialogBase::ListDialogBase().
unsigned int selectedItem | ( | ) | const |
Returns the index of the selected item.
Definition at line 69 of file ListDialog.cxx.
References ListDialog::m_item_list.
void setNames | ( | const std::vector< std::string > & | names | ) |
Sets the names of the of the top level objects that might be valid DataSource objects.
Definition at line 41 of file ListDialog.cxx.
References ListDialog::m_item_list, ListDialogBase::m_tuple_list, and QListView::setSelected().
QPushButton* m_cancel_button [inherited] |
Definition at line 35 of file ListDialogBase.h.
Referenced by ListDialogBase::languageChange(), and ListDialogBase::ListDialogBase().
std::vector< QListViewItem * > m_item_list [private] |
The list of items added to the list of data source names.
Definition at line 55 of file ListDialog.h.
Referenced by ListDialog::selectedItem(), and ListDialog::setNames().
QPushButton* m_select_button [inherited] |
Definition at line 34 of file ListDialogBase.h.
Referenced by ListDialogBase::languageChange(), and ListDialogBase::ListDialogBase().
QListView* m_tuple_list [inherited] |
Definition at line 33 of file ListDialogBase.h.
Referenced by ListDialogBase::languageChange(), ListDialogBase::ListDialogBase(), and ListDialog::setNames().
QLabel* textLabel1 [inherited] |
Definition at line 32 of file ListDialogBase.h.
Referenced by ListDialogBase::languageChange(), and ListDialogBase::ListDialogBase().