2 * Copyright (c) 2010 Red Hat, Inc.
4 * This program is free software; you can redistribute it and/or modify
5 * it under the terms of the GNU General Public License as published by
6 * the Free Software Foundation; either version 2 of the License, or
7 * (at your option) any later version.
9 * A copy of the GNU General Public License can be found at
14 #include "postinstallresults.h"
17 // ---------------------------------------------------------------------------
18 // implements class PostInstallResultsPage
20 // postinstall errors page
21 // postinstall script running itself is part of the progress page
22 // ---------------------------------------------------------------------------
24 // Sizing information.
25 static ControlAdjuster::ControlInfo PostInstallResultsControlsInfo
[] = {
26 {IDC_POSTINSTALL_EDIT
, CP_STRETCH
, CP_STRETCH
},
30 PostInstallResultsPage::PostInstallResultsPage ()
32 sizeProcessor
.AddControlInfo (PostInstallResultsControlsInfo
);
36 PostInstallResultsPage::Create ()
38 return PropertyPage::Create (IDD_POSTINSTALL
);
42 PostInstallResultsPage::OnInit ()
44 // set the edit-area to a larger font
45 SetDlgItemFont(IDC_POSTINSTALL_EDIT
, "MS Shell Dlg", 10);
49 PostInstallResultsPage::OnActivate()
51 SetDlgItemText(GetHWND(), IDC_POSTINSTALL_EDIT
, _results
.c_str ());
55 PostInstallResultsPage::OnNext ()
61 PostInstallResultsPage::OnBack ()
67 PostInstallResultsPage::OnUnattended ()
69 // in unattended mode, we have logged the errors, so just carry on
70 // XXX: would be nice to set program exit status if errors occured...