libyui-qt-pkg  2.45.15.2
YQSimplePatchSelector.h
1 /**************************************************************************
2 Copyright (C) 2000 - 2010 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: YQSimplePatchSelector.h
35 
36  Author: Stefan Hundhammer <sh@suse.de>
37 
38 /-*/
39 
40 
41 #ifndef YQSimplePatchSelector_h
42 #define YQSimplePatchSelector_h
43 
44 #include <QColor>
45 
46 #include "YQPackageSelectorBase.h"
47 
48 
49 class QPushButton;
50 
52 class YQPkgPatchList;
53 class YQWizard;
54 
55 
57 {
58  Q_OBJECT
59 
60 public:
61 
62  YQSimplePatchSelector( YWidget * parent, long modeFlags );
63 
64 
65 protected slots:
66 
67  /**
68  * User clicked on "Details..." - start the detailed package selection.
69  * This will return from UI::RunPkgSelection() with `details .
70  **/
72 
73  /**
74  * Debugging
75  **/
76  void debugTrace();
77 
78 
79 protected:
80 
81  // Layout methods - create and layout widgets
82 
83  void basicLayout();
84  void layoutButtons ( QWidget * parent );
85 
86  /**
87  * Find the wizard in the current dialog, if there is any.
88  * Returns 0 if there is none.
89  **/
90  YQWizard * findWizard() const;
91 
92  /**
93  * Establish Qt signal / slot connections.
94  **/
95  void makeConnections();
96 
97 
98  // Data members
99 
100  YQPkgPatchFilterView * _patchFilterView;
101  YQPkgPatchList * _patchList;
102  YQWizard * _wizard;
103 };
104 
105 
106 
107 #endif // YQSimplePatchSelector_h
void makeConnections()
Establish Qt signal / slot connections.
Display a list of zypp::Patch objects.
void detailedPackageSelection()
User clicked on "Details..." - start the detailed package selection.
Display a list of zypp::Patch objects and ( below ) details about the currently selected patch...
YQWizard * findWizard() const
Find the wizard in the current dialog, if there is any.
Abstract base class for package selectors.