]> cygwin.com Git - cygwin-apps/setup.git/blame - choose.h
Adjustment to dialog layout for translation
[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"
ce9f6dd0 23#include "ListView.h"
ab57ceaa 24
1c1913d1
RR
25#define DEFAULT_TIMER_ID 5 //value doesn't matter, as long as it's unique
26#define SEARCH_TIMER_DELAY 500 //in milliseconds
27
a667a8b2 28extern bool hasManualSelections;
8f53e82a 29
ab57ceaa
RC
30class ChooserPage:public PropertyPage
31{
32public:
00fa5f6c 33 ChooserPage ();
ca2b7505 34 ~ChooserPage ();
ab57ceaa 35
f6a81f69 36 virtual bool OnMessageCmd (int id, HWND hwndctl, UINT code);
ce9f6dd0 37 virtual bool OnNotify (NMHDR *pNmHdr, LRESULT *pResult);
1c1913d1
RR
38 virtual INT_PTR CALLBACK OnTimerMessage (UINT message, WPARAM wParam,
39 LPARAM lparam);
ab57ceaa
RC
40
41 bool Create ();
f6a81f69
RC
42 virtual void OnInit ();
43 virtual long OnNext ();
44 virtual long OnBack ();
52620058 45 virtual void OnActivate ();
7a4e611a 46 virtual long OnUnattended ();
00fa5f6c
CF
47
48 static void SetHwndDialog (HWND h)
49 {
50 ins_dialog = h;
51 }
da60e4b2 52private:
bc16bb7d 53 void createListview ();
cda26207 54 void getParentRect (HWND parent, HWND child, RECT * r);
724c2956 55 void keepClicked();
a59178eb 56 void changeTrust(int button, bool test, bool initial);
d55e14fe
RC
57 void logOnePackageResult(packagemeta const *aPkg);
58 void logResults();
1c1913d1 59 void PlaceDialog (bool);
0c539f7f
JT
60 void applyCommandLinePackageSelection();
61 void initialUpdateState();
00fa5f6c 62
1c1913d1 63 PickView *chooser;
ce9f6dd0 64 ListView *listview;
00fa5f6c
CF
65 static HWND ins_dialog;
66 bool cmd_show_set;
ca2b7505
CF
67 bool saved_geom;
68 bool saw_geom_change;
69 WINDOWPLACEMENT window_placement;
70 WINDOWPLACEMENT pre_chooser_placement;
1c1913d1 71 UINT_PTR timer_id;
ca2b7505
CF
72 union writer
73 {
74 WINDOWPLACEMENT wp;
75 UINT wpi[sizeof (WINDOWPLACEMENT) / sizeof (UINT)];
76 };
d78ce5e2 77 int update_mode_id;
0c539f7f 78 bool activated;
ab57ceaa 79};
69711722 80
c93bc6d0 81#endif /* SETUP_CHOOSE_H */
This page took 0.130017 seconds and 5 git commands to generate.