]> icculus.org git repositories - duncan/yast2-qt4.git/blob - src/pkg/YQPkgPatchFilterView.h
- Don't create layouts with parent. Qt 4.x automatically reparents
[duncan/yast2-qt4.git] / src / pkg / YQPkgPatchFilterView.h
1 /*---------------------------------------------------------------------\
2 |                                                                      |
3 |                      __   __    ____ _____ ____                      |
4 |                      \ \ / /_ _/ ___|_   _|___ \                     |
5 |                       \ V / _` \___ \ | |   __) |                    |
6 |                        | | (_| |___) || |  / __/                     |
7 |                        |_|\__,_|____/ |_| |_____|                    |
8 |                                                                      |
9 |                               core system                            |
10 |                                                        (C) SuSE GmbH |
11 \----------------------------------------------------------------------/
12
13   File:       YQPkgPatchFilterView.h
14
15   Author:     Stefan Hundhammer <sh@suse.de>
16
17 /-*/
18
19
20 #ifndef YQPkgPatchFilterView_h
21 #define YQPkgPatchFilterView_h
22
23 #include "YQZypp.h"
24 #include "YQPkgSelMapper.h"
25 #include <QLabel>
26
27
28 class YQPkgPatchList;
29 class YQPkgDescriptionView;
30 class QComboBox;
31 class QLabel;
32 class QSplitter;
33 class QTabWidget;
34
35
36 /**
37  * @short Display a list of zypp::Patch objects and ( below ) details about the
38  * currently selected patch.
39  **/
40 class YQPkgPatchFilterView : public QWidget
41 {
42     Q_OBJECT
43
44 public:
45
46     /**
47      * Constructor
48      **/
49     YQPkgPatchFilterView( QWidget * parent );
50
51     /**
52      * Destructor
53      **/
54     virtual ~YQPkgPatchFilterView();
55
56
57     /**
58      * Returns this view's selections list.
59      **/
60     YQPkgPatchList * patchList() const { return _patchList; }
61
62     
63 public slots:
64
65     /**
66      * Update the "total download size" field.
67      **/
68     void updateTotalDownloadSize();
69
70     
71 protected slots:
72
73     /**
74      * Fill the patch list with regard to the _patchCategory
75      * combo box.
76      **/
77     void fillPatchList();
78
79
80 protected:
81
82
83     // Data members
84
85     QSplitter *                 _splitter;
86     YQPkgPatchList *            _patchList;
87     QComboBox *                 _patchFilter;
88     QTabWidget *                _detailsViews;
89     YQPkgDescriptionView *      _descriptionView;
90     QLabel *                    _totalDownloadSize;
91     
92     YQPkgSelMapper              _selMapper;
93 };
94
95
96
97 #endif // ifndef YQPkgPatchFilterView_h