libyui-ncurses-pkg
NCPackageSelectorStart.h
1 /****************************************************************************
2 |
3 | Copyright (c) [2002-2011] Novell, Inc.
4 | All Rights Reserved.
5 |
6 | This program is free software; you can redistribute it and/or
7 | modify it under the terms of version 2 of the GNU General Public License as
8 | published by the Free Software Foundation.
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
16 | along with this program; if not, contact Novell, Inc.
17 |
18 | To contact Novell about this file by physical or electronic mail,
19 | you may find current contact information at www.novell.com
20 |
21 |***************************************************************************/
22 
23 
24 /*---------------------------------------------------------------------\
25 | |
26 | __ __ ____ _____ ____ |
27 | \ \ / /_ _/ ___|_ _|___ \ |
28 | \ V / _` \___ \ | | __) | |
29 | | | (_| |___) || | / __/ |
30 | |_|\__,_|____/ |_| |_____| |
31 | |
32 | core system |
33 | (C) SuSE GmbH |
34 \----------------------------------------------------------------------/
35 
36  File: NCPackageSelectorStart.h
37 
38  Author: Gabriele Strattner <gs@suse.de>
39 
40 /-*/
41 #ifndef NCPackageSelectorStart_h
42 #define NCPackageSelectorStart_h
43 
44 #include <iosfwd>
45 
46 #include <yui/YPackageSelector.h>
47 #include <yui/YLayoutBox.h>
48 
49 #include <yui/ncurses/YNCursesUI.h>
50 #include <yui/ncurses/NCLayoutBox.h>
51 #include <yui/ncurses/NCPopupTable.h>
52 
53 #include "NCPackageSelector.h"
54 
55 
56 class NCPkgTable;
57 class NCPackageSelector;
58 class NCPushButton;
59 
63 class NCPackageSelectorStart : public NCLayoutBox
64 {
65 
66  friend std::ostream & operator<<( std::ostream & STREAM, const NCPackageSelectorStart & OBJ );
67 
68  NCPackageSelectorStart & operator=( const NCPackageSelectorStart & );
70 
71  private:
72 
73  NCPackageSelector *packager; // packager object contains the data and handles events
74 
75  protected:
76 
77  virtual const char * location() const
78  {
79  return primary() == YD_HORIZ ? "NC(H)PackageSelectorStart" : "NC(V)PackageSelectorStart";
80  }
81 
82  public:
83 
88  NCPackageSelectorStart( YWidget * parent,
89  long modeFlags,
90  YUIDimension dimension );
91 
95  virtual ~NCPackageSelectorStart();
96 
97  virtual int preferredWidth() { return NCLayoutBox::preferredWidth(); }
98  virtual int preferredHeight() { return NCLayoutBox::preferredHeight(); }
99 
105  virtual void setSize( int newWidth, int newHeight );
106 
112  void showDefaultList();
113 
120  bool handleEvent( const NCursesEvent& event );
121 
122 };
123 
125 
126 #endif // NCPackageSelectorStart_h
Definition: NCPkgTable.h:232
virtual void setSize(int newWidth, int newHeight)
Definition: NCPackageSelectorStart.cc:129
virtual ~NCPackageSelectorStart()
Definition: NCPackageSelectorStart.cc:113
bool handleEvent(const NCursesEvent &event)
Definition: NCPackageSelectorStart.cc:177
void showDefaultList()
Definition: NCPackageSelectorStart.cc:144
the package selector widget
Definition: NCPackageSelectorStart.h:63
Definition: NCPackageSelector.h:109