]> icculus.org git repositories - duncan/yast2-qt4.git/blob - src/pkg/YQPatternSelector.h
misc compile
[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 #include <ycp/YCPString.h>
25
26 #include "YQPackageSelectorBase.h"
27
28
29 class QPushButton;
30
31 class YQPkgSelDescriptionView;
32 class YQPkgSelList;
33 class YQPkgPatternList;
34 class YQWizard;
35
36
37 class YQPatternSelector: public YQPackageSelectorBase
38 {
39     Q_OBJECT
40
41 public:
42
43     YQPatternSelector( YWidget * parent, long modeFlags );
44
45
46 protected slots:
47
48     /**
49      * User clicked on "Details..." - start the detailed package selection.
50      * This will return from UI::RunPkgSelection() with `details .
51      **/
52     void detailedPackageSelection();
53
54     /**
55      * Debugging
56      **/
57     void debugTrace();
58
59
60 protected:
61
62     // Layout methods - create and layout widgets
63
64     void        basicLayout();
65     QWidget *   layoutLeftPane  ( QWidget * parent );
66     QWidget *   layoutRightPane ( QWidget * parent );
67     void        layoutButtons   ( QWidget * parent );
68
69     /**
70      * Find the wizard in the current dialog, if there is any.
71      * Returns 0 if there is none.
72      **/
73     YQWizard *  findWizard() const;
74
75     /**
76      * Establish Qt signal / slot connections.
77      **/
78     void makeConnections();
79
80
81     // Data members
82
83
84
85     YQPkgSelList *              _selList;
86     YQPkgPatternList *          _patternList;
87     YQPkgSelDescriptionView *   _descriptionView;
88     YQWizard *                  _wizard;
89 };
90
91
92
93 #endif // YQPatternSelector_h