]> Creatis software - cpPlugins.git/blob - lib/cpBaseQtApplication/PathsDialog.h
4161555cb1c49070712827583c479e1ff1001d2e
[cpPlugins.git] / lib / cpBaseQtApplication / PathsDialog.h
1 #ifndef __CPBASEQTAPPLICATION__PATHSDIALOG__H__
2 #define __CPBASEQTAPPLICATION__PATHSDIALOG__H__
3
4 #include <cpBaseQtApplication_Export.h>
5 #include <cpPlugins/Config.h>
6 #include <set>
7 #include <string>
8 #include <QDialog>
9
10 // -------------------------------------------------------------------------
11 namespace Ui
12 {
13   class PathsDialog;
14 }
15
16 // -------------------------------------------------------------------------
17 namespace cpBaseQtApplication
18 {
19   /**
20    */
21   class cpBaseQtApplication_EXPORT PathsDialog
22     : public QDialog
23   {
24     Q_OBJECT;
25
26   public:
27     explicit PathsDialog( QWidget* parent = 0, Qt::WindowFlags flags = 0 );
28     virtual ~PathsDialog( );
29
30     void addPaths( const std::set< std::string >& paths );
31     std::set< std::string > getPaths( ) const;
32
33   protected slots:
34     void _addPath( );
35     void _removePath( );
36
37   protected:
38     Ui::PathsDialog* m_UI;
39   };
40
41 } // ecapseman
42
43 #endif // __CPBASEQTAPPLICATION__PATHSDIALOG__H__
44
45 // eof - $RCSfile$