*** empty log message ***

svn path=/trunk/boinc/; revision=3244
This commit is contained in:
Rom Walton 2004-04-11 04:12:44 +00:00
parent b6266558b2
commit 78da63e17c
23 changed files with 122 additions and 33 deletions

View File

@ -27,7 +27,7 @@
EnableFunctionLevelLinking="TRUE"
UsePrecompiledHeader="3"
PrecompiledHeaderThrough="stdwx.h"
WarningLevel="3"
WarningLevel="4"
Detect64BitPortabilityProblems="FALSE"
DebugInformationFormat="4"/>
<Tool
@ -248,10 +248,31 @@
Filter="rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx;xrc"
UniqueIdentifier="{08DB1F42-8D4B-491a-870C-2A991D5ED0DB}">
<File
RelativePath=".\res\boincguiApp.ico">
RelativePath=".\res\BOINCGUIApp.ico">
</File>
<File
RelativePath=".\boincguiApp.rc">
RelativePath=".\BOINCGUIApp.rc">
</File>
<File
RelativePath=".\res\BOINCGUIApp.xpm">
</File>
<File
RelativePath=".\res\boincsm.xpm">
</File>
<File
RelativePath=".\res\mess.xpm">
</File>
<File
RelativePath=".\res\proj.xpm">
</File>
<File
RelativePath=".\res\result.xpm">
</File>
<File
RelativePath=".\res\usage.xpm">
</File>
<File
RelativePath=".\res\xfer.xpm">
</File>
</Filter>
</Files>

View File

@ -19,9 +19,9 @@
#include "stdwx.h"
#include "boincguiapp.h"
#include "mainframe.h"
#include "maindocument.h"
#include "BOINCGUIApp.h"
#include "MainFrame.h"
#include "MainDocument.h"
IMPLEMENT_APP(CBOINCGUIApp)

View File

@ -19,8 +19,8 @@
#pragma once
#include "mainframe.h"
#include "maindocument.h"
#include "MainFrame.h"
#include "MainDocument.h"
class CBOINCGUIApp : public wxApp

View File

@ -23,7 +23,7 @@
//
#include "stdwx.h"
#include ".\baselistctrlview.h"
#include "BaseListCtrlView.h"
IMPLEMENT_DYNAMIC_CLASS(CBaseListCtrlView, wxListCtrl)

View File

@ -23,7 +23,7 @@
//
#include "stdwx.h"
#include ".\basewindowview.h"
#include "BaseWindowView.h"
IMPLEMENT_DYNAMIC_CLASS(CBaseWindowView, wxPanel)

View File

@ -21,6 +21,6 @@
enum {
ID_STATUSBAR = wxID_HIGHEST + 1,
ID_TOOLSOPTIONS
} enumEvents;

View File

@ -18,7 +18,7 @@
//
#include "stdwx.h"
#include ".\maindocument.h"
#include "MainDocument.h"
IMPLEMENT_DYNAMIC_CLASS(CMainDocument, wxObject)

View File

@ -29,7 +29,9 @@
#include "WorkView.h"
#include "Events.h"
#include "DlgAbout.h"
#include "DlgOptions.h"
#include "res/BOINCGUIApp.xpm"
IMPLEMENT_DYNAMIC_CLASS(CMainFrame, wxFrame)
@ -38,6 +40,7 @@ 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)
@ -90,7 +93,7 @@ bool CMainFrame::CreateMenu() {
// Tools menu
wxMenu *menuTools = new wxMenu;
menuTools->Append(wxID_EXIT, _("&Options"));
menuTools->Append(ID_TOOLSOPTIONS, _("&Options"));
// Help menu
wxMenu *menuHelp = new wxMenu;
@ -220,6 +223,16 @@ void CMainFrame::OnClose(wxCloseEvent &event) {
}
void CMainFrame::OnToolsOptions(wxCommandEvent &WXUNUSED(event)) {
CDlgOptions* pDlg = new CDlgOptions(this);
pDlg->ShowModal();
if (pDlg)
delete pDlg;
}
void CMainFrame::OnExit(wxCommandEvent &WXUNUSED(event)) {
Close(true);
}

View File

@ -29,15 +29,16 @@ public:
~CMainFrame(void);
void OnClose (wxCloseEvent &event);
void OnIdle (wxIdleEvent &event);
void OnClose(wxCloseEvent &event);
void OnIdle(wxIdleEvent &event);
void OnAbout (wxCommandEvent &event);
void OnExit (wxCommandEvent &event);
void OnStatusbar (wxCommandEvent &event);
void OnExit(wxCommandEvent &event);
void OnToolsOptions(wxCommandEvent &event);
void OnAbout(wxCommandEvent &event);
void OnStatusbar(wxCommandEvent &event);
void OnToolbarsUI (wxUpdateUIEvent &event);
void OnStatusbarUI (wxUpdateUIEvent &event);
void OnToolbarsUI(wxUpdateUIEvent &event);
void OnStatusbarUI(wxUpdateUIEvent &event);
private:

View File

@ -18,7 +18,7 @@
//
#include "stdwx.h"
#include ".\messagesview.h"
#include "MessagesView.h"
IMPLEMENT_DYNAMIC_CLASS(CMessagesView, CBaseListCtrlView)

View File

@ -18,7 +18,7 @@
//
#pragma once
#include "baselistctrlview.h"
#include "BaseListCtrlView.h"
class CMessagesView : public CBaseListCtrlView
{

View File

@ -18,7 +18,7 @@
//
#include "stdwx.h"
#include ".\projectsview.h"
#include "ProjectsView.h"
IMPLEMENT_DYNAMIC_CLASS(CProjectsView, CBaseListCtrlView)

View File

@ -18,7 +18,7 @@
//
#pragma once
#include "baselistctrlview.h"
#include "BaseListCtrlView.h"
class CProjectsView : public CBaseListCtrlView
{

View File

@ -18,7 +18,7 @@
//
#include "stdwx.h"
#include ".\resourceutilizationview.h"
#include "ResourceUtilizationView.h"
IMPLEMENT_DYNAMIC_CLASS(CResourceUtilizationView, CBaseWindowView)

View File

@ -18,7 +18,7 @@
//
#pragma once
#include "basewindowview.h"
#include "BaseWindowView.h"
class CResourceUtilizationView : public CBaseWindowView
{

View File

@ -18,7 +18,7 @@
//
#include "stdwx.h"
#include ".\transfersview.h"
#include "TransfersView.h"
IMPLEMENT_DYNAMIC_CLASS(CTransfersView, CBaseListCtrlView)

View File

@ -18,8 +18,7 @@
//
#pragma once
#include "mainframe.h"
#include "baselistctrlview.h"
#include "BaseListCtrlView.h"
class CTransfersView : public CBaseListCtrlView
{

View File

@ -18,7 +18,7 @@
//
#include "stdwx.h"
#include ".\workview.h"
#include "WorkView.h"
IMPLEMENT_DYNAMIC_CLASS(CWorkView, CBaseListCtrlView)

View File

@ -18,8 +18,7 @@
//
#pragma once
#include "mainframe.h"
#include "baselistctrlview.h"
#include "BaseListCtrlView.h"
class CWorkView : public CBaseListCtrlView
{

View File

@ -0,0 +1,51 @@
/* XPM */
static char *APP_ICON_xpm[] = {
"16 16 32 1",
" c None",
". c #000066",
"X c #000033",
"o c #333333",
"O c #555555",
"+ c #000080",
"@ c #4D4D4D",
"# c #996666",
"$ c #393939",
"% c #000099",
"& c #424242",
"* c #FFCC99",
"= c #FFCC66",
"- c #999933",
"; c #808080",
": c #CC9966",
"> c #CC9933",
", c #CCCC33",
"< c #333366",
"1 c #292929",
"2 c #FFCC33",
"3 c #5F5F5F",
"4 c #666633",
"5 c #333399",
"6 c #666666",
"7 c #996633",
"8 c #CCCC66",
"9 c #666699",
"0 c #777777",
"q c #666600",
"w c #868686",
"e c #969696",
" .XoO ",
" +.XXXXXXO ",
" +.XX@###$XO ",
" %+X&***===-X; ",
" %++X:*=>.,,-<$ ",
" ++.X1=23.2-4O< ",
"5++.X6=2O>27O<<@",
"++.XX82>-,27&<11",
"...X1=>69@2>7<o1",
"<.XX4=>05X>>qO<<",
" XXX-2-<XX24O9< ",
" XXX727XX>-&w9< ",
" 0XXX>>>>73ew3 ",
" 3XX4446ww93 ",
" 0o<6ww96O ",
" 0660 "};

View File

@ -1,7 +1,7 @@
/* XPM */
static char *boincsm_xpm[] = {
"50 50 84 1",
" c #848484",
" c None",
". c #94B5D6",
"X c #9CCEFF",
"o c #8C9CB5",

View File

@ -23,9 +23,13 @@
#include "stdwx.h"
#ifdef __WXMSW__
#ifndef __WIN95__
#error An error in wxWindows version 2.4.0 and 2.4.1 require that you set WINVER=0x400 in the project settings!
#endif
#endif
// TODO: reference any additional headers you need in STDAFX.H
// and not in this file

View File

@ -42,6 +42,7 @@
#include <wx/config.h> // configuration support
#include <wx/intl.h> // internationalization
#include <wx/listctrl.h> // list control support
#include <wx/msgdlg.h> // messagebox dialog
#include <wx/notebook.h> // notebook support
#include <wx/toolbar.h> // toolbars support
#include <wx/settings.h> // system settings