libyui-qt-pkg  2.45.15.2
YQPatternSelector.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 | \ \ / /_ _/ ___|_ _|___ \ |
27 | \ V / _` \___ \ | | __) | |
28 | | | (_| |___) || | / __/ |
29 | |_|\__,_|____/ |_| |_____| |
30 | |
31 | core system |
32 | (C) SuSE GmbH |
33 \----------------------------------------------------------------------/
34 
35  File: YQPatternSelector.h
36 
37  Author: Stefan Hundhammer <sh@suse.de>
38 
39 /-*/
40 
41 
42 #ifndef YQPatternSelector_h
43 #define YQPatternSelector_h
44 
45 #include <QColor>
46 
47 #include "YQPackageSelectorBase.h"
48 
49 
50 class QPushButton;
51 
53 class YQPkgPatternList;
54 class YQWizard;
55 
56 
58 {
59  Q_OBJECT
60 
61 public:
62 
63  YQPatternSelector( YWidget * parent, long modeFlags );
64 
65 
66 protected slots:
67 
68  /**
69  * User clicked on "Details..." - start the detailed package selection.
70  * This will return from UI::RunPkgSelection() with `details .
71  **/
73 
74  /**
75  * Debugging
76  **/
77  void debugTrace();
78 
79 
80 protected:
81 
82  // Layout methods - create and layout widgets
83 
84  void basicLayout();
85  QWidget * layoutLeftPane ( QWidget * parent );
86  QWidget * layoutRightPane ( QWidget * parent );
87  void layoutButtons ( QWidget * parent );
88 
89  /**
90  * Find the wizard in the current dialog, if there is any.
91  * Returns 0 if there is none.
92  **/
93  YQWizard * findWizard() const;
94 
95  /**
96  * Establish Qt signal / slot connections.
97  **/
98  void makeConnections();
99 
100 
101  // Data members
102 
103  YQPkgPatternList * _patternList;
104  YQPkgSelDescriptionView * _descriptionView;
105  YQWizard * _wizard;
106 };
107 
108 
109 
110 #endif // YQPatternSelector_h
void debugTrace()
Debugging.
Display a list of zypp::Pattern objects.
void makeConnections()
Establish Qt signal / slot connections.
void detailedPackageSelection()
User clicked on "Details..." - start the detailed package selection.
YQWizard * findWizard() const
Find the wizard in the current dialog, if there is any.
Abstract base class for package selectors.
Display the description of a zypp::ResObject derived object along with its name and summary...