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