]> icculus.org git repositories - duncan/yast2-qt4.git/blob - src/pkg/YQPkgPatchFilterView.h
picking up branches/tmp/sh/qt4-port/, merging it with trunk
[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 <q3vbox.h>
26 //Added by qt3to4:
27 #include <qlabel.h>
28
29
30 class YQPkgPatchList;
31 class YQPkgDescriptionView;
32 class QComboBox;
33 class QLabel;
34 class QSplitter;
35 class QTabWidget;
36
37
38 /**
39  * @short Display a list of zypp::Patch objects and ( below ) details about the
40  * currently selected patch.
41  **/
42 class YQPkgPatchFilterView : public Q3VBox
43 {
44     Q_OBJECT
45
46 public:
47
48     /**
49      * Constructor
50      **/
51     YQPkgPatchFilterView( QWidget * parent );
52
53     /**
54      * Destructor
55      **/
56     virtual ~YQPkgPatchFilterView();
57
58
59     /**
60      * Returns this view's selections list.
61      **/
62     YQPkgPatchList * patchList() const { return _patchList; }
63
64     
65 public slots:
66
67     /**
68      * Update the "total download size" field.
69      **/
70     void updateTotalDownloadSize();
71
72     
73 protected slots:
74
75     /**
76      * Fill the patch list with regard to the _patchCategory
77      * combo box.
78      **/
79     void fillPatchList();
80
81
82 protected:
83
84
85     // Data members
86
87     QSplitter *                 _splitter;
88     YQPkgPatchList *            _patchList;
89     QComboBox *                 _patchFilter;
90     QTabWidget *                _detailsViews;
91     YQPkgDescriptionView *      _descriptionView;
92     QLabel *                    _totalDownloadSize;
93     
94     YQPkgSelMapper              _selMapper;
95 };
96
97
98
99 #endif // ifndef YQPkgPatchFilterView_h