*** empty log message ***

svn path=/trunk/boinc/; revision=3246
This commit is contained in:
Rom Walton 2004-04-11 05:09:18 +00:00
parent c6f88a36fb
commit 89b6167aca
32 changed files with 68 additions and 27 deletions

View File

@ -57,4 +57,5 @@ public:
DECLARE_APP(CBOINCGUIApp)
#endif
#endif

View File

@ -51,3 +51,4 @@ wxString CBaseListCtrlView::GetViewName(void)
{
return wxString(_T("Undefined"));
}

View File

@ -39,4 +39,5 @@ public:
};
#endif
#endif

View File

@ -51,3 +51,4 @@ wxString CBaseWindowView::GetViewName(void)
{
return wxString(_T("Undefined"));
}

View File

@ -39,4 +39,5 @@ public:
};
#endif
#endif

View File

@ -136,3 +136,4 @@ bool CDlgAbout::ShowToolTips()
{
return TRUE;
}

View File

@ -59,3 +59,4 @@ public:
#endif
// _DLGABOUT_H_

View File

@ -111,3 +111,4 @@ bool CDlgAttachProject::ShowToolTips()
{
return TRUE;
}

View File

@ -64,3 +64,4 @@ public:
#endif
// _DLGATTACHPROJECT_H_

View File

@ -94,3 +94,4 @@ bool CDlgConnection::ShowToolTips()
{
return TRUE;
}

View File

@ -59,3 +59,4 @@ public:
#endif
// _DLGCONNECTION_H_

View File

@ -254,3 +254,4 @@ bool CDlgOptions::ShowToolTips()
{
return TRUE;
}

View File

@ -102,3 +102,4 @@ public:
#endif
// _DLGOPTIONS_H_

View File

@ -28,4 +28,5 @@ enum {
} enumEvents;
#endif
#endif

View File

@ -35,3 +35,4 @@ CMainDocument::CMainDocument(void)
CMainDocument::~CMainDocument(void)
{
}

View File

@ -35,4 +35,5 @@ public:
};
#endif
#endif

View File

@ -34,6 +34,7 @@
#include "Events.h"
#include "DlgAbout.h"
#include "DlgOptions.h"
#include "DlgAttachProject.h"
#include "res/BOINCGUIApp.xpm"
@ -41,13 +42,14 @@ IMPLEMENT_DYNAMIC_CLASS(CMainFrame, wxFrame)
BEGIN_EVENT_TABLE (CMainFrame, wxFrame)
EVT_CLOSE ( CMainFrame::OnClose)
EVT_IDLE ( CMainFrame::OnIdle)
EVT_MENU (wxID_EXIT, CMainFrame::OnExit)
EVT_MENU (ID_TOOLSOPTIONS, CMainFrame::OnToolsOptions)
EVT_MENU (wxID_ABOUT, CMainFrame::OnAbout)
EVT_MENU (ID_STATUSBAR, CMainFrame::OnStatusbar)
EVT_UPDATE_UI (ID_STATUSBAR, CMainFrame::OnStatusbarUI)
EVT_CLOSE ( CMainFrame::OnClose)
EVT_IDLE ( CMainFrame::OnIdle)
EVT_MENU (wxID_EXIT, CMainFrame::OnExit)
EVT_MENU (ID_COMMANDSATTACHPROJECT, CMainFrame::OnCommandsAttachProject)
EVT_MENU (ID_TOOLSOPTIONS, CMainFrame::OnToolsOptions)
EVT_MENU (wxID_ABOUT, CMainFrame::OnAbout)
EVT_MENU (ID_STATUSBAR, CMainFrame::OnStatusbar)
EVT_UPDATE_UI (ID_STATUSBAR, CMainFrame::OnStatusbarUI)
END_EVENT_TABLE ()
@ -93,7 +95,7 @@ bool CMainFrame::CreateMenu() {
// Commands menu
wxMenu *menuCommands = new wxMenu;
menuCommands->Append(wxID_EXIT, _("&Attach to Project..."));
menuCommands->Append(ID_COMMANDSATTACHPROJECT, _("&Attach to Project..."));
// Tools menu
wxMenu *menuTools = new wxMenu;
@ -149,15 +151,11 @@ bool CMainFrame::CreateNotebookPage(wxWindow* pwndNewNotebookPage) {
wxASSERT(pwndNewNotebookPage->IsKindOf(CLASSINFO(CBaseListCtrlView)) ||
pwndNewNotebookPage->IsKindOf(CLASSINFO(CBaseWindowView)));
if(pwndNewNotebookPage->IsKindOf(CLASSINFO(CBaseListCtrlView)))
{
if(pwndNewNotebookPage->IsKindOf(CLASSINFO(CBaseListCtrlView))) {
CBaseListCtrlView* pPage = (CBaseListCtrlView*)pwndNewNotebookPage;
m_pNotebook->AddPage(pPage, pPage->GetViewName(), true, -1);
}
else
{
if(pwndNewNotebookPage->IsKindOf(CLASSINFO(CBaseWindowView)))
{
} else {
if(pwndNewNotebookPage->IsKindOf(CLASSINFO(CBaseWindowView))) {
CBaseWindowView* pPage = (CBaseWindowView*)pwndNewNotebookPage;
m_pNotebook->AddPage(pPage, pPage->GetViewName(), true, -1);
}
@ -227,6 +225,16 @@ void CMainFrame::OnClose(wxCloseEvent &event) {
}
void CMainFrame::OnCommandsAttachProject(wxCommandEvent &WXUNUSED(event)) {
CDlgAttachProject* pDlg = new CDlgAttachProject(this);
pDlg->ShowModal();
if (pDlg)
delete pDlg;
}
void CMainFrame::OnToolsOptions(wxCommandEvent &WXUNUSED(event)) {
CDlgOptions* pDlg = new CDlgOptions(this);
@ -259,3 +267,4 @@ void CMainFrame::OnStatusbar (wxCommandEvent &WXUNUSED(event)) {
void CMainFrame::OnStatusbarUI (wxUpdateUIEvent &event) {
event.Check(m_pStatusbar != NULL);
}

View File

@ -39,6 +39,7 @@ public:
void OnIdle(wxIdleEvent &event);
void OnExit(wxCommandEvent &event);
void OnCommandsAttachProject(wxCommandEvent &event);
void OnToolsOptions(wxCommandEvent &event);
void OnAbout(wxCommandEvent &event);
void OnStatusbar(wxCommandEvent &event);
@ -71,4 +72,5 @@ private:
};
#endif
#endif

View File

@ -51,3 +51,4 @@ wxString CMessagesView::GetViewName(void)
{
return wxString(_("Messages"));
}

View File

@ -41,4 +41,5 @@ public:
};
#endif
#endif

View File

@ -53,3 +53,4 @@ wxString CProjectsView::GetViewName(void)
{
return wxString(_("Projects"));
}

View File

@ -41,4 +41,5 @@ public:
};
#endif
#endif

View File

@ -52,3 +52,4 @@ wxString CResourceUtilizationView::GetViewName(void)
{
return wxString(_("Disk"));
}

View File

@ -41,4 +41,5 @@ public:
};
#endif
#endif

View File

@ -55,3 +55,4 @@ wxString CTransfersView::GetViewName(void)
{
return wxString(_("Transfers"));
}

View File

@ -41,4 +41,5 @@ public:
};
#endif
#endif

View File

@ -56,3 +56,4 @@ wxString CWorkView::GetViewName(void)
{
return wxString(_("Work"));
}

View File

@ -41,4 +41,5 @@ public:
};
#endif
#endif

View File

@ -10,3 +10,4 @@
* Visual Studio the opportunity to parse the file and add its contents to intellisense.
*/
#include <wx/msw/__wx_intellisense_inc.h>

View File

@ -15,3 +15,4 @@
#define _APS_NEXT_SYMED_VALUE 101
#endif
#endif

View File

@ -33,3 +33,4 @@
// TODO: reference any additional headers you need in STDAFX.H
// and not in this file

View File

@ -48,4 +48,5 @@
#include <wx/settings.h> // system settings
#include <wx/statline.h> // static line
#endif
#endif