Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

ListDialog Class Reference

#include <ListDialog.h>

Inheritance diagram for ListDialog:

Inheritance graph
[legend]
Collaboration diagram for ListDialog:

Collaboration graph
[legend]
List of all members.

Detailed Description

A derived class of ListDialogBase class which is generated by the Qt designer.

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.

Author:
Paul F. Kunz <Paul_Kunz@slac.stanford.edu>

Definition at line 39 of file ListDialog.h.

Public Member Functions

virtual void doubleClicked ()
 Responds to a double click on the contained QListView object.
 ListDialog (QWidget *parent)
 The constructor.
unsigned int selectedItem () const
 Returns the index of the selected item.
void setNames (const std::vector< std::string > &names)
 Sets the names of the of the top level objects that might be valid Datasource objects.

Private Attributes

std::vector< QListViewItem * > m_item_list
 The list of items added to the list of ntuple names.


Constructor & Destructor Documentation

ListDialog::ListDialog QWidget parent  ) 
 

The constructor.

The constructor using parent as its parent widget.

Definition at line 24 of file ListDialog.cxx.


Member Function Documentation

void ListDialog::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.

Definition at line 87 of file ListDialog.cxx.

References selectedItem().

unsigned int ListDialog::selectedItem  )  const
 

Returns the index of the selected item.

Definition at line 67 of file ListDialog.cxx.

References m_item_list.

Referenced by doubleClicked().

void ListDialog::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 39 of file ListDialog.cxx.

References m_item_list.


Member Data Documentation

std::vector< QListViewItem * > ListDialog::m_item_list [private]
 

The list of items added to the list of ntuple names.

Definition at line 50 of file ListDialog.h.

Referenced by selectedItem(), and setNames().


The documentation for this class was generated from the following files:
Generated for HippoDraw-1.14.8.5 by doxygen 1.4.3