]> icculus.org git repositories - duncan/yast2-qt4.git/blob - src/pkg/YQSimplePatchSelector.h
picking up branches/tmp/sh/qt4-port/, merging it with trunk
[duncan/yast2-qt4.git] / src / pkg / YQSimplePatchSelector.h
1 /*---------------------------------------------------------------------\
2 |                                                                      |
3 |                      __   __    ____ _____ ____                      |
4 |                      \ \ / /_ _/ ___|_   _|___ \                     |
5 |                       \ V / _` \___ \ | |   __) |                    |
6 |                        | | (_| |___) || |  / __/                     |
7 |                        |_|\__,_|____/ |_| |_____|                    |
8 |                                                                      |
9 |                               core system                            |
10 |                                                        (C) SuSE GmbH |
11 \----------------------------------------------------------------------/
12
13   File:       YQSimplePatchSelector.h
14
15   Author:     Stefan Hundhammer <sh@suse.de>
16
17 /-*/
18
19
20 #ifndef YQSimplePatchSelector_h
21 #define YQSimplePatchSelector_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 YQPkgPatchFilterView;
33 class YQPkgPatchList;
34 class YQWizard;
35
36
37 class YQSimplePatchSelector : public YQPackageSelectorBase
38 {
39     Q_OBJECT
40
41 public:
42
43     YQSimplePatchSelector( 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     void        layoutButtons   ( QWidget * parent );
66
67     /**
68      * Find the wizard in the current dialog, if there is any.
69      * Returns 0 if there is none.
70      **/
71     YQWizard *  findWizard() const;
72
73     /**
74      * Establish Qt signal / slot connections.
75      **/
76     void makeConnections();
77
78
79     // Data members
80
81     YQPkgPatchFilterView *      _patchFilterView;
82     YQPkgPatchList *            _patchList;
83     YQWizard *                  _wizard;
84 };
85
86
87
88 #endif // YQSimplePatchSelector_h