2008-08-06 18:36:30 +00:00
|
|
|
// This file is part of BOINC.
|
2005-01-20 23:22:22 +00:00
|
|
|
// http://boinc.berkeley.edu
|
2016-12-02 12:08:43 +00:00
|
|
|
// Copyright (C) 2016 University of California
|
2004-05-17 22:15:10 +00:00
|
|
|
//
|
2008-08-06 18:36:30 +00:00
|
|
|
// BOINC 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 3 of the License, or (at your option) any later version.
|
2004-04-10 09:11:03 +00:00
|
|
|
//
|
2008-08-06 18:36:30 +00:00
|
|
|
// BOINC is distributed in the hope that it will be useful,
|
2005-01-20 23:22:22 +00:00
|
|
|
// 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.
|
2004-05-17 22:15:10 +00:00
|
|
|
//
|
2008-08-06 18:36:30 +00:00
|
|
|
// You should have received a copy of the GNU Lesser General Public License
|
|
|
|
// along with BOINC. If not, see <http://www.gnu.org/licenses/>.
|
2008-09-27 03:21:09 +00:00
|
|
|
//
|
|
|
|
|
|
|
|
///
|
|
|
|
/// @defgroup BOINCMgr BOINC Manager
|
|
|
|
/// The BOINC Manager
|
|
|
|
/// @{
|
2004-04-10 09:11:03 +00:00
|
|
|
|
2017-04-08 06:54:49 +00:00
|
|
|
#ifndef BOINC_BOINCGUIAPP_H
|
|
|
|
#define BOINC_BOINCGUIAPP_H
|
2004-04-11 04:37:10 +00:00
|
|
|
|
|
|
|
#if defined(__GNUG__) && !defined(__APPLE__)
|
|
|
|
#pragma interface "BOINCGUIApp.cpp"
|
|
|
|
#endif
|
|
|
|
|
- client: include precompiled header in rr_sim.cpp so memory
leak detection will work.
- MGR: Have the BaseFrame call a function to determine if the
selection list should be saved instead of traversing
the application pointer. Each view just overrides the function
returning a true/false value. We don't have to worry about null
pointers and the like.
- MGR: BOINCGUIApp should never need to know how either the views
work or the document. Move the code that determines which
RPCs should be fired into each of the views. Have the document
look for it there.
- MGR: Reduce duplicate code for hiding and showing an application
- MGR: Move some Windows and Mac specific code into functions
and streamline the application startup and shutdown rountines.
- MGR: Move the event processing that was in BOINCGUIApp into the
BaseFrame.
- MGR: General cleanup.
- MGR: Doxygen comments.
- MGR: Cleanup some warnings.
client/
rr_sim.cpp
clientgui/
AdvancedFrame.cpp, .h
AsyncRPC.cpp, .h
BOINCBaseFrame.cpp, .h
BOINCBaseView.cpp, .h
BOINCClientManager.cpp
BOINCGUIApp.cpp, .h
BOINCTaskBar.cpp
MainDocument.cpp, .h
sg_BoincSimpleGUI.cpp, .h
ViewProjects.cpp, .h
ViewTransfers.cpp, .h
ViewWork.cpp, .h
WelcomePage.cpp
win_build/installerv2/
BOINC.ism
BOINCx64.ism
win_build/
sim.vcproj
svn path=/trunk/boinc/; revision=16357
2008-10-29 22:44:55 +00:00
|
|
|
///
|
|
|
|
/// Which view is on display
|
|
|
|
///
|
2006-06-23 08:20:08 +00:00
|
|
|
#define BOINC_ADVANCEDGUI 1
|
|
|
|
#define BOINC_SIMPLEGUI 2
|
|
|
|
|
2005-12-28 12:33:18 +00:00
|
|
|
|
2006-10-20 15:00:14 +00:00
|
|
|
class wxLogBOINC;
|
|
|
|
class CBOINCBaseFrame;
|
|
|
|
class CMainDocument;
|
|
|
|
class CTaskBarIcon;
|
|
|
|
class CSkinManager;
|
2009-12-22 20:15:55 +00:00
|
|
|
class CDlgEventLog;
|
2008-07-23 14:16:59 +00:00
|
|
|
class CRPCFinishedEvent;
|
2005-12-28 12:33:18 +00:00
|
|
|
|
2016-12-02 12:08:43 +00:00
|
|
|
#ifdef __WXMAC__
|
|
|
|
OSErr QuitAppleEventHandler(const AppleEvent *appleEvt, AppleEvent* reply, UInt32 refcon);
|
|
|
|
#endif
|
2005-12-28 12:33:18 +00:00
|
|
|
|
2005-04-10 19:01:23 +00:00
|
|
|
class CBOINCGUIApp : public wxApp {
|
- client: include precompiled header in rr_sim.cpp so memory
leak detection will work.
- MGR: Have the BaseFrame call a function to determine if the
selection list should be saved instead of traversing
the application pointer. Each view just overrides the function
returning a true/false value. We don't have to worry about null
pointers and the like.
- MGR: BOINCGUIApp should never need to know how either the views
work or the document. Move the code that determines which
RPCs should be fired into each of the views. Have the document
look for it there.
- MGR: Reduce duplicate code for hiding and showing an application
- MGR: Move some Windows and Mac specific code into functions
and streamline the application startup and shutdown rountines.
- MGR: Move the event processing that was in BOINCGUIApp into the
BaseFrame.
- MGR: General cleanup.
- MGR: Doxygen comments.
- MGR: Cleanup some warnings.
client/
rr_sim.cpp
clientgui/
AdvancedFrame.cpp, .h
AsyncRPC.cpp, .h
BOINCBaseFrame.cpp, .h
BOINCBaseView.cpp, .h
BOINCClientManager.cpp
BOINCGUIApp.cpp, .h
BOINCTaskBar.cpp
MainDocument.cpp, .h
sg_BoincSimpleGUI.cpp, .h
ViewProjects.cpp, .h
ViewTransfers.cpp, .h
ViewWork.cpp, .h
WelcomePage.cpp
win_build/installerv2/
BOINC.ism
BOINCx64.ism
win_build/
sim.vcproj
svn path=/trunk/boinc/; revision=16357
2008-10-29 22:44:55 +00:00
|
|
|
|
2004-04-10 09:11:03 +00:00
|
|
|
DECLARE_DYNAMIC_CLASS(CBOINCGUIApp)
|
|
|
|
|
|
|
|
protected:
|
2014-03-03 12:36:47 +00:00
|
|
|
int OnExit();
|
2014-03-06 12:53:19 +00:00
|
|
|
#ifndef __WXMAC__
|
2014-03-05 22:23:40 +00:00
|
|
|
void OnEndSession(wxCloseEvent& event);
|
2014-03-06 12:53:19 +00:00
|
|
|
#endif
|
2013-04-30 12:18:19 +00:00
|
|
|
|
2006-06-23 08:20:08 +00:00
|
|
|
void OnInitCmdLine(wxCmdLineParser &parser);
|
|
|
|
bool OnCmdLineParsed(wxCmdLineParser &parser);
|
2004-04-10 09:11:03 +00:00
|
|
|
|
2010-10-14 18:16:24 +00:00
|
|
|
bool DetectDuplicateInstance();
|
2010-10-13 21:02:42 +00:00
|
|
|
void DetectExecutableName();
|
- client: include precompiled header in rr_sim.cpp so memory
leak detection will work.
- MGR: Have the BaseFrame call a function to determine if the
selection list should be saved instead of traversing
the application pointer. Each view just overrides the function
returning a true/false value. We don't have to worry about null
pointers and the like.
- MGR: BOINCGUIApp should never need to know how either the views
work or the document. Move the code that determines which
RPCs should be fired into each of the views. Have the document
look for it there.
- MGR: Reduce duplicate code for hiding and showing an application
- MGR: Move some Windows and Mac specific code into functions
and streamline the application startup and shutdown rountines.
- MGR: Move the event processing that was in BOINCGUIApp into the
BaseFrame.
- MGR: General cleanup.
- MGR: Doxygen comments.
- MGR: Cleanup some warnings.
client/
rr_sim.cpp
clientgui/
AdvancedFrame.cpp, .h
AsyncRPC.cpp, .h
BOINCBaseFrame.cpp, .h
BOINCBaseView.cpp, .h
BOINCClientManager.cpp
BOINCGUIApp.cpp, .h
BOINCTaskBar.cpp
MainDocument.cpp, .h
sg_BoincSimpleGUI.cpp, .h
ViewProjects.cpp, .h
ViewTransfers.cpp, .h
ViewWork.cpp, .h
WelcomePage.cpp
win_build/installerv2/
BOINC.ism
BOINCx64.ism
win_build/
sim.vcproj
svn path=/trunk/boinc/; revision=16357
2008-10-29 22:44:55 +00:00
|
|
|
void DetectRootDirectory();
|
|
|
|
void DetectDataDirectory();
|
2004-11-17 09:27:06 +00:00
|
|
|
|
2006-06-23 08:20:08 +00:00
|
|
|
void InitSupportedLanguages();
|
2005-02-07 04:47:18 +00:00
|
|
|
|
2008-08-07 16:59:52 +00:00
|
|
|
int IdleTrackerAttach();
|
|
|
|
int IdleTrackerDetach();
|
2004-12-14 02:50:16 +00:00
|
|
|
|
2006-06-23 08:20:08 +00:00
|
|
|
wxConfig* m_pConfig;
|
|
|
|
wxLocale* m_pLocale;
|
|
|
|
wxLogBOINC* m_pLog;
|
2014-03-06 19:47:00 +00:00
|
|
|
wxSingleInstanceChecker* m_pInstanceChecker;
|
2004-05-21 06:27:15 +00:00
|
|
|
|
2006-10-20 15:00:14 +00:00
|
|
|
CSkinManager* m_pSkinManager;
|
2006-06-23 08:20:08 +00:00
|
|
|
CBOINCBaseFrame* m_pFrame;
|
|
|
|
CMainDocument* m_pDocument;
|
|
|
|
CTaskBarIcon* m_pTaskBarIcon;
|
2009-12-22 20:15:55 +00:00
|
|
|
CDlgEventLog* m_pEventLog;
|
2015-01-16 11:22:10 +00:00
|
|
|
bool m_bEventLogWasActive;
|
|
|
|
bool m_bProcessingActivateAppEvent;
|
2005-10-01 08:56:37 +00:00
|
|
|
#ifdef __WXMAC__
|
2013-08-23 12:02:06 +00:00
|
|
|
CTaskBarIcon* m_pMacDockIcon;
|
2004-10-25 21:42:47 +00:00
|
|
|
#endif
|
2010-10-13 21:02:42 +00:00
|
|
|
wxString m_strBOINCMGRExecutableName;
|
2007-05-07 20:50:08 +00:00
|
|
|
wxString m_strBOINCMGRRootDirectory;
|
2007-11-30 18:52:41 +00:00
|
|
|
wxString m_strBOINCMGRDataDirectory;
|
2010-08-07 06:48:25 +00:00
|
|
|
wxString m_strHostNameArg;
|
|
|
|
wxString m_strPasswordArg;
|
2007-01-19 23:45:19 +00:00
|
|
|
wxString m_strBOINCArguments;
|
2010-08-07 06:48:25 +00:00
|
|
|
int m_iRPCPortArg;
|
2007-01-19 23:45:19 +00:00
|
|
|
|
2008-11-04 09:33:03 +00:00
|
|
|
bool m_bBOINCMGRAutoStarted;
|
|
|
|
int m_iBOINCMGRDisableAutoStart;
|
2008-11-04 08:08:16 +00:00
|
|
|
int m_iShutdownCoreClient;
|
|
|
|
int m_iDisplayExitDialog;
|
2017-04-15 21:30:47 +00:00
|
|
|
int m_iDisplayShutdownConnectedClientDialog;
|
2006-06-23 08:20:08 +00:00
|
|
|
|
|
|
|
bool m_bGUIVisible;
|
2009-01-30 09:25:35 +00:00
|
|
|
|
2006-06-23 08:20:08 +00:00
|
|
|
int m_iGUISelected;
|
2009-01-30 09:25:35 +00:00
|
|
|
bool m_bDebugSkins;
|
2010-10-06 11:13:07 +00:00
|
|
|
bool m_bMultipleInstancesOK;
|
2011-11-03 02:35:04 +00:00
|
|
|
bool m_bFilterEvents;
|
2013-08-28 05:38:00 +00:00
|
|
|
bool m_bAboutDialogIsOpen;
|
2015-12-14 14:11:23 +00:00
|
|
|
bool m_bRunDaemon;
|
|
|
|
bool m_bNeedRunDaemon;
|
2004-11-19 08:11:49 +00:00
|
|
|
|
2005-02-07 04:47:18 +00:00
|
|
|
// The last value defined in the wxLanguage enum is wxLANGUAGE_USER_DEFINED.
|
|
|
|
// defined in: wx/intl.h
|
2006-06-23 08:20:08 +00:00
|
|
|
wxArrayString m_astrLanguages;
|
2014-02-18 05:36:03 +00:00
|
|
|
wxString m_strISOLanguageCode;
|
2008-08-20 16:07:06 +00:00
|
|
|
|
|
|
|
int m_bSafeMessageBoxDisplayed;
|
2005-02-07 04:47:18 +00:00
|
|
|
|
2004-04-10 09:11:03 +00:00
|
|
|
public:
|
|
|
|
|
2006-06-23 08:20:08 +00:00
|
|
|
bool OnInit();
|
2013-04-30 12:18:19 +00:00
|
|
|
void SaveState();
|
2004-04-10 09:11:03 +00:00
|
|
|
|
2006-10-25 14:09:47 +00:00
|
|
|
wxLocale* GetLocale() { return m_pLocale; }
|
2006-10-20 15:00:14 +00:00
|
|
|
CSkinManager* GetSkinManager() { return m_pSkinManager; }
|
2006-06-23 08:20:08 +00:00
|
|
|
CBOINCBaseFrame* GetFrame() { return m_pFrame; }
|
|
|
|
CMainDocument* GetDocument() { return m_pDocument; }
|
2010-10-13 21:02:42 +00:00
|
|
|
wxString GetExecutableName() { return m_strBOINCMGRExecutableName; }
|
2007-11-30 18:52:41 +00:00
|
|
|
wxString GetRootDirectory() { return m_strBOINCMGRRootDirectory; }
|
|
|
|
wxString GetDataDirectory() { return m_strBOINCMGRDataDirectory; }
|
2010-08-07 06:48:25 +00:00
|
|
|
wxString GetClientHostNameArg() { return m_strHostNameArg; }
|
|
|
|
wxString GetClientPasswordArg() { return m_strPasswordArg; }
|
2009-07-25 05:35:27 +00:00
|
|
|
wxString GetArguments() { return m_strBOINCArguments; }
|
2010-08-07 06:48:25 +00:00
|
|
|
int GetClientRPCPortArg() { return m_iRPCPortArg; }
|
2009-12-23 05:23:48 +00:00
|
|
|
CDlgEventLog* GetEventLog() { return m_pEventLog; }
|
2006-06-23 08:20:08 +00:00
|
|
|
CTaskBarIcon* GetTaskBarIcon() { return m_pTaskBarIcon; }
|
2009-07-25 05:35:27 +00:00
|
|
|
|
2014-03-06 19:47:00 +00:00
|
|
|
bool IsAnotherInstanceRunning() { return m_pInstanceChecker->IsAnotherRunning(); }
|
2011-06-08 10:09:36 +00:00
|
|
|
bool IsMgrMultipleInstance() { return m_bMultipleInstancesOK; }
|
2009-07-25 05:35:27 +00:00
|
|
|
|
2005-10-01 08:56:37 +00:00
|
|
|
#ifdef __WXMAC__
|
2014-03-13 13:39:00 +00:00
|
|
|
void OnFinishInit();
|
2013-08-23 12:02:06 +00:00
|
|
|
CTaskBarIcon* GetMacDockIcon() { return m_pMacDockIcon; }
|
2009-07-25 05:35:27 +00:00
|
|
|
int ShouldShutdownCoreClient() { return true; }
|
2008-11-05 12:14:53 +00:00
|
|
|
#else
|
2009-07-25 05:35:27 +00:00
|
|
|
int ShouldShutdownCoreClient() { return m_iShutdownCoreClient; }
|
2008-11-05 12:14:53 +00:00
|
|
|
#endif
|
2009-07-25 05:35:27 +00:00
|
|
|
|
2008-11-04 09:33:03 +00:00
|
|
|
int GetBOINCMGRDisableAutoStart()
|
|
|
|
{ return m_iBOINCMGRDisableAutoStart; }
|
|
|
|
void SetBOINCMGRDisableAutoStart(int iDisableAutoStart)
|
|
|
|
{ m_iBOINCMGRDisableAutoStart = iDisableAutoStart; }
|
|
|
|
|
2008-11-10 19:44:54 +00:00
|
|
|
int GetBOINCMGRDisplayExitMessage()
|
|
|
|
{ return m_iDisplayExitDialog; }
|
|
|
|
void SetBOINCMGRDisplayExitMessage(int iDisplayExitMessage)
|
|
|
|
{ m_iDisplayExitDialog = iDisplayExitMessage; }
|
|
|
|
|
2017-04-15 21:30:47 +00:00
|
|
|
int GetBOINCMGRDisplayShutdownConnectedClientMessage()
|
|
|
|
{ return m_iDisplayShutdownConnectedClientDialog; }
|
|
|
|
void SetBOINCMGRDisplayShutdownConnectedClientMessage(int iDisplayShutdownConnectedClientDialog)
|
|
|
|
{ m_iDisplayShutdownConnectedClientDialog = iDisplayShutdownConnectedClientDialog; }
|
|
|
|
|
2015-12-14 14:11:23 +00:00
|
|
|
bool GetRunDaemon()
|
|
|
|
{ return m_bRunDaemon; }
|
|
|
|
void SetRunDaemon(bool bRunDaemon)
|
|
|
|
{ m_bRunDaemon = bRunDaemon; }
|
|
|
|
|
|
|
|
bool GetNeedRunDaemon()
|
|
|
|
{ return m_bNeedRunDaemon; }
|
2008-11-04 09:33:03 +00:00
|
|
|
|
2006-06-23 08:20:08 +00:00
|
|
|
wxArrayString& GetSupportedLanguages() { return m_astrLanguages; }
|
2014-02-18 05:36:03 +00:00
|
|
|
wxString GetISOLanguageCode() { return m_strISOLanguageCode; }
|
2014-06-18 15:14:29 +00:00
|
|
|
void SetISOLanguageCode(wxString strISOLanguageCode)
|
|
|
|
{ m_strISOLanguageCode = strISOLanguageCode; }
|
2012-11-28 11:22:11 +00:00
|
|
|
|
2015-01-16 11:22:10 +00:00
|
|
|
void SetEventLogWasActive(bool wasActive) { m_bEventLogWasActive = wasActive; }
|
2010-07-23 23:42:25 +00:00
|
|
|
void DisplayEventLog(bool bShowWindow = true);
|
2009-12-23 01:09:56 +00:00
|
|
|
void OnEventLogClose();
|
2009-12-22 20:15:55 +00:00
|
|
|
|
2006-10-30 03:41:32 +00:00
|
|
|
void FireReloadSkin();
|
- client: include precompiled header in rr_sim.cpp so memory
leak detection will work.
- MGR: Have the BaseFrame call a function to determine if the
selection list should be saved instead of traversing
the application pointer. Each view just overrides the function
returning a true/false value. We don't have to worry about null
pointers and the like.
- MGR: BOINCGUIApp should never need to know how either the views
work or the document. Move the code that determines which
RPCs should be fired into each of the views. Have the document
look for it there.
- MGR: Reduce duplicate code for hiding and showing an application
- MGR: Move some Windows and Mac specific code into functions
and streamline the application startup and shutdown rountines.
- MGR: Move the event processing that was in BOINCGUIApp into the
BaseFrame.
- MGR: General cleanup.
- MGR: Doxygen comments.
- MGR: Cleanup some warnings.
client/
rr_sim.cpp
clientgui/
AdvancedFrame.cpp, .h
AsyncRPC.cpp, .h
BOINCBaseFrame.cpp, .h
BOINCBaseView.cpp, .h
BOINCClientManager.cpp
BOINCGUIApp.cpp, .h
BOINCTaskBar.cpp
MainDocument.cpp, .h
sg_BoincSimpleGUI.cpp, .h
ViewProjects.cpp, .h
ViewTransfers.cpp, .h
ViewWork.cpp, .h
WelcomePage.cpp
win_build/installerv2/
BOINC.ism
BOINCx64.ism
win_build/
sim.vcproj
svn path=/trunk/boinc/; revision=16357
2008-10-29 22:44:55 +00:00
|
|
|
void FrameClosed() { m_pFrame = NULL; }
|
|
|
|
|
|
|
|
int StartBOINCScreensaverTest();
|
2009-07-25 05:35:27 +00:00
|
|
|
int StartBOINCDefaultScreensaverTest();
|
2006-10-30 03:41:32 +00:00
|
|
|
|
2006-06-23 08:20:08 +00:00
|
|
|
bool SetActiveGUI(int iGUISelection, bool bShowWindow = true);
|
2009-01-16 06:41:52 +00:00
|
|
|
|
2012-01-23 19:30:51 +00:00
|
|
|
void OnActivateApp( wxActivateEvent& event );
|
- client: include precompiled header in rr_sim.cpp so memory
leak detection will work.
- MGR: Have the BaseFrame call a function to determine if the
selection list should be saved instead of traversing
the application pointer. Each view just overrides the function
returning a true/false value. We don't have to worry about null
pointers and the like.
- MGR: BOINCGUIApp should never need to know how either the views
work or the document. Move the code that determines which
RPCs should be fired into each of the views. Have the document
look for it there.
- MGR: Reduce duplicate code for hiding and showing an application
- MGR: Move some Windows and Mac specific code into functions
and streamline the application startup and shutdown rountines.
- MGR: Move the event processing that was in BOINCGUIApp into the
BaseFrame.
- MGR: General cleanup.
- MGR: Doxygen comments.
- MGR: Cleanup some warnings.
client/
rr_sim.cpp
clientgui/
AdvancedFrame.cpp, .h
AsyncRPC.cpp, .h
BOINCBaseFrame.cpp, .h
BOINCBaseView.cpp, .h
BOINCClientManager.cpp
BOINCGUIApp.cpp, .h
BOINCTaskBar.cpp
MainDocument.cpp, .h
sg_BoincSimpleGUI.cpp, .h
ViewProjects.cpp, .h
ViewTransfers.cpp, .h
ViewWork.cpp, .h
WelcomePage.cpp
win_build/installerv2/
BOINC.ism
BOINCx64.ism
win_build/
sim.vcproj
svn path=/trunk/boinc/; revision=16357
2008-10-29 22:44:55 +00:00
|
|
|
void OnRPCFinished( CRPCFinishedEvent& event );
|
2006-11-03 15:18:19 +00:00
|
|
|
|
|
|
|
int ConfirmExit();
|
2008-07-23 14:16:59 +00:00
|
|
|
|
- client: include precompiled header in rr_sim.cpp so memory
leak detection will work.
- MGR: Have the BaseFrame call a function to determine if the
selection list should be saved instead of traversing
the application pointer. Each view just overrides the function
returning a true/false value. We don't have to worry about null
pointers and the like.
- MGR: BOINCGUIApp should never need to know how either the views
work or the document. Move the code that determines which
RPCs should be fired into each of the views. Have the document
look for it there.
- MGR: Reduce duplicate code for hiding and showing an application
- MGR: Move some Windows and Mac specific code into functions
and streamline the application startup and shutdown rountines.
- MGR: Move the event processing that was in BOINCGUIApp into the
BaseFrame.
- MGR: General cleanup.
- MGR: Doxygen comments.
- MGR: Cleanup some warnings.
client/
rr_sim.cpp
clientgui/
AdvancedFrame.cpp, .h
AsyncRPC.cpp, .h
BOINCBaseFrame.cpp, .h
BOINCBaseView.cpp, .h
BOINCClientManager.cpp
BOINCGUIApp.cpp, .h
BOINCTaskBar.cpp
MainDocument.cpp, .h
sg_BoincSimpleGUI.cpp, .h
ViewProjects.cpp, .h
ViewTransfers.cpp, .h
ViewWork.cpp, .h
WelcomePage.cpp
win_build/installerv2/
BOINC.ism
BOINCx64.ism
win_build/
sim.vcproj
svn path=/trunk/boinc/; revision=16357
2008-10-29 22:44:55 +00:00
|
|
|
int SafeMessageBox(
|
|
|
|
const wxString& message,
|
|
|
|
const wxString& caption = wxMessageBoxCaptionStr,
|
|
|
|
long style = wxOK | wxCENTRE,
|
|
|
|
wxWindow *parent = NULL,
|
|
|
|
int x = wxDefaultCoord,
|
|
|
|
int y = wxDefaultCoord
|
|
|
|
);
|
|
|
|
|
|
|
|
bool IsApplicationVisible();
|
|
|
|
void ShowApplication(bool bShow);
|
2009-12-18 22:44:10 +00:00
|
|
|
bool ShowInterface();
|
|
|
|
bool ShowNotifications();
|
2008-08-20 16:07:06 +00:00
|
|
|
|
|
|
|
bool IsModalDialogDisplayed();
|
2009-03-10 02:16:34 +00:00
|
|
|
bool IsSafeMesageBoxDisplayed() { return (m_bSafeMessageBoxDisplayed != 0); };
|
- client: include precompiled header in rr_sim.cpp so memory
leak detection will work.
- MGR: Have the BaseFrame call a function to determine if the
selection list should be saved instead of traversing
the application pointer. Each view just overrides the function
returning a true/false value. We don't have to worry about null
pointers and the like.
- MGR: BOINCGUIApp should never need to know how either the views
work or the document. Move the code that determines which
RPCs should be fired into each of the views. Have the document
look for it there.
- MGR: Reduce duplicate code for hiding and showing an application
- MGR: Move some Windows and Mac specific code into functions
and streamline the application startup and shutdown rountines.
- MGR: Move the event processing that was in BOINCGUIApp into the
BaseFrame.
- MGR: General cleanup.
- MGR: Doxygen comments.
- MGR: Cleanup some warnings.
client/
rr_sim.cpp
clientgui/
AdvancedFrame.cpp, .h
AsyncRPC.cpp, .h
BOINCBaseFrame.cpp, .h
BOINCBaseView.cpp, .h
BOINCClientManager.cpp
BOINCGUIApp.cpp, .h
BOINCTaskBar.cpp
MainDocument.cpp, .h
sg_BoincSimpleGUI.cpp, .h
ViewProjects.cpp, .h
ViewTransfers.cpp, .h
ViewWork.cpp, .h
WelcomePage.cpp
win_build/installerv2/
BOINC.ism
BOINCx64.ism
win_build/
sim.vcproj
svn path=/trunk/boinc/; revision=16357
2008-10-29 22:44:55 +00:00
|
|
|
|
2008-10-14 03:28:34 +00:00
|
|
|
int FilterEvent(wxEvent &event);
|
2008-08-20 16:07:06 +00:00
|
|
|
|
2008-10-30 01:55:11 +00:00
|
|
|
|
- client: include precompiled header in rr_sim.cpp so memory
leak detection will work.
- MGR: Have the BaseFrame call a function to determine if the
selection list should be saved instead of traversing
the application pointer. Each view just overrides the function
returning a true/false value. We don't have to worry about null
pointers and the like.
- MGR: BOINCGUIApp should never need to know how either the views
work or the document. Move the code that determines which
RPCs should be fired into each of the views. Have the document
look for it there.
- MGR: Reduce duplicate code for hiding and showing an application
- MGR: Move some Windows and Mac specific code into functions
and streamline the application startup and shutdown rountines.
- MGR: Move the event processing that was in BOINCGUIApp into the
BaseFrame.
- MGR: General cleanup.
- MGR: Doxygen comments.
- MGR: Cleanup some warnings.
client/
rr_sim.cpp
clientgui/
AdvancedFrame.cpp, .h
AsyncRPC.cpp, .h
BOINCBaseFrame.cpp, .h
BOINCBaseView.cpp, .h
BOINCClientManager.cpp
BOINCGUIApp.cpp, .h
BOINCTaskBar.cpp
MainDocument.cpp, .h
sg_BoincSimpleGUI.cpp, .h
ViewProjects.cpp, .h
ViewTransfers.cpp, .h
ViewWork.cpp, .h
WelcomePage.cpp
win_build/installerv2/
BOINC.ism
BOINCx64.ism
win_build/
sim.vcproj
svn path=/trunk/boinc/; revision=16357
2008-10-29 22:44:55 +00:00
|
|
|
int UpdateSystemIdleDetection();
|
2011-11-03 02:35:04 +00:00
|
|
|
|
|
|
|
void SetEventFiltering(bool set) { m_bFilterEvents = set; }
|
2013-08-28 05:38:00 +00:00
|
|
|
|
|
|
|
void SetAboutDialogIsOpen(bool set) { m_bAboutDialogIsOpen = set; }
|
|
|
|
bool GetAboutDialogIsOpen() { return m_bAboutDialogIsOpen; }
|
2008-10-30 01:55:11 +00:00
|
|
|
|
2014-03-03 12:36:47 +00:00
|
|
|
#ifdef __WXMAC__
|
|
|
|
// The following Cocoa routines are in CBOINCGUIApp.mm
|
|
|
|
//
|
2016-12-02 12:08:43 +00:00
|
|
|
bool WasFileModifiedBeforeSystemBoot(char * filePath);
|
2014-03-03 12:36:47 +00:00
|
|
|
void HideThisApp(void);
|
|
|
|
|
2014-05-28 13:00:47 +00:00
|
|
|
#if !wxCHECK_VERSION(3,0,1)
|
2014-04-14 11:25:30 +00:00
|
|
|
// This should be fixed after wxCocoa 3.0.0:
|
|
|
|
// http://trac.wxwidgets.org/ticket/16156
|
|
|
|
|
2014-03-03 12:36:47 +00:00
|
|
|
// Override standard wxCocoa wxApp::CallOnInit() to allow Manager
|
|
|
|
// to run properly when launched hidden on login via Login Item.
|
|
|
|
bool CallOnInit();
|
2014-04-14 11:25:30 +00:00
|
|
|
#endif
|
|
|
|
|
2014-03-14 10:53:12 +00:00
|
|
|
void CheckPartialActivation();
|
2014-03-03 12:36:47 +00:00
|
|
|
#endif
|
|
|
|
|
2008-10-30 01:55:11 +00:00
|
|
|
DECLARE_EVENT_TABLE()
|
2004-04-10 09:11:03 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
DECLARE_APP(CBOINCGUIApp)
|
2004-04-11 04:37:10 +00:00
|
|
|
|
|
|
|
|
2004-04-11 05:09:18 +00:00
|
|
|
#endif
|
|
|
|
|
2008-09-27 03:21:09 +00:00
|
|
|
/// @}
|