]> cygwin.com Git - cygwin-apps/setup.git/blob - choose.h
Make PrereqChecker::setTrust() a static method
[cygwin-apps/setup.git] / choose.h
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 #define DEFAULT_TIMER_ID 5 //value doesn't matter, as long as it's unique
25 #define SEARCH_TIMER_DELAY 500 //in milliseconds
26
27 extern bool hasManualSelections;
28
29 class ChooserPage:public PropertyPage
30 {
31 public:
32 ChooserPage ();
33 ~ChooserPage ();
34
35 virtual bool OnMessageCmd (int id, HWND hwndctl, UINT code);
36 virtual INT_PTR CALLBACK OnMouseWheel (UINT message, WPARAM wParam,
37 LPARAM lParam);
38 virtual INT_PTR CALLBACK OnTimerMessage (UINT message, WPARAM wParam,
39 LPARAM lparam);
40
41 bool Create ();
42 virtual void OnInit ();
43 virtual long OnNext ();
44 virtual long OnBack ();
45 virtual void OnActivate ();
46 virtual long OnUnattended ();
47
48 static void SetHwndDialog (HWND h)
49 {
50 ins_dialog = h;
51 }
52 private:
53 void createListview ();
54 RECT getDefaultListViewSize();
55 void getParentRect (HWND parent, HWND child, RECT * r);
56 void keepClicked();
57 void changeTrust(trusts aTrust);
58 void logOnePackageResult(packagemeta const *aPkg);
59 void logResults();
60 void setPrompt(char const *aPrompt);
61 void PlaceDialog (bool);
62
63 PickView *chooser;
64 static HWND ins_dialog;
65 bool cmd_show_set;
66 bool saved_geom;
67 bool saw_geom_change;
68 WINDOWPLACEMENT window_placement;
69 WINDOWPLACEMENT pre_chooser_placement;
70 UINT_PTR timer_id;
71 union writer
72 {
73 WINDOWPLACEMENT wp;
74 UINT wpi[sizeof (WINDOWPLACEMENT) / sizeof (UINT)];
75 };
76
77
78
79
80 };
81
82 #endif /* SETUP_CHOOSE_H */
This page took 0.039081 seconds and 5 git commands to generate.