mirror of https://github.com/BOINC/boinc.git
*** empty log message ***
svn path=/trunk/boinc/; revision=3246
This commit is contained in:
parent
c6f88a36fb
commit
89b6167aca
|
@ -57,4 +57,5 @@ public:
|
|||
DECLARE_APP(CBOINCGUIApp)
|
||||
|
||||
|
||||
#endif
|
||||
#endif
|
||||
|
||||
|
|
|
@ -51,3 +51,4 @@ wxString CBaseListCtrlView::GetViewName(void)
|
|||
{
|
||||
return wxString(_T("Undefined"));
|
||||
}
|
||||
|
||||
|
|
|
@ -39,4 +39,5 @@ public:
|
|||
};
|
||||
|
||||
|
||||
#endif
|
||||
#endif
|
||||
|
||||
|
|
|
@ -51,3 +51,4 @@ wxString CBaseWindowView::GetViewName(void)
|
|||
{
|
||||
return wxString(_T("Undefined"));
|
||||
}
|
||||
|
||||
|
|
|
@ -39,4 +39,5 @@ public:
|
|||
};
|
||||
|
||||
|
||||
#endif
|
||||
#endif
|
||||
|
||||
|
|
|
@ -136,3 +136,4 @@ bool CDlgAbout::ShowToolTips()
|
|||
{
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
|
|
|
@ -59,3 +59,4 @@ public:
|
|||
|
||||
#endif
|
||||
// _DLGABOUT_H_
|
||||
|
||||
|
|
|
@ -111,3 +111,4 @@ bool CDlgAttachProject::ShowToolTips()
|
|||
{
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
|
|
|
@ -64,3 +64,4 @@ public:
|
|||
|
||||
#endif
|
||||
// _DLGATTACHPROJECT_H_
|
||||
|
||||
|
|
|
@ -94,3 +94,4 @@ bool CDlgConnection::ShowToolTips()
|
|||
{
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
|
|
|
@ -59,3 +59,4 @@ public:
|
|||
|
||||
#endif
|
||||
// _DLGCONNECTION_H_
|
||||
|
||||
|
|
|
@ -254,3 +254,4 @@ bool CDlgOptions::ShowToolTips()
|
|||
{
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
|
|
|
@ -102,3 +102,4 @@ public:
|
|||
|
||||
#endif
|
||||
// _DLGOPTIONS_H_
|
||||
|
||||
|
|
|
@ -28,4 +28,5 @@ enum {
|
|||
} enumEvents;
|
||||
|
||||
|
||||
#endif
|
||||
#endif
|
||||
|
||||
|
|
|
@ -35,3 +35,4 @@ CMainDocument::CMainDocument(void)
|
|||
CMainDocument::~CMainDocument(void)
|
||||
{
|
||||
}
|
||||
|
||||
|
|
|
@ -35,4 +35,5 @@ public:
|
|||
};
|
||||
|
||||
|
||||
#endif
|
||||
#endif
|
||||
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
|
@ -51,3 +51,4 @@ wxString CMessagesView::GetViewName(void)
|
|||
{
|
||||
return wxString(_("Messages"));
|
||||
}
|
||||
|
||||
|
|
|
@ -41,4 +41,5 @@ public:
|
|||
};
|
||||
|
||||
|
||||
#endif
|
||||
#endif
|
||||
|
||||
|
|
|
@ -53,3 +53,4 @@ wxString CProjectsView::GetViewName(void)
|
|||
{
|
||||
return wxString(_("Projects"));
|
||||
}
|
||||
|
||||
|
|
|
@ -41,4 +41,5 @@ public:
|
|||
};
|
||||
|
||||
|
||||
#endif
|
||||
#endif
|
||||
|
||||
|
|
|
@ -52,3 +52,4 @@ wxString CResourceUtilizationView::GetViewName(void)
|
|||
{
|
||||
return wxString(_("Disk"));
|
||||
}
|
||||
|
||||
|
|
|
@ -41,4 +41,5 @@ public:
|
|||
};
|
||||
|
||||
|
||||
#endif
|
||||
#endif
|
||||
|
||||
|
|
|
@ -55,3 +55,4 @@ wxString CTransfersView::GetViewName(void)
|
|||
{
|
||||
return wxString(_("Transfers"));
|
||||
}
|
||||
|
||||
|
|
|
@ -41,4 +41,5 @@ public:
|
|||
};
|
||||
|
||||
|
||||
#endif
|
||||
#endif
|
||||
|
||||
|
|
|
@ -56,3 +56,4 @@ wxString CWorkView::GetViewName(void)
|
|||
{
|
||||
return wxString(_("Work"));
|
||||
}
|
||||
|
||||
|
|
|
@ -41,4 +41,5 @@ public:
|
|||
};
|
||||
|
||||
|
||||
#endif
|
||||
#endif
|
||||
|
||||
|
|
|
@ -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>
|
||||
|
||||
|
|
|
@ -15,3 +15,4 @@
|
|||
#define _APS_NEXT_SYMED_VALUE 101
|
||||
#endif
|
||||
#endif
|
||||
|
||||
|
|
|
@ -33,3 +33,4 @@
|
|||
|
||||
// TODO: reference any additional headers you need in STDAFX.H
|
||||
// and not in this file
|
||||
|
||||
|
|
|
@ -48,4 +48,5 @@
|
|||
#include <wx/settings.h> // system settings
|
||||
#include <wx/statline.h> // static line
|
||||
|
||||
#endif
|
||||
#endif
|
||||
|
||||
|
|
Loading…
Reference in New Issue