libyui-ncurses-pkg
Loading...
Searching...
No Matches
NCPackageSelectorStart.h
1/*
2 Copyright (c) [2002-2011] Novell, Inc.
3 Copyright (c) 2021 SUSE LLC
4
5 This library is free software; you can redistribute it and/or modify
6 it under the terms of the GNU Lesser General Public License as
7 published by the Free Software Foundation; either version 2.1 of the
8 License, or (at your option) version 3.0 of the License. This library
9 is distributed in the hope that it will be useful, but WITHOUT ANY
10 WARRANTY; without even the implied warranty of MERCHANTABILITY or
11 FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public
12 License for more details. You should have received a copy of the GNU
13 Lesser General Public License along with this library; if not, write
14 to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
15 Floor, Boston, MA 02110-1301 USA
16
17 File: NCPackageSelectorStart.h
18
19 Author: Gabriele Strattner <gs@suse.de>
20
21*/
22
23
24#ifndef NCPackageSelectorStart_h
25#define NCPackageSelectorStart_h
26
27#include <iosfwd>
28
29#include <yui/YPackageSelector.h>
30#include <yui/YLayoutBox.h>
31
32#include <yui/ncurses/YNCursesUI.h>
33#include <yui/ncurses/NCLayoutBox.h>
34#include <yui/ncurses/NCPopupTable.h>
35
36#include "NCPackageSelector.h"
37
38
39class NCPkgTable;
41class NCPushButton;
42
46class NCPackageSelectorStart : public NCLayoutBox
47{
48
49 friend std::ostream & operator<<( std::ostream & STREAM, const NCPackageSelectorStart & OBJ );
50
53
54 private:
55
56 NCPackageSelector *packager; // packager object contains the data and handles events
57
58 protected:
59
60 virtual const char * location() const
61 {
62 return primary() == YD_HORIZ ? "NC(H)PackageSelectorStart" : "NC(V)PackageSelectorStart";
63 }
64
65 public:
66
71 NCPackageSelectorStart( YWidget * parent,
72 long modeFlags,
73 YUIDimension dimension );
74
79
80 virtual int preferredWidth() { return NCLayoutBox::preferredWidth(); }
81 virtual int preferredHeight() { return NCLayoutBox::preferredHeight(); }
82
88 virtual void setSize( int newWidth, int newHeight );
89
95 void showDefaultList();
96
103 bool handleEvent( const NCursesEvent& event );
104
105};
106
108
109#endif // NCPackageSelectorStart_h
the package selector widget
Definition NCPackageSelectorStart.h:47
virtual void setSize(int newWidth, int newHeight)
Definition NCPackageSelectorStart.cc:110
void showDefaultList()
Definition NCPackageSelectorStart.cc:125
bool handleEvent(const NCursesEvent &event)
Definition NCPackageSelectorStart.cc:158
virtual ~NCPackageSelectorStart()
Definition NCPackageSelectorStart.cc:94
Definition NCPackageSelector.h:105
Definition NCPkgTable.h:215