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

ListDialog.h

Go to the documentation of this file.
00001 /* -*- mode: c++ -*- */
00002 
00014 #ifndef _ListDialog_H_
00015 #define _ListDialog_H_
00016 
00017 #include <qglobal.h> // for version
00018 #if QT_VERSION < 0x040000
00019 #include "ListDialogBase.h"
00020 #else
00021 #include "ListDialogUI.h"
00022 #endif
00023 
00024 #include <string>
00025 #include <vector>
00026 
00038 #if QT_VERSION < 0x040000
00039 class ListDialog : public ListDialogBase
00040 #else
00041 class ListDialog : public QDialog,
00042                    private Ui::ListDialogUI
00043 #endif
00044 {
00045 private:
00046 
00049 #if QT_VERSION < 0x040000
00050   std::vector < QListViewItem * > m_item_list;
00051 #else
00052   std::vector < Q3ListViewItem * > m_item_list;
00053 #endif
00054 
00055 public:
00056 
00060   ListDialog ( QWidget * parent );
00061 
00065   void setNames ( const std::vector < std::string > & names );
00066 
00069   unsigned int selectedItem () const;
00070 
00076   virtual void doubleClicked ();
00077 
00078 };
00079 
00080 #endif // _ListDialog_H_

Generated for HippoDraw-1.14.8.5 by doxygen 1.4.3