]> icculus.org git repositories - duncan/yast2-qt4.git/blob - src/pkg/YQSimplePatchSelector.h
misc compile
[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 <QColor>
24 #include <ycp/YCPString.h>
25
26 #include "YQPackageSelectorBase.h"
27
28
29 class QPushButton;
30
31 class YQPkgPatchFilterView;
32 class YQPkgPatchList;
33 class YQWizard;
34
35
36 class YQSimplePatchSelector : public YQPackageSelectorBase
37 {
38     Q_OBJECT
39
40 public:
41
42     YQSimplePatchSelector( 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     void        layoutButtons   ( QWidget * parent );
65
66     /**
67      * Find the wizard in the current dialog, if there is any.
68      * Returns 0 if there is none.
69      **/
70     YQWizard *  findWizard() const;
71
72     /**
73      * Establish Qt signal / slot connections.
74      **/
75     void makeConnections();
76
77
78     // Data members
79
80     YQPkgPatchFilterView *      _patchFilterView;
81     YQPkgPatchList *            _patchList;
82     YQWizard *                  _wizard;
83 };
84
85
86
87 #endif // YQSimplePatchSelector_h