root/branches/3.00/src/choose.h

Revision 644, 1.5 kB (checked in by fujii, 3 years ago)

Add new netinstall source.

Line 
1 /*
2  * Copyright (c) 2000, Red Hat, Inc.
3  * Copyright (c) 2003 Robert Collins <rbtcollins@hotmail.com>
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  *     A copy of the GNU General Public License can be found at
11  *     http://www.gnu.org/
12  *
13  * Written by Robert Collins <rbtcollins@hotmail.com>
14  *
15  */
16
17 #ifndef SETUP_CHOOSE_H
18 #define SETUP_CHOOSE_H
19
20 #include "proppage.h"
21 #include "package_meta.h"
22 #include "PickView.h"
23
24
25 class ChooserPage:public PropertyPage
26 {
27 public:
28   ChooserPage ();
29   virtual ~ ChooserPage ()
30   {
31   };
32
33   virtual bool OnMessageCmd (int id, HWND hwndctl, UINT code);
34
35   bool Create ();
36   virtual void OnInit ();
37   virtual long OnNext ();
38   virtual long OnBack ();
39   virtual void OnActivate ();
40   virtual long OnUnattended ()
41   {
42     return OnNext ();
43   };
44   private:
45   void createListview ();
46   RECT getDefaultListViewSize();
47   void getParentRect (HWND parent, HWND child, RECT * r);
48   void keepClicked();
49   void logOnePackageResult(packagemeta const *aPkg);
50   void logResults();
51   void setPrompt(char const *aPrompt);
52   template<class C> bool ifChecked(int const &id, void (C::*fn)()) {
53      if (IsButtonChecked (id)) {
54        (this->*fn)();
55        return true;
56      }
57     else
58       return false;
59   }
60   template <trusts aTrust> void changeTrust();
61   PickView *chooser;
62 };
63
64 #endif /* SETUP_CHOOSE_H */
Note: See TracBrowser for help on using the browser.