ListDialog.h
Go to the documentation of this file.
1 /* -*- mode: c++ -*- */
2 
14 #ifndef _ListDialog_H_
15 #define _ListDialog_H_
16 
17 // #include <qglobal.h> // for version
18 // #if QT_VERSION < 0x040000
19 #include "qtui/ListDialogBase.h"
20 // #else
21 // #include "ListDialogUI.h"
22 // #endif
23 
24 #include <string>
25 #include <vector>
26 
27 namespace hippodraw {
28 
43 // #if QT_VERSION < 0x040000
44 class ListDialog : public ListDialogBase
45 // #else
46 // class ListDialog : public QDialog,
47 // private Ui::ListDialogUI
48 // #endif
49 {
50 private:
51 
54 #if QT_VERSION < 0x040000
55  std::vector < QListViewItem * > m_item_list;
56 #else
57  std::vector < Q3ListViewItem * > m_item_list;
58 #endif
59 
60 public:
61 
65  ListDialog ( QWidget * parent );
66 
70  void setNames ( const std::vector < std::string > & names );
71 
74  unsigned int selectedItem () const;
75 
81  virtual void doubleClicked ();
82 
83 };
84 
85 } // namespace hippodraw
86 
87 #endif // _ListDialog_H_
virtual void doubleClicked()
Responds to a double click on the contained QListView object.
Definition: ListDialog.cxx:89
The file created from ListDialogBase.ui with the Qt uic tool.
A derived class of ListDialogBase class which is generated by the Qt designer.
Definition: ListDialog.h:44
unsigned int selectedItem() const
Returns the index of the selected item.
Definition: ListDialog.cxx:69
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: ListDialog.cxx:41
The base class for the ListDialog class.
std::vector< QListViewItem * > m_item_list
The list of items added to the list of data source names.
Definition: ListDialog.h:55
ListDialog(QWidget *parent)
The constructor.
Definition: ListDialog.cxx:26

Generated for HippoDraw Class Library by doxygen