2 * Copyright (c) 2000, Red Hat, Inc.
3 * Copyright (c) 2003 Robert Collins <rbtcollins@hotmail.com>
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.
10 * A copy of the GNU General Public License can be found at
13 * Written by Robert Collins <rbtcollins@hotmail.com>
17 #ifndef SETUP_CHOOSE_H
18 #define SETUP_CHOOSE_H
21 #include "package_meta.h"
25 class ChooserPage
:public PropertyPage
31 virtual bool OnMessageCmd (int id
, HWND hwndctl
, UINT code
);
32 virtual BOOL CALLBACK
OnMouseWheel (UINT message
, WPARAM wParam
,
36 virtual void OnInit ();
37 virtual long OnNext ();
38 virtual long OnBack ();
39 virtual void OnActivate ();
40 virtual long OnUnattended ();
42 static void SetHwndDialog (HWND h
)
47 void createListview ();
48 RECT
getDefaultListViewSize();
49 void getParentRect (HWND parent
, HWND child
, RECT
* r
);
51 void changeTrust(trusts aTrust
);
52 void logOnePackageResult(packagemeta
const *aPkg
);
54 void setPrompt(char const *aPrompt
);
57 static HWND ins_dialog
;
61 WINDOWPLACEMENT window_placement
;
62 WINDOWPLACEMENT pre_chooser_placement
;
66 UINT wpi
[sizeof (WINDOWPLACEMENT
) / sizeof (UINT
)];
68 void PlaceDialog (bool);
71 #endif /* SETUP_CHOOSE_H */