ListDialog Class Reference

#include <ListDialog.h>

Inheritance diagram for ListDialog:

Inheritance graph
ListDialogBaseQDialog
[legend]
Collaboration diagram for ListDialog:

Collaboration graph
ListDialogBaseQDialogQLabelQPushButtonQListView
[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.

Todo:
Write a FileIconProvider so that QFileDialog can highlight known file types.
Author:
Paul F. Kunz <Paul_Kunz@slac.stanford.edu>

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

QPushButtonm_cancel_button
QPushButtonm_select_button
QListViewm_tuple_list
QLabeltextLabel1

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.


Constructor & Destructor Documentation

ListDialog ( QWidget parent  ) 

The constructor.

The constructor using parent as its parent widget.

Definition at line 26 of file ListDialog.cxx.


Member Function Documentation

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().


Member Data Documentation

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().


The documentation for this class was generated from the following files:
Generated for HippoDraw Class Library by doxygen