]> icculus.org git repositories - duncan/yast2-qt4.git/blob - src/pkg/YQPatternSelector.h
merge latest qt3 commits
[duncan/yast2-qt4.git] / src / pkg / YQPatternSelector.h
1 /*---------------------------------------------------------------------\
2 |                                                                      |
3 |                      __   __    ____ _____ ____                      |
4 |                      \ \ / /_ _/ ___|_   _|___ \                     |
5 |                       \ V / _` \___ \ | |   __) |                    |
6 |                        | | (_| |___) || |  / __/                     |
7 |                        |_|\__,_|____/ |_| |_____|                    |
8 |                                                                      |
9 |                               core system                            |
10 |                                                        (C) SuSE GmbH |
11 \----------------------------------------------------------------------/
12
13   File:       YQPatternSelector.h
14
15   Author:     Stefan Hundhammer <sh@suse.de>
16
17 /-*/
18
19
20 #ifndef YQPatternSelector_h
21 #define YQPatternSelector_h
22
23 #include <QColor>
24
25 #include "YQPackageSelectorBase.h"
26
27
28 class QPushButton;
29
30 class YQPkgSelDescriptionView;
31 class YQPkgSelList;
32 class YQPkgPatternList;
33 class YQWizard;
34
35
36 class YQPatternSelector: public YQPackageSelectorBase
37 {
38     Q_OBJECT
39
40 public:
41
42     YQPatternSelector( YWidget * parent, long modeFlags );
43
44
45 protected slots:
46
47     /**
48      * User clicked on "Details..." - start the detailed package selection.
49      * This will return from UI::RunPkgSelection() with `details .
50      **/
51     void detailedPackageSelection();
52
53     /**
54      * Debugging
55      **/
56     void debugTrace();
57
58
59 protected:
60
61     // Layout methods - create and layout widgets
62
63     void        basicLayout();
64     QWidget *   layoutLeftPane  ( QWidget * parent );
65     QWidget *   layoutRightPane ( QWidget * parent );
66     void        layoutButtons   ( QWidget * parent );
67
68     /**
69      * Find the wizard in the current dialog, if there is any.
70      * Returns 0 if there is none.
71      **/
72     YQWizard *  findWizard() const;
73
74     /**
75      * Establish Qt signal / slot connections.
76      **/
77     void makeConnections();
78
79
80     // Data members
81
82
83
84     YQPkgSelList *              _selList;
85     YQPkgPatternList *          _patternList;
86     YQPkgSelDescriptionView *   _descriptionView;
87     YQWizard *                  _wizard;
88 };
89
90
91
92 #endif // YQPatternSelector_h