]> cygwin.com Git - cygwin-apps/setup.git/blame - choose.h
Support xz and lzma decompression via liblzma
[cygwin-apps/setup.git] / choose.h
CommitLineData
8f53e82a
RC
1/*
2 * Copyright (c) 2000, Red Hat, Inc.
d55e14fe 3 * Copyright (c) 2003 Robert Collins <rbtcollins@hotmail.com>
8f53e82a
RC
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
c93bc6d0
MB
17#ifndef SETUP_CHOOSE_H
18#define SETUP_CHOOSE_H
8f53e82a 19
ab57ceaa 20#include "proppage.h"
12f8ac69 21#include "package_meta.h"
724c2956 22#include "PickView.h"
ab57ceaa 23
8f53e82a 24
ab57ceaa
RC
25class ChooserPage:public PropertyPage
26{
27public:
00fa5f6c 28 ChooserPage ();
ca2b7505 29 ~ChooserPage ();
ab57ceaa 30
f6a81f69 31 virtual bool OnMessageCmd (int id, HWND hwndctl, UINT code);
82306ac2
BD
32 virtual BOOL CALLBACK OnMouseWheel (UINT message, WPARAM wParam,
33 LPARAM lParam);
ab57ceaa
RC
34
35 bool Create ();
f6a81f69
RC
36 virtual void OnInit ();
37 virtual long OnNext ();
38 virtual long OnBack ();
52620058 39 virtual void OnActivate ();
7a4e611a 40 virtual long OnUnattended ();
00fa5f6c
CF
41
42 static void SetHwndDialog (HWND h)
43 {
44 ins_dialog = h;
45 }
da60e4b2 46private:
bc16bb7d
RC
47 void createListview ();
48 RECT getDefaultListViewSize();
cda26207 49 void getParentRect (HWND parent, HWND child, RECT * r);
724c2956 50 void keepClicked();
97b50ad7 51 void changeTrust(trusts aTrust);
d55e14fe
RC
52 void logOnePackageResult(packagemeta const *aPkg);
53 void logResults();
edc3c6fc 54 void setPrompt(char const *aPrompt);
693916f8 55 PickView *chooser;
00fa5f6c
CF
56
57 static HWND ins_dialog;
58 bool cmd_show_set;
ca2b7505
CF
59 bool saved_geom;
60 bool saw_geom_change;
61 WINDOWPLACEMENT window_placement;
62 WINDOWPLACEMENT pre_chooser_placement;
63 union writer
64 {
65 WINDOWPLACEMENT wp;
66 UINT wpi[sizeof (WINDOWPLACEMENT) / sizeof (UINT)];
67 };
68 void PlaceDialog (bool);
ab57ceaa 69};
69711722 70
c93bc6d0 71#endif /* SETUP_CHOOSE_H */
This page took 0.049804 seconds and 5 git commands to generate.