libyui-qt-pkg  2.42.13
 All Classes Functions Variables Enumerations
YQPkgHistoryDialog.h
1 /**************************************************************************
2 Copyright (C) 2000 - 2011 Novell, Inc.
3 All Rights Reserved.
4 
5 This program is free software; you can redistribute it and/or modify
6 it under the terms of the GNU General Public License as published by
7 the Free Software Foundation; either version 2 of the License, or
8 (at your option) any later version.
9 
10 This program is distributed in the hope that it will be useful,
11 but WITHOUT ANY WARRANTY; without even the implied warranty of
12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 GNU General Public License for more details.
14 
15 You should have received a copy of the GNU General Public License along
16 with this program; if not, write to the Free Software Foundation, Inc.,
17 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
18 
19 **************************************************************************/
20 
21 
22 /*---------------------------------------------------------------------\
23 | |
24 | __ __ ____ _____ ____ |
25 | \ \ / /_ _/ ___|_ _|___ \ |
26 | \ V / _` \___ \ | | __) | |
27 | | | (_| |___) || | / __/ |
28 | |_|\__,_|____/ |_| |_____| |
29 | |
30 | core system |
31 | (C) SuSE GmbH |
32 \----------------------------------------------------------------------/
33 
34  File: YQPkgHistoryDialog.h
35 
36  Author: Stanislav Visnovsky <visnov@suse.com>
37 
38 /-*/
39 
40 
41 #ifndef YQPkgHistoryDialog_h
42 #define YQPkgHistoryDialog_h
43 
44 #include <qdialog.h>
45 
46 
47 class YQPkgList;
48 class YQPkgHistoryView;
49 class QTreeWidget;
50 
51 
52 /**
53  * Pkg status and History as a standalone popup dialog.
54  **/
55 class YQPkgHistoryDialog : public QDialog
56 {
57  Q_OBJECT
58 
59 public:
60 
61  /**
62  * Static convenience method: Post a History dialog for pkg 'pkgName'.
63  **/
64  static void showHistoryDialog();
65 
66  /**
67  * Returns the preferred size.
68  *
69  * Reimplemented from QWidget to limit the dialog to the screen dimensions.
70  **/
71  virtual QSize sizeHint () const;
72 
73 
74 protected:
75 
76  void initialize ();
77 
78  /**
79  * Constructor: Creates a History dialog for all packages that match 'pkgName'.
80  **/
81  YQPkgHistoryDialog( QWidget * parent );
82 
83  // Data members
84 
85  QTreeWidget * _dates;
86  QTreeWidget * _actions;
87 
88 public slots:
89  void moveToDate ();
90  void moveToAction ();
91 
92 };
93 
94 
95 #endif // ifndef YQPkgHistoryDialog_h
static void showHistoryDialog()
virtual QSize sizeHint() const
Display a list of zypp::Package objects.
Definition: YQPkgList.h:54
YQPkgHistoryDialog(QWidget *parent)