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