]> icculus.org git repositories - duncan/yast2-qt4.git/blob - src/pkg/YQPkgProductDialog.h
picking up branches/tmp/sh/qt4-port/, merging it with trunk
[duncan/yast2-qt4.git] / src / pkg / YQPkgProductDialog.h
1 /*---------------------------------------------------------------------\
2 |                                                                      |
3 |                      __   __    ____ _____ ____                      |
4 |                      \ \ / /_ _/ ___|_   _|___ \                     |
5 |                       \ V / _` \___ \ | |   __) |                    |
6 |                        | | (_| |___) || |  / __/                     |
7 |                        |_|\__,_|____/ |_| |_____|                    |
8 |                                                                      |
9 |                               core system                            |
10 |                                                        (C) SuSE GmbH |
11 \----------------------------------------------------------------------/
12
13   File:       YQPkgProductDialog.h
14
15   Author:     Stefan Hundhammer <sh@suse.de>
16
17 /-*/
18
19
20 #ifndef YQPkgProductDialog_h
21 #define YQPkgProductDialog_h
22
23 #include <qdialog.h>
24
25
26 class QTabWidget;
27 class YQPkgProductList;
28 class YQPkgDependenciesView;
29
30
31 /**
32  * Products list with dependencies details view
33  **/
34 class YQPkgProductDialog : public QDialog
35 {
36     Q_OBJECT
37
38 public:
39
40     /**
41      * Static convenience method: Post a dialog with all products
42      **/
43     static void showProductDialog();
44
45     /**
46      * Returns the preferred size.
47      *
48      * Reimplemented from QWidget to limit the dialog to the screen dimensions.
49      **/
50     virtual QSize sizeHint () const;
51
52     /**
53      * Delayed initialization after the dialog is fully created.
54      *
55      * Reimplemented from QWidget.
56      **/
57     virtual void polish();
58
59
60 protected:
61
62     /**
63      * Constructor: Creates a description dialog for all packages that match 'pkgName'.
64      **/
65     YQPkgProductDialog( QWidget * parent );
66
67
68     // Data members
69
70     YQPkgProductList *          _productList;
71     QTabWidget *                _detailsViews;
72     YQPkgDependenciesView *         _dependenciesView;
73 };
74
75
76 #endif // ifndef YQPkgProductDialog_h