mirror of https://github.com/BOINC/boinc.git
*** empty log message ***
svn path=/trunk/boinc/; revision=4732
This commit is contained in:
parent
c3a74d384c
commit
d285dc4595
|
@ -20622,3 +20622,11 @@ Bruce 3 Dec 2004
|
||||||
- Enabled automatic emailing of CVS diffs to the boinc_cvs email
|
- Enabled automatic emailing of CVS diffs to the boinc_cvs email
|
||||||
list. This is done by adding a 'syncmail' script in the CVSROOT/
|
list. This is done by adding a 'syncmail' script in the CVSROOT/
|
||||||
directory and adding an extra line at the end of CVSROOT/loginfo.
|
directory and adding an extra line at the end of CVSROOT/loginfo.
|
||||||
|
|
||||||
|
Rom 3 Dec 2004
|
||||||
|
- Change which wxLogTrace prototype we are using in MainFrame.cpp and
|
||||||
|
enable that trace mask in BOINCGUIApp.cpp
|
||||||
|
|
||||||
|
clientgui/
|
||||||
|
BOINCGUIApp.cpp
|
||||||
|
MainFrame.cpp
|
||||||
|
|
|
@ -38,18 +38,17 @@ IMPLEMENT_DYNAMIC_CLASS(CBOINCGUIApp, wxApp)
|
||||||
|
|
||||||
bool CBOINCGUIApp::OnInit()
|
bool CBOINCGUIApp::OnInit()
|
||||||
{
|
{
|
||||||
|
// Setup application and company information
|
||||||
|
SetVendorName(wxT("Space Sciences Laboratory, U.C. Berkeley"));
|
||||||
|
SetAppName(wxT("BOINC Manager"));
|
||||||
|
|
||||||
// Setup variables with default values
|
// Setup variables with default values
|
||||||
m_bBOINCStartedByManager = false;
|
m_bBOINCStartedByManager = false;
|
||||||
m_bFrameVisible = true;
|
m_bFrameVisible = true;
|
||||||
m_lBOINCCoreProccessId = 0;
|
m_lBOINCCoreProccessId = 0;
|
||||||
|
|
||||||
// Setup application and company information
|
// Enable Trace Masks
|
||||||
SetVendorName(wxT("Space Sciences Laboratory, U.C. Berkeley"));
|
wxLog::AddTraceMask( wxT("Function Start/End") );
|
||||||
SetAppName(wxT("BOINC Manager"));
|
|
||||||
|
|
||||||
// Commandline parsing is done in wxApp::OnInit()
|
|
||||||
if (!wxApp::OnInit())
|
|
||||||
return false;
|
|
||||||
|
|
||||||
// Enable the in memory virtual file system for
|
// Enable the in memory virtual file system for
|
||||||
// storing images
|
// storing images
|
||||||
|
@ -58,6 +57,10 @@ bool CBOINCGUIApp::OnInit()
|
||||||
// Enable known image types
|
// Enable known image types
|
||||||
wxImage::AddHandler(new wxXPMHandler);
|
wxImage::AddHandler(new wxXPMHandler);
|
||||||
|
|
||||||
|
// Commandline parsing is done in wxApp::OnInit()
|
||||||
|
if (!wxApp::OnInit())
|
||||||
|
return false;
|
||||||
|
|
||||||
// Initialize the internationalization module
|
// Initialize the internationalization module
|
||||||
m_pLocale = new wxLocale();
|
m_pLocale = new wxLocale();
|
||||||
wxASSERT(NULL != m_pLocale);
|
wxASSERT(NULL != m_pLocale);
|
||||||
|
|
|
@ -26,8 +26,6 @@ static volatile const char *BOINCrcsid="$Id$";
|
||||||
#pragma implementation "MainDocument.h"
|
#pragma implementation "MainDocument.h"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#include <stdexcept>
|
|
||||||
|
|
||||||
#include "stdwx.h"
|
#include "stdwx.h"
|
||||||
#include "BOINCGUIApp.h"
|
#include "BOINCGUIApp.h"
|
||||||
#include "MainDocument.h"
|
#include "MainDocument.h"
|
||||||
|
|
|
@ -79,8 +79,8 @@ END_EVENT_TABLE ()
|
||||||
|
|
||||||
CMainFrame::CMainFrame()
|
CMainFrame::CMainFrame()
|
||||||
{
|
{
|
||||||
wxLogTrace(wxT("CMainFrame::CMainFrame - Default Constructor Function Begin"));
|
wxLogTrace(wxT("Function Start/End"), wxT("CMainFrame::CMainFrame - Default Constructor Function Begin"));
|
||||||
wxLogTrace(wxT("CMainFrame::CMainFrame - Default Constructor Function End"));
|
wxLogTrace(wxT("Function Start/End"), wxT("CMainFrame::CMainFrame - Default Constructor Function End"));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@ -88,7 +88,7 @@ CMainFrame::CMainFrame(wxString strTitle) :
|
||||||
wxFrame ((wxFrame *)NULL, -1, strTitle, wxDefaultPosition, wxDefaultSize,
|
wxFrame ((wxFrame *)NULL, -1, strTitle, wxDefaultPosition, wxDefaultSize,
|
||||||
wxDEFAULT_FRAME_STYLE | wxNO_FULL_REPAINT_ON_RESIZE)
|
wxDEFAULT_FRAME_STYLE | wxNO_FULL_REPAINT_ON_RESIZE)
|
||||||
{
|
{
|
||||||
wxLogTrace(wxT("CMainFrame::CMainFrame - Function Begin"));
|
wxLogTrace(wxT("Function Start/End"), wxT("CMainFrame::CMainFrame - Function Begin"));
|
||||||
|
|
||||||
m_pMenubar = NULL;
|
m_pMenubar = NULL;
|
||||||
m_pNotebook = NULL;
|
m_pNotebook = NULL;
|
||||||
|
@ -124,13 +124,13 @@ CMainFrame::CMainFrame(wxString strTitle) :
|
||||||
|
|
||||||
RestoreState();
|
RestoreState();
|
||||||
|
|
||||||
wxLogTrace(wxT("CMainFrame::CMainFrame - Function End"));
|
wxLogTrace(wxT("Function Start/End"), wxT("CMainFrame::CMainFrame - Function End"));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
CMainFrame::~CMainFrame()
|
CMainFrame::~CMainFrame()
|
||||||
{
|
{
|
||||||
wxLogTrace(wxT("CMainFrame::~CMainFrame - Function Begin"));
|
wxLogTrace(wxT("Function Start/End"), wxT("CMainFrame::~CMainFrame - Function Begin"));
|
||||||
|
|
||||||
wxASSERT(NULL != m_pFrameRenderTimer);
|
wxASSERT(NULL != m_pFrameRenderTimer);
|
||||||
wxASSERT(NULL != m_pFrameTaskPanelRenderTimer);
|
wxASSERT(NULL != m_pFrameTaskPanelRenderTimer);
|
||||||
|
@ -167,13 +167,13 @@ CMainFrame::~CMainFrame()
|
||||||
if (m_pMenubar)
|
if (m_pMenubar)
|
||||||
wxCHECK_RET(DeleteMenu(), _T("Failed to delete menu bar."));
|
wxCHECK_RET(DeleteMenu(), _T("Failed to delete menu bar."));
|
||||||
|
|
||||||
wxLogTrace(wxT("CMainFrame::~CMainFrame - Function End"));
|
wxLogTrace(wxT("Function Start/End"), wxT("CMainFrame::~CMainFrame - Function End"));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
bool CMainFrame::CreateMenu()
|
bool CMainFrame::CreateMenu()
|
||||||
{
|
{
|
||||||
wxLogTrace(wxT("CMainFrame::CreateMenu - Function Begin"));
|
wxLogTrace(wxT("Function Start/End"), wxT("CMainFrame::CreateMenu - Function Begin"));
|
||||||
|
|
||||||
// File menu
|
// File menu
|
||||||
wxMenu *menuFile = new wxMenu;
|
wxMenu *menuFile = new wxMenu;
|
||||||
|
@ -266,14 +266,14 @@ bool CMainFrame::CreateMenu()
|
||||||
);
|
);
|
||||||
SetMenuBar(m_pMenubar);
|
SetMenuBar(m_pMenubar);
|
||||||
|
|
||||||
wxLogTrace(wxT("CMainFrame::CreateMenu - Function End"));
|
wxLogTrace(wxT("Function Start/End"), wxT("CMainFrame::CreateMenu - Function End"));
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
bool CMainFrame::CreateNotebook()
|
bool CMainFrame::CreateNotebook()
|
||||||
{
|
{
|
||||||
wxLogTrace(wxT("CMainFrame::CreateNotebook - Function Begin"));
|
wxLogTrace(wxT("Function Start/End"), wxT("CMainFrame::CreateNotebook - Function Begin"));
|
||||||
|
|
||||||
// create frame panel
|
// create frame panel
|
||||||
wxPanel *pPanel = new wxPanel(this, -1, wxDefaultPosition, wxDefaultSize,
|
wxPanel *pPanel = new wxPanel(this, -1, wxDefaultPosition, wxDefaultSize,
|
||||||
|
@ -301,7 +301,7 @@ bool CMainFrame::CreateNotebook()
|
||||||
CreateNotebookPage( new CViewMessages( m_pNotebook ) );
|
CreateNotebookPage( new CViewMessages( m_pNotebook ) );
|
||||||
CreateNotebookPage( new CViewResources( m_pNotebook ) );
|
CreateNotebookPage( new CViewResources( m_pNotebook ) );
|
||||||
|
|
||||||
wxLogTrace(wxT("CMainFrame::CreateNotebook - Function End"));
|
wxLogTrace(wxT("Function Start/End"), wxT("CMainFrame::CreateNotebook - Function End"));
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -309,7 +309,7 @@ bool CMainFrame::CreateNotebook()
|
||||||
template < class T >
|
template < class T >
|
||||||
bool CMainFrame::CreateNotebookPage(T pwndNewNotebookPage)
|
bool CMainFrame::CreateNotebookPage(T pwndNewNotebookPage)
|
||||||
{
|
{
|
||||||
wxLogTrace(wxT("CMainFrame::CreateNotebookPage - Function Begin"));
|
wxLogTrace(wxT("Function Start/End"), wxT("CMainFrame::CreateNotebookPage - Function Begin"));
|
||||||
|
|
||||||
wxImageList* pImageList;
|
wxImageList* pImageList;
|
||||||
wxInt32 iImageIndex = 0;
|
wxInt32 iImageIndex = 0;
|
||||||
|
@ -329,14 +329,14 @@ bool CMainFrame::CreateNotebookPage(T pwndNewNotebookPage)
|
||||||
iImageIndex = pImageList->Add(wxBitmap(pwndNewNotebookPage->GetViewIcon()), wxColour(255, 0, 255));
|
iImageIndex = pImageList->Add(wxBitmap(pwndNewNotebookPage->GetViewIcon()), wxColour(255, 0, 255));
|
||||||
m_pNotebook->AddPage(pwndNewNotebookPage, pwndNewNotebookPage->GetViewName(), TRUE, iImageIndex);
|
m_pNotebook->AddPage(pwndNewNotebookPage, pwndNewNotebookPage->GetViewName(), TRUE, iImageIndex);
|
||||||
|
|
||||||
wxLogTrace(wxT("CMainFrame::CreateNotebookPage - Function End"));
|
wxLogTrace(wxT("Function Start/End"), wxT("CMainFrame::CreateNotebookPage - Function End"));
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
bool CMainFrame::CreateStatusbar()
|
bool CMainFrame::CreateStatusbar()
|
||||||
{
|
{
|
||||||
wxLogTrace(wxT("CMainFrame::CreateStatusbar - Function Begin"));
|
wxLogTrace(wxT("Function Start/End"), wxT("CMainFrame::CreateStatusbar - Function Begin"));
|
||||||
|
|
||||||
if (m_pStatusbar)
|
if (m_pStatusbar)
|
||||||
return true;
|
return true;
|
||||||
|
@ -358,23 +358,23 @@ bool CMainFrame::CreateStatusbar()
|
||||||
|
|
||||||
SendSizeEvent();
|
SendSizeEvent();
|
||||||
|
|
||||||
wxLogTrace(wxT("CMainFrame::CreateStatusbar - Function End"));
|
wxLogTrace(wxT("Function Start/End"), wxT("CMainFrame::CreateStatusbar - Function End"));
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
bool CMainFrame::DeleteMenu()
|
bool CMainFrame::DeleteMenu()
|
||||||
{
|
{
|
||||||
wxLogTrace(wxT("CMainFrame::DeleteMenu - Function Begin"));
|
wxLogTrace(wxT("Function Start/End"), wxT("CMainFrame::DeleteMenu - Function Begin"));
|
||||||
|
|
||||||
wxLogTrace(wxT("CMainFrame::DeleteMenu - Function End"));
|
wxLogTrace(wxT("Function Start/End"), wxT("CMainFrame::DeleteMenu - Function End"));
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
bool CMainFrame::DeleteNotebook()
|
bool CMainFrame::DeleteNotebook()
|
||||||
{
|
{
|
||||||
wxLogTrace(wxT("CMainFrame::DeleteNotebook - Function Begin"));
|
wxLogTrace(wxT("Function Start/End"), wxT("CMainFrame::DeleteNotebook - Function Begin"));
|
||||||
|
|
||||||
wxImageList* pImageList;
|
wxImageList* pImageList;
|
||||||
|
|
||||||
|
@ -387,14 +387,14 @@ bool CMainFrame::DeleteNotebook()
|
||||||
if (pImageList)
|
if (pImageList)
|
||||||
delete pImageList;
|
delete pImageList;
|
||||||
|
|
||||||
wxLogTrace(wxT("CMainFrame::DeleteNotebook - Function End"));
|
wxLogTrace(wxT("Function Start/End"), wxT("CMainFrame::DeleteNotebook - Function End"));
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
bool CMainFrame::DeleteStatusbar()
|
bool CMainFrame::DeleteStatusbar()
|
||||||
{
|
{
|
||||||
wxLogTrace(wxT("CMainFrame::DeleteStatusbar - Function Begin"));
|
wxLogTrace(wxT("Function Start/End"), wxT("CMainFrame::DeleteStatusbar - Function Begin"));
|
||||||
|
|
||||||
if (!m_pStatusbar)
|
if (!m_pStatusbar)
|
||||||
return true;
|
return true;
|
||||||
|
@ -406,14 +406,14 @@ bool CMainFrame::DeleteStatusbar()
|
||||||
|
|
||||||
SendSizeEvent();
|
SendSizeEvent();
|
||||||
|
|
||||||
wxLogTrace(wxT("CMainFrame::DeleteStatusbar - Function End"));
|
wxLogTrace(wxT("Function Start/End"), wxT("CMainFrame::DeleteStatusbar - Function End"));
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
bool CMainFrame::SaveState()
|
bool CMainFrame::SaveState()
|
||||||
{
|
{
|
||||||
wxLogTrace(wxT("CMainFrame::SaveState - Function Begin"));
|
wxLogTrace(wxT("Function Start/End"), wxT("CMainFrame::SaveState - Function Begin"));
|
||||||
|
|
||||||
wxString strBaseConfigLocation = wxString(wxT("/"));
|
wxString strBaseConfigLocation = wxString(wxT("/"));
|
||||||
wxConfigBase* pConfig = wxConfigBase::Get(FALSE);
|
wxConfigBase* pConfig = wxConfigBase::Get(FALSE);
|
||||||
|
@ -461,14 +461,14 @@ bool CMainFrame::SaveState()
|
||||||
pConfig->SetPath(strPreviousLocation);
|
pConfig->SetPath(strPreviousLocation);
|
||||||
}
|
}
|
||||||
|
|
||||||
wxLogTrace(wxT("CMainFrame::SaveState - Function End"));
|
wxLogTrace(wxT("Function Start/End"), wxT("CMainFrame::SaveState - Function End"));
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
bool CMainFrame::RestoreState()
|
bool CMainFrame::RestoreState()
|
||||||
{
|
{
|
||||||
wxLogTrace(wxT("CMainFrame::RestoreState - Function Begin"));
|
wxLogTrace(wxT("Function Start/End"), wxT("CMainFrame::RestoreState - Function Begin"));
|
||||||
|
|
||||||
wxString strBaseConfigLocation = wxString(wxT("/"));
|
wxString strBaseConfigLocation = wxString(wxT("/"));
|
||||||
wxConfigBase* pConfig = wxConfigBase::Get(FALSE);
|
wxConfigBase* pConfig = wxConfigBase::Get(FALSE);
|
||||||
|
@ -526,24 +526,24 @@ bool CMainFrame::RestoreState()
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
wxLogTrace(wxT("CMainFrame::RestoreState - Function End"));
|
wxLogTrace(wxT("Function Start/End"), wxT("CMainFrame::RestoreState - Function End"));
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
void CMainFrame::OnHide( wxCommandEvent& WXUNUSED(event) )
|
void CMainFrame::OnHide( wxCommandEvent& WXUNUSED(event) )
|
||||||
{
|
{
|
||||||
wxLogTrace(wxT("CMainFrame::OnHide - Function Begin"));
|
wxLogTrace(wxT("Function Start/End"), wxT("CMainFrame::OnHide - Function Begin"));
|
||||||
|
|
||||||
Hide();
|
Hide();
|
||||||
|
|
||||||
wxLogTrace(wxT("CMainFrame::OnHide - Function End"));
|
wxLogTrace(wxT("Function Start/End"), wxT("CMainFrame::OnHide - Function End"));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
void CMainFrame::OnActivitySelection( wxCommandEvent& event )
|
void CMainFrame::OnActivitySelection( wxCommandEvent& event )
|
||||||
{
|
{
|
||||||
wxLogTrace(wxT("CMainFrame::OnActivitySelection - Function Begin"));
|
wxLogTrace(wxT("Function Start/End"), wxT("CMainFrame::OnActivitySelection - Function Begin"));
|
||||||
|
|
||||||
CMainDocument* pDoc = wxGetApp().GetDocument();
|
CMainDocument* pDoc = wxGetApp().GetDocument();
|
||||||
|
|
||||||
|
@ -563,13 +563,13 @@ void CMainFrame::OnActivitySelection( wxCommandEvent& event )
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
wxLogTrace(wxT("CMainFrame::OnActivitySelection - Function End"));
|
wxLogTrace(wxT("Function Start/End"), wxT("CMainFrame::OnActivitySelection - Function End"));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
void CMainFrame::OnNetworkSelection( wxCommandEvent& event )
|
void CMainFrame::OnNetworkSelection( wxCommandEvent& event )
|
||||||
{
|
{
|
||||||
wxLogTrace(wxT("CMainFrame::OnNetworkSelection - Function Begin"));
|
wxLogTrace(wxT("Function Start/End"), wxT("CMainFrame::OnNetworkSelection - Function Begin"));
|
||||||
|
|
||||||
CMainDocument* pDoc = wxGetApp().GetDocument();
|
CMainDocument* pDoc = wxGetApp().GetDocument();
|
||||||
|
|
||||||
|
@ -591,13 +591,13 @@ void CMainFrame::OnNetworkSelection( wxCommandEvent& event )
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
wxLogTrace(wxT("CMainFrame::OnNetworkSelection - Function End"));
|
wxLogTrace(wxT("Function Start/End"), wxT("CMainFrame::OnNetworkSelection - Function End"));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
void CMainFrame::OnRunBenchmarks( wxCommandEvent& WXUNUSED(event) )
|
void CMainFrame::OnRunBenchmarks( wxCommandEvent& WXUNUSED(event) )
|
||||||
{
|
{
|
||||||
wxLogTrace(wxT("CMainFrame::OnRunBenchmarks - Function Begin"));
|
wxLogTrace(wxT("Function Start/End"), wxT("CMainFrame::OnRunBenchmarks - Function Begin"));
|
||||||
|
|
||||||
CMainDocument* pDoc = wxGetApp().GetDocument();
|
CMainDocument* pDoc = wxGetApp().GetDocument();
|
||||||
wxASSERT(NULL != m_pNotebook);
|
wxASSERT(NULL != m_pNotebook);
|
||||||
|
@ -607,13 +607,13 @@ void CMainFrame::OnRunBenchmarks( wxCommandEvent& WXUNUSED(event) )
|
||||||
m_pNotebook->SetSelection( ID_LIST_MESSAGESVIEW - ID_LIST_BASE );
|
m_pNotebook->SetSelection( ID_LIST_MESSAGESVIEW - ID_LIST_BASE );
|
||||||
pDoc->RunBenchmarks();
|
pDoc->RunBenchmarks();
|
||||||
|
|
||||||
wxLogTrace(wxT("CMainFrame::OnRunBenchmarks - Function End"));
|
wxLogTrace(wxT("Function Start/End"), wxT("CMainFrame::OnRunBenchmarks - Function End"));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
void CMainFrame::OnSelectComputer( wxCommandEvent& WXUNUSED(event) )
|
void CMainFrame::OnSelectComputer( wxCommandEvent& WXUNUSED(event) )
|
||||||
{
|
{
|
||||||
wxLogTrace(wxT("CMainFrame::OnSelectComputer - Function Begin"));
|
wxLogTrace(wxT("Function Start/End"), wxT("CMainFrame::OnSelectComputer - Function Begin"));
|
||||||
|
|
||||||
wxInt32 iRetVal = -1;
|
wxInt32 iRetVal = -1;
|
||||||
wxString strMachine = wxEmptyString;
|
wxString strMachine = wxEmptyString;
|
||||||
|
@ -635,23 +635,23 @@ void CMainFrame::OnSelectComputer( wxCommandEvent& WXUNUSED(event) )
|
||||||
wxICON_ERROR
|
wxICON_ERROR
|
||||||
);
|
);
|
||||||
|
|
||||||
wxLogTrace(wxT("CMainFrame::OnSelectComputer - Function End"));
|
wxLogTrace(wxT("Function Start/End"), wxT("CMainFrame::OnSelectComputer - Function End"));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
void CMainFrame::OnExit( wxCommandEvent& WXUNUSED(event) )
|
void CMainFrame::OnExit( wxCommandEvent& WXUNUSED(event) )
|
||||||
{
|
{
|
||||||
wxLogTrace(wxT("CMainFrame::OnExit - Function Begin"));
|
wxLogTrace(wxT("Function Start/End"), wxT("CMainFrame::OnExit - Function Begin"));
|
||||||
|
|
||||||
Close(true);
|
Close(true);
|
||||||
|
|
||||||
wxLogTrace(wxT("CMainFrame::OnExit - Function End"));
|
wxLogTrace(wxT("Function Start/End"), wxT("CMainFrame::OnExit - Function End"));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
void CMainFrame::OnToolsOptions( wxCommandEvent& WXUNUSED(event) )
|
void CMainFrame::OnToolsOptions( wxCommandEvent& WXUNUSED(event) )
|
||||||
{
|
{
|
||||||
wxLogTrace(wxT("CMainFrame::OnToolsOptions - Function Begin"));
|
wxLogTrace(wxT("Function Start/End"), wxT("CMainFrame::OnToolsOptions - Function Begin"));
|
||||||
|
|
||||||
CMainDocument* pDoc = wxGetApp().GetDocument();
|
CMainDocument* pDoc = wxGetApp().GetDocument();
|
||||||
CDlgOptions* pDlg = new CDlgOptions(this);
|
CDlgOptions* pDlg = new CDlgOptions(this);
|
||||||
|
@ -732,13 +732,13 @@ void CMainFrame::OnToolsOptions( wxCommandEvent& WXUNUSED(event) )
|
||||||
if (pDlg)
|
if (pDlg)
|
||||||
pDlg->Destroy();
|
pDlg->Destroy();
|
||||||
|
|
||||||
wxLogTrace(wxT("CMainFrame::OnToolsOptions - Function End"));
|
wxLogTrace(wxT("Function Start/End"), wxT("CMainFrame::OnToolsOptions - Function End"));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
void CMainFrame::OnAbout( wxCommandEvent& WXUNUSED(event) )
|
void CMainFrame::OnAbout( wxCommandEvent& WXUNUSED(event) )
|
||||||
{
|
{
|
||||||
wxLogTrace(wxT("CMainFrame::OnAbout - Function Begin"));
|
wxLogTrace(wxT("Function Start/End"), wxT("CMainFrame::OnAbout - Function Begin"));
|
||||||
|
|
||||||
CDlgAbout* pDlg = new CDlgAbout(this);
|
CDlgAbout* pDlg = new CDlgAbout(this);
|
||||||
wxASSERT(NULL != pDlg);
|
wxASSERT(NULL != pDlg);
|
||||||
|
@ -748,13 +748,13 @@ void CMainFrame::OnAbout( wxCommandEvent& WXUNUSED(event) )
|
||||||
if (pDlg)
|
if (pDlg)
|
||||||
pDlg->Destroy();
|
pDlg->Destroy();
|
||||||
|
|
||||||
wxLogTrace(wxT("CMainFrame::OnAbout - Function End"));
|
wxLogTrace(wxT("Function Start/End"), wxT("CMainFrame::OnAbout - Function End"));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
void CMainFrame::OnUpdateActivitySelection( wxUpdateUIEvent& event )
|
void CMainFrame::OnUpdateActivitySelection( wxUpdateUIEvent& event )
|
||||||
{
|
{
|
||||||
wxLogTrace(wxT("CMainFrame::OnUpdateActivitySelection - Function Begin"));
|
wxLogTrace(wxT("Function Start/End"), wxT("CMainFrame::OnUpdateActivitySelection - Function Begin"));
|
||||||
|
|
||||||
CMainDocument* pDoc = wxGetApp().GetDocument();
|
CMainDocument* pDoc = wxGetApp().GetDocument();
|
||||||
wxMenuBar* pMenuBar = GetMenuBar();
|
wxMenuBar* pMenuBar = GetMenuBar();
|
||||||
|
@ -785,13 +785,13 @@ void CMainFrame::OnUpdateActivitySelection( wxUpdateUIEvent& event )
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
wxLogTrace(wxT("CMainFrame::OnUpdateActivitySelection - Function End"));
|
wxLogTrace(wxT("Function Start/End"), wxT("CMainFrame::OnUpdateActivitySelection - Function End"));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
void CMainFrame::OnUpdateNetworkSelection( wxUpdateUIEvent& event )
|
void CMainFrame::OnUpdateNetworkSelection( wxUpdateUIEvent& event )
|
||||||
{
|
{
|
||||||
wxLogTrace(wxT("CMainFrame::OnUpdateNetworkSelection - Function Begin"));
|
wxLogTrace(wxT("Function Start/End"), wxT("CMainFrame::OnUpdateNetworkSelection - Function Begin"));
|
||||||
|
|
||||||
CMainDocument* pDoc = wxGetApp().GetDocument();
|
CMainDocument* pDoc = wxGetApp().GetDocument();
|
||||||
wxMenuBar* pMenuBar = GetMenuBar();
|
wxMenuBar* pMenuBar = GetMenuBar();
|
||||||
|
@ -822,13 +822,13 @@ void CMainFrame::OnUpdateNetworkSelection( wxUpdateUIEvent& event )
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
wxLogTrace(wxT("CMainFrame::OnUpdateNetworkSelection - Function End"));
|
wxLogTrace(wxT("Function Start/End"), wxT("CMainFrame::OnUpdateNetworkSelection - Function End"));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
void CMainFrame::OnIdle( wxIdleEvent& event )
|
void CMainFrame::OnIdle( wxIdleEvent& event )
|
||||||
{
|
{
|
||||||
wxLogTrace(wxT("CMainFrame::OnIdle - Function Begin"));
|
wxLogTrace(wxT("Function Start/End"), wxT("CMainFrame::OnIdle - Function Begin"));
|
||||||
|
|
||||||
CMainDocument* pDoc = wxGetApp().GetDocument();
|
CMainDocument* pDoc = wxGetApp().GetDocument();
|
||||||
|
|
||||||
|
@ -840,26 +840,26 @@ void CMainFrame::OnIdle( wxIdleEvent& event )
|
||||||
|
|
||||||
event.Skip();
|
event.Skip();
|
||||||
|
|
||||||
wxLogTrace(wxT("CMainFrame::OnIdle - Function End"));
|
wxLogTrace(wxT("Function Start/End"), wxT("CMainFrame::OnIdle - Function End"));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
void CMainFrame::OnClose( wxCloseEvent& event )
|
void CMainFrame::OnClose( wxCloseEvent& event )
|
||||||
{
|
{
|
||||||
wxLogTrace(wxT("CMainFrame::OnClose - Function Begin"));
|
wxLogTrace(wxT("Function Start/End"), wxT("CMainFrame::OnClose - Function Begin"));
|
||||||
|
|
||||||
if ( !event.CanVeto() )
|
if ( !event.CanVeto() )
|
||||||
Destroy();
|
Destroy();
|
||||||
else
|
else
|
||||||
Hide();
|
Hide();
|
||||||
|
|
||||||
wxLogTrace(wxT("CMainFrame::OnClose - Function End"));
|
wxLogTrace(wxT("Function Start/End"), wxT("CMainFrame::OnClose - Function End"));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
void CMainFrame::OnSize( wxSizeEvent& event )
|
void CMainFrame::OnSize( wxSizeEvent& event )
|
||||||
{
|
{
|
||||||
wxLogTrace(wxT("CMainFrame::OnSize - Function Begin"));
|
wxLogTrace(wxT("Function Start/End"), wxT("CMainFrame::OnSize - Function Begin"));
|
||||||
|
|
||||||
if ( IsShown() )
|
if ( IsShown() )
|
||||||
{
|
{
|
||||||
|
@ -886,13 +886,13 @@ void CMainFrame::OnSize( wxSizeEvent& event )
|
||||||
|
|
||||||
event.Skip();
|
event.Skip();
|
||||||
|
|
||||||
wxLogTrace(wxT("CMainFrame::OnSize - Function End"));
|
wxLogTrace(wxT("Function Start/End"), wxT("CMainFrame::OnSize - Function End"));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
void CMainFrame::OnChar( wxKeyEvent& event )
|
void CMainFrame::OnChar( wxKeyEvent& event )
|
||||||
{
|
{
|
||||||
wxLogTrace(wxT("CMainFrame::OnChar - Function Begin"));
|
wxLogTrace(wxT("Function Start/End"), wxT("CMainFrame::OnChar - Function Begin"));
|
||||||
|
|
||||||
if ( IsShown() )
|
if ( IsShown() )
|
||||||
{
|
{
|
||||||
|
@ -912,13 +912,13 @@ void CMainFrame::OnChar( wxKeyEvent& event )
|
||||||
|
|
||||||
event.Skip();
|
event.Skip();
|
||||||
|
|
||||||
wxLogTrace(wxT("CMainFrame::OnChar - Function End"));
|
wxLogTrace(wxT("Function Start/End"), wxT("CMainFrame::OnChar - Function End"));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
void CMainFrame::OnNotebookSelectionChanged( wxNotebookEvent& event )
|
void CMainFrame::OnNotebookSelectionChanged( wxNotebookEvent& event )
|
||||||
{
|
{
|
||||||
wxLogTrace(wxT("CMainFrame::OnNotebookSelectionChanged - Function Begin"));
|
wxLogTrace(wxT("Function Start/End"), wxT("CMainFrame::OnNotebookSelectionChanged - Function Begin"));
|
||||||
|
|
||||||
if ( (-1 != event.GetSelection()) && IsShown() )
|
if ( (-1 != event.GetSelection()) && IsShown() )
|
||||||
{
|
{
|
||||||
|
@ -940,13 +940,13 @@ void CMainFrame::OnNotebookSelectionChanged( wxNotebookEvent& event )
|
||||||
|
|
||||||
event.Skip();
|
event.Skip();
|
||||||
|
|
||||||
wxLogTrace(wxT("CMainFrame::OnNotebookSelectionChanged - Function End"));
|
wxLogTrace(wxT("Function Start/End"), wxT("CMainFrame::OnNotebookSelectionChanged - Function End"));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
void CMainFrame::OnListSelected( wxListEvent& event )
|
void CMainFrame::OnListSelected( wxListEvent& event )
|
||||||
{
|
{
|
||||||
wxLogTrace(wxT("CMainFrame::OnListSelected - Function Begin"));
|
wxLogTrace(wxT("Function Start/End"), wxT("CMainFrame::OnListSelected - Function Begin"));
|
||||||
|
|
||||||
if ( IsShown() )
|
if ( IsShown() )
|
||||||
{
|
{
|
||||||
|
@ -966,13 +966,13 @@ void CMainFrame::OnListSelected( wxListEvent& event )
|
||||||
|
|
||||||
event.Skip();
|
event.Skip();
|
||||||
|
|
||||||
wxLogTrace(wxT("CMainFrame::OnListSelected - Function End"));
|
wxLogTrace(wxT("Function Start/End"), wxT("CMainFrame::OnListSelected - Function End"));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
void CMainFrame::OnListDeselected( wxListEvent& event )
|
void CMainFrame::OnListDeselected( wxListEvent& event )
|
||||||
{
|
{
|
||||||
wxLogTrace(wxT("CMainFrame::OnListDeselected - Function Begin"));
|
wxLogTrace(wxT("Function Start/End"), wxT("CMainFrame::OnListDeselected - Function Begin"));
|
||||||
|
|
||||||
if ( IsShown() )
|
if ( IsShown() )
|
||||||
{
|
{
|
||||||
|
@ -992,13 +992,13 @@ void CMainFrame::OnListDeselected( wxListEvent& event )
|
||||||
|
|
||||||
event.Skip();
|
event.Skip();
|
||||||
|
|
||||||
wxLogTrace(wxT("CMainFrame::OnListDeselected - Function End"));
|
wxLogTrace(wxT("Function Start/End"), wxT("CMainFrame::OnListDeselected - Function End"));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
void CMainFrame::OnFrameRender( wxTimerEvent &event )
|
void CMainFrame::OnFrameRender( wxTimerEvent &event )
|
||||||
{
|
{
|
||||||
wxLogTrace(wxT("CMainFrame::OnFrameRender - Function Begin"));
|
wxLogTrace(wxT("Function Start/End"), wxT("CMainFrame::OnFrameRender - Function Begin"));
|
||||||
|
|
||||||
if ( IsShown() )
|
if ( IsShown() )
|
||||||
{
|
{
|
||||||
|
@ -1035,13 +1035,13 @@ void CMainFrame::OnFrameRender( wxTimerEvent &event )
|
||||||
|
|
||||||
event.Skip();
|
event.Skip();
|
||||||
|
|
||||||
wxLogTrace(wxT("CMainFrame::OnFrameRender - Function End"));
|
wxLogTrace(wxT("Function Start/End"), wxT("CMainFrame::OnFrameRender - Function End"));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
void CMainFrame::OnListPanelRender( wxTimerEvent &event )
|
void CMainFrame::OnListPanelRender( wxTimerEvent &event )
|
||||||
{
|
{
|
||||||
wxLogTrace(wxT("CMainFrame::OnListPanelRender - Function Begin"));
|
wxLogTrace(wxT("Function Start/End"), wxT("CMainFrame::OnListPanelRender - Function Begin"));
|
||||||
|
|
||||||
if ( IsShown() )
|
if ( IsShown() )
|
||||||
{
|
{
|
||||||
|
@ -1061,13 +1061,13 @@ void CMainFrame::OnListPanelRender( wxTimerEvent &event )
|
||||||
|
|
||||||
event.Skip();
|
event.Skip();
|
||||||
|
|
||||||
wxLogTrace(wxT("CMainFrame::OnListPanelRender - Function End"));
|
wxLogTrace(wxT("Function Start/End"), wxT("CMainFrame::OnListPanelRender - Function End"));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
void CMainFrame::OnTaskPanelRender( wxTimerEvent &event )
|
void CMainFrame::OnTaskPanelRender( wxTimerEvent &event )
|
||||||
{
|
{
|
||||||
wxLogTrace(wxT("CMainFrame::OnTaskPanelRender - Function Begin"));
|
wxLogTrace(wxT("Function Start/End"), wxT("CMainFrame::OnTaskPanelRender - Function Begin"));
|
||||||
|
|
||||||
if ( IsShown() )
|
if ( IsShown() )
|
||||||
{
|
{
|
||||||
|
@ -1087,6 +1087,6 @@ void CMainFrame::OnTaskPanelRender( wxTimerEvent &event )
|
||||||
|
|
||||||
event.Skip();
|
event.Skip();
|
||||||
|
|
||||||
wxLogTrace(wxT("CMainFrame::OnTaskPanelRender - Function End"));
|
wxLogTrace(wxT("Function Start/End"), wxT("CMainFrame::OnTaskPanelRender - Function End"));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -124,6 +124,7 @@
|
||||||
#include <ctime>
|
#include <ctime>
|
||||||
#include <fcntl.h>
|
#include <fcntl.h>
|
||||||
|
|
||||||
|
|
||||||
// C++ headers
|
// C++ headers
|
||||||
#include <algorithm>
|
#include <algorithm>
|
||||||
#include <stdexcept>
|
#include <stdexcept>
|
||||||
|
|
Loading…
Reference in New Issue