2005-09-26 11:29:28 +00:00
|
|
|
// Berkeley Open Infrastructure for Network Computing
|
|
|
|
// http://boinc.berkeley.edu
|
|
|
|
// Copyright (C) 2005 University of California
|
|
|
|
//
|
|
|
|
// This is free software; you can redistribute it and/or
|
|
|
|
// modify it under the terms of the GNU Lesser General Public
|
|
|
|
// License as published by the Free Software Foundation;
|
|
|
|
// either version 2.1 of the License, or (at your option) any later version.
|
|
|
|
//
|
|
|
|
// This software is distributed in the hope that it will be useful,
|
|
|
|
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
|
|
|
|
// See the GNU Lesser General Public License for more details.
|
|
|
|
//
|
|
|
|
// To view the GNU Lesser General Public License visit
|
|
|
|
// http://www.gnu.org/copyleft/lesser.html
|
|
|
|
// or write to the Free Software Foundation, Inc.,
|
|
|
|
// 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
|
|
|
//
|
|
|
|
#ifndef _BOINCWIZARDS_H_
|
|
|
|
#define _BOINCWIZARDS_H_
|
|
|
|
|
|
|
|
// Wizard Identifiers
|
|
|
|
//
|
|
|
|
#define ID_ATTACHPROJECTWIZARD 10000
|
|
|
|
#define ID_ATTACHACCOUNTMANAGERWIZARD 10001
|
|
|
|
#define SYMBOL_CWIZARDATTACHPROJECT_IDNAME ID_ATTACHPROJECTWIZARD
|
|
|
|
#define SYMBOL_CWIZARDACCOUNTMANAGER_IDNAME ID_ATTACHACCOUNTMANAGERWIZARD
|
|
|
|
|
|
|
|
// Page Identifiers
|
|
|
|
//
|
|
|
|
|
|
|
|
// Generic Pages
|
|
|
|
#define ID_WELCOMEPAGE 10100
|
|
|
|
#define ID_ACCOUNTKEYPAGE 10101
|
|
|
|
#define ID_ACCOUNTINFOPAGE 10102
|
|
|
|
#define ID_COMPLETIONPAGE 10103
|
|
|
|
#define ID_COMPLETIONERRORPAGE 10104
|
|
|
|
#define ID_ERRNOTDETECTEDPAGE 10105
|
|
|
|
#define ID_ERRUNAVAILABLEPAGE 10106
|
|
|
|
#define ID_ERRALREADYATTACHEDPAGE 10107
|
|
|
|
#define ID_ERRNOINTERNETCONNECTIONPAGE 10108
|
|
|
|
#define ID_ERRNOTFOUNDPAGE 10109
|
|
|
|
#define ID_ERRALREADYEXISTSPAGE 10110
|
2005-11-29 07:06:49 +00:00
|
|
|
#define ID_ERRPROXYINFOPAGE 10111
|
|
|
|
#define ID_ERRPROXYPAGE 10112
|
2006-01-25 11:58:02 +00:00
|
|
|
#define ID_COMPLETIONUPDATEPAGE 10113
|
|
|
|
#define ID_COMPLETIONREMOVEPAGE 10114
|
2005-09-26 11:29:28 +00:00
|
|
|
|
|
|
|
// Attach to Project Wizard Pages
|
|
|
|
#define ID_PROJECTINFOPAGE 10200
|
|
|
|
#define ID_PROJECTPROPERTIESPAGE 10201
|
2005-09-28 11:59:34 +00:00
|
|
|
#define ID_PROJECTPROCESSINGPAGE 10202
|
2005-09-26 11:29:28 +00:00
|
|
|
|
|
|
|
// Account Manager Wizard Pages
|
|
|
|
#define ID_ACCOUNTMANAGERINFOPAGE 10300
|
|
|
|
#define ID_ACCOUNTMANAGERPROPERTIESPAGE 10301
|
|
|
|
#define ID_ACCOUNTMANAGERPROCESSINGPAGE 10302
|
2005-12-19 13:30:01 +00:00
|
|
|
#define ID_ACCOUNTMANAGERSTATUSPAGE 10303
|
2005-09-26 11:29:28 +00:00
|
|
|
|
|
|
|
|
|
|
|
// Control Identifiers
|
|
|
|
//
|
|
|
|
|
|
|
|
// Bitmap Progress Control
|
|
|
|
#define ID_PROGRESSCTRL 11000
|
|
|
|
|
|
|
|
// BOINC Hyperlink Control
|
|
|
|
#define ID_BOINCHYPERLINK 11001
|
|
|
|
|
2005-09-28 11:59:34 +00:00
|
|
|
// Completion Error Page Multiline Text Control
|
|
|
|
#define ID_TEXTCTRL 11002
|
|
|
|
|
2005-09-26 11:29:28 +00:00
|
|
|
// Debug Flag Controls
|
|
|
|
#define ID_ERRPROJECTPROPERTIES 11100
|
|
|
|
#define ID_ERRPROJECTCOMM 11101
|
|
|
|
#define ID_ERRPROJECTPROPERTIESURL 11102
|
|
|
|
#define ID_ERRACCOUNTCREATIONDISABLED 11103
|
|
|
|
#define ID_ERRCLIENTACCOUNTCREATIONDISABLED 11104
|
|
|
|
#define ID_ERRACCOUNTALREADYEXISTS 11105
|
|
|
|
#define ID_ERRPROJECTALREADYATTACHED 11106
|
|
|
|
#define ID_ERRPROJECTATTACHFAILURE 11107
|
|
|
|
#define ID_ERRGOOGLECOMM 11108
|
|
|
|
#define ID_ERRYAHOOCOMM 11109
|
|
|
|
#define ID_ERRNETDETECTION 11110
|
|
|
|
|
|
|
|
// Project Info/Account Manager Info Controls
|
|
|
|
#define ID_PROJECTURLSTATICCTRL 11200
|
|
|
|
#define ID_PROJECTURLCTRL 11201
|
|
|
|
|
|
|
|
// Account Key Controls
|
|
|
|
#define ID_ACCOUNTKEYSTATICCTRL 11300
|
|
|
|
#define ID_ACCOUNTKEYCTRL 11301
|
|
|
|
|
|
|
|
// Account Info Controls
|
|
|
|
#define ID_ACCOUNTCREATECTRL 11400
|
|
|
|
#define ID_ACCOUNTUSEEXISTINGCTRL 11401
|
|
|
|
#define ID_ACCOUNTEMAILADDRESSSTATICCTRL 11402
|
|
|
|
#define ID_ACCOUNTEMAILADDRESSCTRL 11403
|
|
|
|
#define ID_ACCOUNTPASSWORDSTATICCTRL 11404
|
|
|
|
#define ID_ACCOUNTPASSWORDCTRL 11405
|
|
|
|
#define ID_ACCOUNTCONFIRMPASSWORDSTATICCTRL 11406
|
|
|
|
#define ID_ACCOUNTCONFIRMPASSWORDCTRL 11407
|
2006-01-25 11:58:02 +00:00
|
|
|
#define ID_ACCOUNTREQUIREMENTSSTATICCTRL 11408
|
2005-09-26 11:29:28 +00:00
|
|
|
|
|
|
|
// Proxy Page Controls
|
|
|
|
#define ID_PROXYHTTPSERVERSTATICCTRL 11500
|
|
|
|
#define ID_PROXYHTTPSERVERCTRL 11501
|
|
|
|
#define ID_PROXYHTTPPORTSTATICCTRL 11502
|
|
|
|
#define ID_PROXYHTTPPORTCTRL 11503
|
|
|
|
#define ID_PROXYHTTPUSERNAMESTATICCTRL 11504
|
|
|
|
#define ID_PROXYHTTPUSERNAMECTRL 11505
|
|
|
|
#define ID_PROXYHTTPPASSWORDSTATICCTRL 11506
|
|
|
|
#define ID_PROXYHTTPPASSWORDCTRL 11507
|
|
|
|
#define ID_PROXYHTTPAUTODETECTCTRL 11508
|
|
|
|
#define ID_PROXYSOCKSSERVERSTATICCTRL 11509
|
|
|
|
#define ID_PROXYSOCKSSERVERCTRL 11510
|
|
|
|
#define ID_PROXYSOCKSPORTSTATICCTRL 11511
|
|
|
|
#define ID_PROXYSOCKSPORTCTRL 11512
|
|
|
|
#define ID_PROXYSOCKSUSERNAMESTATICCTRL 11513
|
|
|
|
#define ID_PROXYSOCKSUSERNAMECTRL 11514
|
|
|
|
#define ID_PROXYSOCKSPASSWORDSTATICCTRL 11515
|
|
|
|
#define ID_PROXYSOCKSPASSWORDCTRL 11516
|
|
|
|
|
2005-12-19 13:30:01 +00:00
|
|
|
// Account Manager Status Controls
|
|
|
|
#define ID_ACCTMANAGERNAMECTRL 11600
|
|
|
|
#define ID_ACCTMANAGERLINKCTRL 11601
|
|
|
|
#define ID_ACCTMANAGERUPDATECTRL 11602
|
|
|
|
#define ID_ACCTMANAGERREMOVECTRL 11603
|
|
|
|
|
2005-09-26 11:29:28 +00:00
|
|
|
|
|
|
|
// Forward declare the generic page classes
|
|
|
|
//
|
|
|
|
class CWelcomePage;
|
|
|
|
class CAccountKeyPage;
|
|
|
|
class CAccountInfoPage;
|
|
|
|
class CCompletionPage;
|
2006-01-25 11:58:02 +00:00
|
|
|
class CCompletionUpdatePage;
|
|
|
|
class CCompletionRemovePage;
|
2005-09-26 11:29:28 +00:00
|
|
|
class CCompletionErrorPage;
|
|
|
|
class CErrNotDetectedPage;
|
|
|
|
class CErrUnavailablePage;
|
|
|
|
class CErrAlreadyAttachedPage;
|
|
|
|
class CErrNoInternetConnectionPage;
|
|
|
|
class CErrNotFoundPage;
|
|
|
|
class CErrAlreadyExistsPage;
|
2005-11-29 07:06:49 +00:00
|
|
|
class CErrProxyInfoPage;
|
2005-09-26 11:29:28 +00:00
|
|
|
class CErrProxyPage;
|
|
|
|
|
|
|
|
|
2006-01-27 00:34:53 +00:00
|
|
|
// Forward declare special controls
|
|
|
|
//
|
|
|
|
class wxHyperLink;
|
|
|
|
|
|
|
|
|
2005-09-26 11:29:28 +00:00
|
|
|
// Diagnostics Tools
|
|
|
|
//
|
|
|
|
#define WIZDEBUG_ERRPROJECTPROPERTIES 0x00000001
|
|
|
|
#define WIZDEBUG_ERRPROJECTPROPERTIESURL 0x00000002
|
|
|
|
#define WIZDEBUG_ERRYAHOOCOMM 0x00000004
|
|
|
|
#define WIZDEBUG_ERRGOOGLECOMM 0x00000008
|
|
|
|
#define WIZDEBUG_ERRNETDETECTION 0x00000010
|
|
|
|
#define WIZDEBUG_ERRPROJECTCOMM 0x00000020
|
|
|
|
#define WIZDEBUG_ERRACCOUNTNOTFOUND 0x00000040
|
|
|
|
#define WIZDEBUG_ERRACCOUNTALREADYEXISTS 0x00000080
|
|
|
|
#define WIZDEBUG_ERRACCOUNTCREATIONDISABLED 0x00000100
|
|
|
|
#define WIZDEBUG_ERRCLIENTACCOUNTCREATIONDISABLED 0x00000200
|
|
|
|
#define WIZDEBUG_ERRPROJECTATTACH 0x00000400
|
|
|
|
#define WIZDEBUG_ERRPROJECTALREADYATTACHED 0x00000800
|
|
|
|
|
|
|
|
#define PROCESS_DEBUG_FLAG(ulFlags) \
|
|
|
|
((CBOINCBaseWizard*)GetParent())->SetDiagFlags(ulFlags)
|
|
|
|
|
|
|
|
#define CHECK_DEBUG_FLAG(id) \
|
|
|
|
((CBOINCBaseWizard*)GetParent())->IsDiagFlagsSet(id)
|
|
|
|
|
|
|
|
// Wizard Detection
|
|
|
|
//
|
|
|
|
#define IS_ATTACHTOPROJECTWIZARD() \
|
|
|
|
((CBOINCBaseWizard*)GetParent())->IsAttachToProjectWizard
|
|
|
|
|
2006-01-27 00:34:53 +00:00
|
|
|
#define IS_ACCOUNTMANAGERWIZARD() \
|
|
|
|
((CBOINCBaseWizard*)GetParent())->IsAccountManagerWizard
|
2006-01-25 11:58:02 +00:00
|
|
|
|
|
|
|
#define IS_ACCOUNTMANAGERUPDATEWIZARD() \
|
|
|
|
((CBOINCBaseWizard*)GetParent())->IsAccountManagerUpdateWizard
|
|
|
|
|
|
|
|
#define IS_ACCOUNTMANAGERREMOVEWIZARD() \
|
|
|
|
((CBOINCBaseWizard*)GetParent())->IsAccountManagerRemoveWizard
|
2005-09-26 11:29:28 +00:00
|
|
|
|
|
|
|
|
|
|
|
// Commonly defined macros
|
|
|
|
//
|
|
|
|
#define PAGE_TRANSITION_NEXT(id) \
|
|
|
|
((CBOINCBaseWizard*)GetParent())->PushPageTransition((wxWizardPageEx*)this, id)
|
|
|
|
|
|
|
|
#define PAGE_TRANSITION_BACK \
|
|
|
|
((CBOINCBaseWizard*)GetParent())->PopPageTransition()
|
|
|
|
|
|
|
|
#define PROCESS_CANCELEVENT(event) \
|
|
|
|
((CBOINCBaseWizard*)GetParent())->ProcessCancelEvent(event)
|
|
|
|
|
|
|
|
#define CHECK_CLOSINGINPROGRESS() \
|
|
|
|
((CBOINCBaseWizard*)GetParent())->IsCancelInProgress()
|
|
|
|
|
|
|
|
|
|
|
|
#endif // _BOINCWIZARDS_H_
|
|
|
|
|