From 1c2bf50196ce1fc09d2ca4ec072acffb10b45524 Mon Sep 17 00:00:00 2001 From: Rom Walton Date: Mon, 17 May 2004 22:15:10 +0000 Subject: [PATCH] *** empty log message *** svn path=/trunk/boinc/; revision=3388 --- clientgui/BOINCGUI.vcproj | 10 ++++- clientgui/BOINCGUIApp.cpp | 9 ++++ clientgui/BOINCGUIApp.h | 9 ++++ clientgui/BaseListCtrlView.cpp | 9 ++++ clientgui/BaseListCtrlView.h | 9 ++++ clientgui/BaseWindowView.cpp | 9 ++++ clientgui/BaseWindowView.h | 9 ++++ clientgui/DlgAbout.cpp | 9 ++++ clientgui/DlgAbout.h | 9 ++++ clientgui/DlgAttachProject.cpp | 9 ++++ clientgui/DlgAttachProject.h | 9 ++++ clientgui/DlgConnection.cpp | 9 ++++ clientgui/DlgConnection.h | 9 ++++ clientgui/DlgOptions.cpp | 9 ++++ clientgui/DlgOptions.h | 9 ++++ clientgui/Events.h | 9 ++++ clientgui/MainDocument.cpp | 9 ++++ clientgui/MainDocument.h | 9 ++++ clientgui/MainFrame.cpp | 9 ++++ clientgui/MainFrame.h | 10 +++++ clientgui/MessagesView.cpp | 9 ++++ clientgui/MessagesView.h | 10 +++++ clientgui/ProjectsView.cpp | 9 ++++ clientgui/ProjectsView.h | 10 +++++ clientgui/ResourceUtilizationView.cpp | 9 ++++ clientgui/ResourceUtilizationView.h | 9 ++++ clientgui/TransfersView.cpp | 9 ++++ clientgui/TransfersView.h | 9 ++++ clientgui/URLValidator.cpp | 65 +++++++++++++++++++++++++++ clientgui/URLValidator.h | 61 +++++++++++++++++++++++++ clientgui/WorkView.cpp | 9 ++++ clientgui/WorkView.h | 9 ++++ clientgui/res/BOINCGUIApp.xpm | 28 ++++++++++++ clientgui/res/boinc.xpm | 28 ++++++++++++ clientgui/res/boincsm.xpm | 28 ++++++++++++ clientgui/res/mess.xpm | 28 ++++++++++++ clientgui/res/proj.xpm | 28 ++++++++++++ clientgui/res/result.xpm | 28 ++++++++++++ clientgui/res/usage.xpm | 28 ++++++++++++ clientgui/res/xfer.xpm | 28 ++++++++++++ clientgui/resource.h | 2 - clientgui/stdwx.cpp | 13 ++++-- clientgui/stdwx.h | 54 +++++++++++++++++++--- 43 files changed, 679 insertions(+), 14 deletions(-) create mode 100644 clientgui/URLValidator.cpp create mode 100644 clientgui/URLValidator.h diff --git a/clientgui/BOINCGUI.vcproj b/clientgui/BOINCGUI.vcproj index f9bf81a738..04fc90fb33 100644 --- a/clientgui/BOINCGUI.vcproj +++ b/clientgui/BOINCGUI.vcproj @@ -34,7 +34,7 @@ Name="VCCustomBuildTool"/> + + @@ -239,6 +242,9 @@ + + diff --git a/clientgui/BOINCGUIApp.cpp b/clientgui/BOINCGUIApp.cpp index 3e97129a47..58cd7cb72b 100644 --- a/clientgui/BOINCGUIApp.cpp +++ b/clientgui/BOINCGUIApp.cpp @@ -1,3 +1,5 @@ +// $Id$ +// // The contents of this file are subject to the BOINC Public License // Version 1.0 (the "License"); you may not use this file except in // compliance with the License. You may obtain a copy of the License at @@ -16,6 +18,13 @@ // // Contributor(s): // +// Revision History: +// +// $Log$ +// Revision 1.6 2004/05/17 22:15:08 rwalton +// *** empty log message *** +// +// #if defined(__GNUG__) && !defined(__APPLE__) #pragma implementation "BOINCGUIApp.h" diff --git a/clientgui/BOINCGUIApp.h b/clientgui/BOINCGUIApp.h index a39f8ba944..3ece172e9b 100644 --- a/clientgui/BOINCGUIApp.h +++ b/clientgui/BOINCGUIApp.h @@ -1,3 +1,5 @@ +// $Id$ +// // The contents of this file are subject to the BOINC Public License // Version 1.0 (the "License"); you may not use this file except in // compliance with the License. You may obtain a copy of the License at @@ -16,6 +18,13 @@ // // Contributor(s): // +// Revision History: +// +// $Log$ +// Revision 1.5 2004/05/17 22:15:08 rwalton +// *** empty log message *** +// +// #ifndef _BOINCGUIAPP_H_ #define _BOINCGUIAPP_H_ diff --git a/clientgui/BaseListCtrlView.cpp b/clientgui/BaseListCtrlView.cpp index 2dc6560acf..f7902a3b05 100644 --- a/clientgui/BaseListCtrlView.cpp +++ b/clientgui/BaseListCtrlView.cpp @@ -1,3 +1,5 @@ +// $Id$ +// // The contents of this file are subject to the BOINC Public License // Version 1.0 (the "License"); you may not use this file except in // compliance with the License. You may obtain a copy of the License at @@ -16,6 +18,13 @@ // // Contributor(s): // +// Revision History: +// +// $Log$ +// Revision 1.6 2004/05/17 22:15:08 rwalton +// *** empty log message *** +// +// #if defined(__GNUG__) && !defined(__APPLE__) #pragma implementation "BaseListCtrlView.h" diff --git a/clientgui/BaseListCtrlView.h b/clientgui/BaseListCtrlView.h index 2ba60c05c0..1c82f0900d 100644 --- a/clientgui/BaseListCtrlView.h +++ b/clientgui/BaseListCtrlView.h @@ -1,3 +1,5 @@ +// $Id$ +// // The contents of this file are subject to the BOINC Public License // Version 1.0 (the "License"); you may not use this file except in // compliance with the License. You may obtain a copy of the License at @@ -16,6 +18,13 @@ // // Contributor(s): // +// Revision History: +// +// $Log$ +// Revision 1.5 2004/05/17 22:15:08 rwalton +// *** empty log message *** +// +// #ifndef _BASELISTCTRLVIEW_H_ #define _BASELISTCTRLVIEW_H_ diff --git a/clientgui/BaseWindowView.cpp b/clientgui/BaseWindowView.cpp index e1206b4d7e..f3690275a4 100644 --- a/clientgui/BaseWindowView.cpp +++ b/clientgui/BaseWindowView.cpp @@ -1,3 +1,5 @@ +// $Id$ +// // The contents of this file are subject to the BOINC Public License // Version 1.0 (the "License"); you may not use this file except in // compliance with the License. You may obtain a copy of the License at @@ -16,6 +18,13 @@ // // Contributor(s): // +// Revision History: +// +// $Log$ +// Revision 1.6 2004/05/17 22:15:08 rwalton +// *** empty log message *** +// +// #if defined(__GNUG__) && !defined(__APPLE__) #pragma implementation "BaseWindowView.h" diff --git a/clientgui/BaseWindowView.h b/clientgui/BaseWindowView.h index 2489a24829..d5d32617eb 100644 --- a/clientgui/BaseWindowView.h +++ b/clientgui/BaseWindowView.h @@ -1,3 +1,5 @@ +// $Id$ +// // The contents of this file are subject to the BOINC Public License // Version 1.0 (the "License"); you may not use this file except in // compliance with the License. You may obtain a copy of the License at @@ -16,6 +18,13 @@ // // Contributor(s): // +// Revision History: +// +// $Log$ +// Revision 1.5 2004/05/17 22:15:09 rwalton +// *** empty log message *** +// +// #ifndef _BASEWINDOWVIEW_H_ #define _BASEWINDOWVIEW_H_ diff --git a/clientgui/DlgAbout.cpp b/clientgui/DlgAbout.cpp index 789caabce9..a3242d840d 100644 --- a/clientgui/DlgAbout.cpp +++ b/clientgui/DlgAbout.cpp @@ -1,3 +1,5 @@ +// $Id$ +// // The contents of this file are subject to the BOINC Public License // Version 1.0 (the "License"); you may not use this file except in // compliance with the License. You may obtain a copy of the License at @@ -16,6 +18,13 @@ // // Contributor(s): // +// Revision History: +// +// $Log$ +// Revision 1.4 2004/05/17 22:15:09 rwalton +// *** empty log message *** +// +// #if defined(__GNUG__) && !defined(__APPLE__) #pragma implementation "DlgAbout.h" diff --git a/clientgui/DlgAbout.h b/clientgui/DlgAbout.h index d4d4a6d710..ebd6f57a94 100644 --- a/clientgui/DlgAbout.h +++ b/clientgui/DlgAbout.h @@ -1,3 +1,5 @@ +// $Id$ +// // The contents of this file are subject to the BOINC Public License // Version 1.0 (the "License"); you may not use this file except in // compliance with the License. You may obtain a copy of the License at @@ -16,6 +18,13 @@ // // Contributor(s): // +// Revision History: +// +// $Log$ +// Revision 1.4 2004/05/17 22:15:09 rwalton +// *** empty log message *** +// +// #ifndef _DLGABOUT_H_ #define _DLGABOUT_H_ diff --git a/clientgui/DlgAttachProject.cpp b/clientgui/DlgAttachProject.cpp index 9a25bd8849..582643f442 100644 --- a/clientgui/DlgAttachProject.cpp +++ b/clientgui/DlgAttachProject.cpp @@ -1,3 +1,5 @@ +// $Id$ +// // The contents of this file are subject to the BOINC Public License // Version 1.0 (the "License"); you may not use this file except in // compliance with the License. You may obtain a copy of the License at @@ -16,6 +18,13 @@ // // Contributor(s): // +// Revision History: +// +// $Log$ +// Revision 1.4 2004/05/17 22:15:09 rwalton +// *** empty log message *** +// +// #if defined(__GNUG__) && !defined(__APPLE__) #pragma implementation "DlgAttachProject.h" diff --git a/clientgui/DlgAttachProject.h b/clientgui/DlgAttachProject.h index 637c13c824..e135b01871 100644 --- a/clientgui/DlgAttachProject.h +++ b/clientgui/DlgAttachProject.h @@ -1,3 +1,5 @@ +// $Id$ +// // The contents of this file are subject to the BOINC Public License // Version 1.0 (the "License"); you may not use this file except in // compliance with the License. You may obtain a copy of the License at @@ -16,6 +18,13 @@ // // Contributor(s): // +// Revision History: +// +// $Log$ +// Revision 1.4 2004/05/17 22:15:09 rwalton +// *** empty log message *** +// +// #ifndef _DLGATTACHPROJECT_H_ #define _DLGATTACHPROJECT_H_ diff --git a/clientgui/DlgConnection.cpp b/clientgui/DlgConnection.cpp index a6076f55fa..c15b373ee3 100644 --- a/clientgui/DlgConnection.cpp +++ b/clientgui/DlgConnection.cpp @@ -1,3 +1,5 @@ +// $Id$ +// // The contents of this file are subject to the BOINC Public License // Version 1.0 (the "License"); you may not use this file except in // compliance with the License. You may obtain a copy of the License at @@ -16,6 +18,13 @@ // // Contributor(s): // +// Revision History: +// +// $Log$ +// Revision 1.4 2004/05/17 22:15:09 rwalton +// *** empty log message *** +// +// #if defined(__GNUG__) && !defined(__APPLE__) #pragma implementation "DlgConnection.h" diff --git a/clientgui/DlgConnection.h b/clientgui/DlgConnection.h index f6cc900ea3..8898867039 100644 --- a/clientgui/DlgConnection.h +++ b/clientgui/DlgConnection.h @@ -1,3 +1,5 @@ +// $Id$ +// // The contents of this file are subject to the BOINC Public License // Version 1.0 (the "License"); you may not use this file except in // compliance with the License. You may obtain a copy of the License at @@ -16,6 +18,13 @@ // // Contributor(s): // +// Revision History: +// +// $Log$ +// Revision 1.4 2004/05/17 22:15:09 rwalton +// *** empty log message *** +// +// #ifndef _DLGCONNECTION_H_ #define _DLGCONNECTION_H_ diff --git a/clientgui/DlgOptions.cpp b/clientgui/DlgOptions.cpp index 995a10880c..eaec9b85d6 100644 --- a/clientgui/DlgOptions.cpp +++ b/clientgui/DlgOptions.cpp @@ -1,3 +1,5 @@ +// $Id$ +// // The contents of this file are subject to the BOINC Public License // Version 1.0 (the "License"); you may not use this file except in // compliance with the License. You may obtain a copy of the License at @@ -16,6 +18,13 @@ // // Contributor(s): // +// Revision History: +// +// $Log$ +// Revision 1.4 2004/05/17 22:15:09 rwalton +// *** empty log message *** +// +// #if defined(__GNUG__) && !defined(__APPLE__) #pragma implementation "DlgOptions.h" diff --git a/clientgui/DlgOptions.h b/clientgui/DlgOptions.h index a5b4abdc22..aebc4cf529 100644 --- a/clientgui/DlgOptions.h +++ b/clientgui/DlgOptions.h @@ -1,3 +1,5 @@ +// $Id$ +// // The contents of this file are subject to the BOINC Public License // Version 1.0 (the "License"); you may not use this file except in // compliance with the License. You may obtain a copy of the License at @@ -16,6 +18,13 @@ // // Contributor(s): // +// Revision History: +// +// $Log$ +// Revision 1.4 2004/05/17 22:15:09 rwalton +// *** empty log message *** +// +// #ifndef _DLGOPTIONS_H_ #define _DLGOPTIONS_H_ diff --git a/clientgui/Events.h b/clientgui/Events.h index 5a790a1ac1..f3bccca1bc 100644 --- a/clientgui/Events.h +++ b/clientgui/Events.h @@ -1,3 +1,5 @@ +// $Id$ +// // The contents of this file are subject to the BOINC Public License // Version 1.0 (the "License"); you may not use this file except in // compliance with the License. You may obtain a copy of the License at @@ -16,6 +18,13 @@ // // Contributor(s): // +// Revision History: +// +// $Log$ +// Revision 1.5 2004/05/17 22:15:09 rwalton +// *** empty log message *** +// +// #ifndef _EVENTS_H_ #define _EVENTS_H_ diff --git a/clientgui/MainDocument.cpp b/clientgui/MainDocument.cpp index edcdaaa626..608cb13729 100644 --- a/clientgui/MainDocument.cpp +++ b/clientgui/MainDocument.cpp @@ -1,3 +1,5 @@ +// $Id$ +// // The contents of this file are subject to the BOINC Public License // Version 1.0 (the "License"); you may not use this file except in // compliance with the License. You may obtain a copy of the License at @@ -16,6 +18,13 @@ // // Contributor(s): // +// Revision History: +// +// $Log$ +// Revision 1.5 2004/05/17 22:15:09 rwalton +// *** empty log message *** +// +// #if defined(__GNUG__) && !defined(__APPLE__) #pragma implementation "MainDocument.h" diff --git a/clientgui/MainDocument.h b/clientgui/MainDocument.h index 9253aac615..ca8ca2b767 100644 --- a/clientgui/MainDocument.h +++ b/clientgui/MainDocument.h @@ -1,3 +1,5 @@ +// $Id$ +// // The contents of this file are subject to the BOINC Public License // Version 1.0 (the "License"); you may not use this file except in // compliance with the License. You may obtain a copy of the License at @@ -16,6 +18,13 @@ // // Contributor(s): // +// Revision History: +// +// $Log$ +// Revision 1.4 2004/05/17 22:15:09 rwalton +// *** empty log message *** +// +// #ifndef _MAINDOCUMENT_H_ #define _MAINDOCUMENT_H_ diff --git a/clientgui/MainFrame.cpp b/clientgui/MainFrame.cpp index 9330cf884d..2dd2821e5c 100644 --- a/clientgui/MainFrame.cpp +++ b/clientgui/MainFrame.cpp @@ -1,3 +1,5 @@ +// $Id$ +// // The contents of this file are subject to the BOINC Public License // Version 1.0 (the "License"); you may not use this file except in // compliance with the License. You may obtain a copy of the License at @@ -16,6 +18,13 @@ // // Contributor(s): // +// Revision History: +// +// $Log$ +// Revision 1.9 2004/05/17 22:15:09 rwalton +// *** empty log message *** +// +// #if defined(__GNUG__) && !defined(__APPLE__) #pragma implementation "MainFrame.h" diff --git a/clientgui/MainFrame.h b/clientgui/MainFrame.h index bb12c1d1bb..a34b739b31 100644 --- a/clientgui/MainFrame.h +++ b/clientgui/MainFrame.h @@ -1,3 +1,5 @@ +// $Id$ +// // The contents of this file are subject to the BOINC Public License // Version 1.0 (the "License"); you may not use this file except in // compliance with the License. You may obtain a copy of the License at @@ -16,6 +18,14 @@ // // Contributor(s): // +// Revision History: +// +// $Log$ +// Revision 1.6 2004/05/17 22:15:09 rwalton +// *** empty log message *** +// +// + #ifndef _MAINFRAME_H_ #define _MAINFRAME_H_ diff --git a/clientgui/MessagesView.cpp b/clientgui/MessagesView.cpp index 5e33b7a3d8..8cb9adbb71 100644 --- a/clientgui/MessagesView.cpp +++ b/clientgui/MessagesView.cpp @@ -1,3 +1,5 @@ +// $Id$ +// // The contents of this file are subject to the BOINC Public License // Version 1.0 (the "License"); you may not use this file except in // compliance with the License. You may obtain a copy of the License at @@ -16,6 +18,13 @@ // // Contributor(s): // +// Revision History: +// +// $Log$ +// Revision 1.6 2004/05/17 22:15:09 rwalton +// *** empty log message *** +// +// #if defined(__GNUG__) && !defined(__APPLE__) #pragma implementation "MessagesView.h" diff --git a/clientgui/MessagesView.h b/clientgui/MessagesView.h index 56ba2ee188..b1d9e10b8c 100644 --- a/clientgui/MessagesView.h +++ b/clientgui/MessagesView.h @@ -1,3 +1,5 @@ +// $Id$ +// // The contents of this file are subject to the BOINC Public License // Version 1.0 (the "License"); you may not use this file except in // compliance with the License. You may obtain a copy of the License at @@ -16,6 +18,14 @@ // // Contributor(s): // +// Revision History: +// +// $Log$ +// Revision 1.6 2004/05/17 22:15:09 rwalton +// *** empty log message *** +// +// + #ifndef _MESSAGESVIEW_H_ #define _MESSAGESVIEW_H_ diff --git a/clientgui/ProjectsView.cpp b/clientgui/ProjectsView.cpp index d311e82ec0..5389c57056 100644 --- a/clientgui/ProjectsView.cpp +++ b/clientgui/ProjectsView.cpp @@ -1,3 +1,5 @@ +// $Id$ +// // The contents of this file are subject to the BOINC Public License // Version 1.0 (the "License"); you may not use this file except in // compliance with the License. You may obtain a copy of the License at @@ -16,6 +18,13 @@ // // Contributor(s): // +// Revision History: +// +// $Log$ +// Revision 1.6 2004/05/17 22:15:09 rwalton +// *** empty log message *** +// +// #if defined(__GNUG__) && !defined(__APPLE__) #pragma implementation "ProjectsView.h" diff --git a/clientgui/ProjectsView.h b/clientgui/ProjectsView.h index 2215706278..16595e4a1a 100644 --- a/clientgui/ProjectsView.h +++ b/clientgui/ProjectsView.h @@ -1,3 +1,5 @@ +// $Id$ +// // The contents of this file are subject to the BOINC Public License // Version 1.0 (the "License"); you may not use this file except in // compliance with the License. You may obtain a copy of the License at @@ -16,6 +18,14 @@ // // Contributor(s): // +// Revision History: +// +// $Log$ +// Revision 1.6 2004/05/17 22:15:09 rwalton +// *** empty log message *** +// +// + #ifndef _PROJECTSVIEW_H_ #define _PROJECTSVIEW_H_ diff --git a/clientgui/ResourceUtilizationView.cpp b/clientgui/ResourceUtilizationView.cpp index 8e63eb52b5..29e074fb8d 100644 --- a/clientgui/ResourceUtilizationView.cpp +++ b/clientgui/ResourceUtilizationView.cpp @@ -1,3 +1,5 @@ +// $Id$ +// // The contents of this file are subject to the BOINC Public License // Version 1.0 (the "License"); you may not use this file except in // compliance with the License. You may obtain a copy of the License at @@ -16,6 +18,13 @@ // // Contributor(s): // +// Revision History: +// +// $Log$ +// Revision 1.6 2004/05/17 22:15:09 rwalton +// *** empty log message *** +// +// #if defined(__GNUG__) && !defined(__APPLE__) #pragma implementation "ResourceUtilizationView.h" diff --git a/clientgui/ResourceUtilizationView.h b/clientgui/ResourceUtilizationView.h index b8bb026408..5662d94e07 100644 --- a/clientgui/ResourceUtilizationView.h +++ b/clientgui/ResourceUtilizationView.h @@ -1,3 +1,5 @@ +// $Id$ +// // The contents of this file are subject to the BOINC Public License // Version 1.0 (the "License"); you may not use this file except in // compliance with the License. You may obtain a copy of the License at @@ -16,6 +18,13 @@ // // Contributor(s): // +// Revision History: +// +// $Log$ +// Revision 1.6 2004/05/17 22:15:09 rwalton +// *** empty log message *** +// +// #ifndef _RESOURCEUTILIZATIONVIEW_H_ #define _RESOURCEUTILIZATIONVIEW_H_ diff --git a/clientgui/TransfersView.cpp b/clientgui/TransfersView.cpp index 239d32abc4..6948c414aa 100644 --- a/clientgui/TransfersView.cpp +++ b/clientgui/TransfersView.cpp @@ -1,3 +1,5 @@ +// $Id$ +// // The contents of this file are subject to the BOINC Public License // Version 1.0 (the "License"); you may not use this file except in // compliance with the License. You may obtain a copy of the License at @@ -16,6 +18,13 @@ // // Contributor(s): // +// Revision History: +// +// $Log$ +// Revision 1.6 2004/05/17 22:15:09 rwalton +// *** empty log message *** +// +// #if defined(__GNUG__) && !defined(__APPLE__) #pragma implementation "TransfersView.h" diff --git a/clientgui/TransfersView.h b/clientgui/TransfersView.h index ee0d4f7aad..d520d2e1f0 100644 --- a/clientgui/TransfersView.h +++ b/clientgui/TransfersView.h @@ -1,3 +1,5 @@ +// $Id$ +// // The contents of this file are subject to the BOINC Public License // Version 1.0 (the "License"); you may not use this file except in // compliance with the License. You may obtain a copy of the License at @@ -16,6 +18,13 @@ // // Contributor(s): // +// Revision History: +// +// $Log$ +// Revision 1.6 2004/05/17 22:15:09 rwalton +// *** empty log message *** +// +// #ifndef _TRANSFERSVIEW_H_ #define _TRANSFERSVIEW_H_ diff --git a/clientgui/URLValidator.cpp b/clientgui/URLValidator.cpp new file mode 100644 index 0000000000..f59115011f --- /dev/null +++ b/clientgui/URLValidator.cpp @@ -0,0 +1,65 @@ +// $Id$ +// +// The contents of this file are subject to the BOINC Public License +// Version 1.0 (the "License"); you may not use this file except in +// compliance with the License. You may obtain a copy of the License at +// http://boinc.berkeley.edu/license_1.0.txt +// +// Software distributed under the License is distributed on an "AS IS" +// basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the +// License for the specific language governing rights and limitations +// under the License. +// +// The Original Code is the Berkeley Open Infrastructure for Network Computing. +// +// The Initial Developer of the Original Code is the SETI@home project. +// Portions created by the SETI@home project are Copyright (C) 2002 +// University of California at Berkeley. All Rights Reserved. +// +// Contributor(s): +// +// Revision History: +// +// $Log$ +// Revision 1.1 2004/05/17 22:15:10 rwalton +// *** empty log message *** +// +// + +#if defined(__GNUG__) && !defined(__APPLE__) +#pragma implementation "URLValidator.h" +#endif + +#include "stdwx.h" +#include "URLValidator.h" + + +IMPLEMENT_DYNAMIC_CLASS(CURLValidator, wxValidator) + + +CURLValidator::CURLValidator(void) : + wxValidator() +{ + SetBellOnError(false); + + // Expression From: + // http://msdn.microsoft.com/library/default.asp? + // url=/library/en-us/script56/html/reconbackreferences.asp + m_reURL.Compile("/(\\w+):\\/\\/([^/:]+)(:\\d*)?([^# ]*)/"); +} + + +CURLValidator::~CURLValidator(void) +{ +} + + +bool CURLValidator::Validate(wxWindow* parent) +{ + + + return true; +} + + + diff --git a/clientgui/URLValidator.h b/clientgui/URLValidator.h new file mode 100644 index 0000000000..9e0fdf9514 --- /dev/null +++ b/clientgui/URLValidator.h @@ -0,0 +1,61 @@ +// $Id$ +// +// The contents of this file are subject to the BOINC Public License +// Version 1.0 (the "License"); you may not use this file except in +// compliance with the License. You may obtain a copy of the License at +// http://boinc.berkeley.edu/license_1.0.txt +// +// Software distributed under the License is distributed on an "AS IS" +// basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the +// License for the specific language governing rights and limitations +// under the License. +// +// The Original Code is the Berkeley Open Infrastructure for Network Computing. +// +// The Initial Developer of the Original Code is the SETI@home project. +// Portions created by the SETI@home project are Copyright (C) 2002 +// University of California at Berkeley. All Rights Reserved. +// +// Contributor(s): +// +// Revision History: +// +// $Log$ +// Revision 1.1 2004/05/17 22:15:10 rwalton +// *** empty log message *** +// +// + +#ifndef _URLVALIDATOR_H_ +#define _URLVALIDATOR_H_ + +#if defined(__GNUG__) && !defined(__APPLE__) +#pragma interface "URLValidator.cpp" +#endif + + +class CURLValidator : public wxValidator +{ + DECLARE_DYNAMIC_CLASS(CURLValidator) + +public: + CURLValidator(void); + ~CURLValidator(void); + + virtual bool Validate(wxWindow* parent); + +private: + wxRegEx m_reURL; + + wxString* m_pstrProtocol; + wxString* m_pstrServer; + wxString* m_pstrPort; + wxString* m_pstrPath; + wxString* m_pstrQueryString; + wxString* m_pstrBookmark; + +}; + + +#endif + diff --git a/clientgui/WorkView.cpp b/clientgui/WorkView.cpp index dbd1331c07..53fc931cb9 100644 --- a/clientgui/WorkView.cpp +++ b/clientgui/WorkView.cpp @@ -1,3 +1,5 @@ +// $Id$ +// // The contents of this file are subject to the BOINC Public License // Version 1.0 (the "License"); you may not use this file except in // compliance with the License. You may obtain a copy of the License at @@ -16,6 +18,13 @@ // // Contributor(s): // +// Revision History: +// +// $Log$ +// Revision 1.6 2004/05/17 22:15:09 rwalton +// *** empty log message *** +// +// #if defined(__GNUG__) && !defined(__APPLE__) #pragma implementation "WorkView.h" diff --git a/clientgui/WorkView.h b/clientgui/WorkView.h index 47e7069844..29b2f171ef 100644 --- a/clientgui/WorkView.h +++ b/clientgui/WorkView.h @@ -1,3 +1,5 @@ +// $Id$ +// // The contents of this file are subject to the BOINC Public License // Version 1.0 (the "License"); you may not use this file except in // compliance with the License. You may obtain a copy of the License at @@ -16,6 +18,13 @@ // // Contributor(s): // +// Revision History: +// +// $Log$ +// Revision 1.6 2004/05/17 22:15:10 rwalton +// *** empty log message *** +// +// #ifndef _WORKVIEW_H_ #define _WORKVIEW_H_ diff --git a/clientgui/res/BOINCGUIApp.xpm b/clientgui/res/BOINCGUIApp.xpm index 5a3b6846c2..b475b155e0 100644 --- a/clientgui/res/BOINCGUIApp.xpm +++ b/clientgui/res/BOINCGUIApp.xpm @@ -1,3 +1,31 @@ +// $Id$ +// +// The contents of this file are subject to the BOINC Public License +// Version 1.0 (the "License"); you may not use this file except in +// compliance with the License. You may obtain a copy of the License at +// http://boinc.berkeley.edu/license_1.0.txt +// +// Software distributed under the License is distributed on an "AS IS" +// basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the +// License for the specific language governing rights and limitations +// under the License. +// +// The Original Code is the Berkeley Open Infrastructure for Network Computing. +// +// The Initial Developer of the Original Code is the SETI@home project. +// Portions created by the SETI@home project are Copyright (C) 2002 +// University of California at Berkeley. All Rights Reserved. +// +// Contributor(s): +// +// Revision History: +// +// $Log$ +// Revision 1.2 2004/05/17 22:15:10 rwalton +// *** empty log message *** +// +// + /* XPM */ static char *APP_ICON_xpm[] = { "16 16 32 1", diff --git a/clientgui/res/boinc.xpm b/clientgui/res/boinc.xpm index d545a92f44..f00754bd5a 100644 --- a/clientgui/res/boinc.xpm +++ b/clientgui/res/boinc.xpm @@ -1,3 +1,31 @@ +// $Id$ +// +// The contents of this file are subject to the BOINC Public License +// Version 1.0 (the "License"); you may not use this file except in +// compliance with the License. You may obtain a copy of the License at +// http://boinc.berkeley.edu/license_1.0.txt +// +// Software distributed under the License is distributed on an "AS IS" +// basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the +// License for the specific language governing rights and limitations +// under the License. +// +// The Original Code is the Berkeley Open Infrastructure for Network Computing. +// +// The Initial Developer of the Original Code is the SETI@home project. +// Portions created by the SETI@home project are Copyright (C) 2002 +// University of California at Berkeley. All Rights Reserved. +// +// Contributor(s): +// +// Revision History: +// +// $Log$ +// Revision 1.2 2004/05/17 22:15:10 rwalton +// *** empty log message *** +// +// + /* XPM */ static char *boinc_xpm[] = { "16 16 32 1", diff --git a/clientgui/res/boincsm.xpm b/clientgui/res/boincsm.xpm index a71b189d6f..be3d61c67d 100644 --- a/clientgui/res/boincsm.xpm +++ b/clientgui/res/boincsm.xpm @@ -1,3 +1,31 @@ +// $Id$ +// +// The contents of this file are subject to the BOINC Public License +// Version 1.0 (the "License"); you may not use this file except in +// compliance with the License. You may obtain a copy of the License at +// http://boinc.berkeley.edu/license_1.0.txt +// +// Software distributed under the License is distributed on an "AS IS" +// basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the +// License for the specific language governing rights and limitations +// under the License. +// +// The Original Code is the Berkeley Open Infrastructure for Network Computing. +// +// The Initial Developer of the Original Code is the SETI@home project. +// Portions created by the SETI@home project are Copyright (C) 2002 +// University of California at Berkeley. All Rights Reserved. +// +// Contributor(s): +// +// Revision History: +// +// $Log$ +// Revision 1.3 2004/05/17 22:15:10 rwalton +// *** empty log message *** +// +// + /* XPM */ static char *boincsm_xpm[] = { "50 50 84 1", diff --git a/clientgui/res/mess.xpm b/clientgui/res/mess.xpm index c2a8bb0102..f3dac5cc4a 100644 --- a/clientgui/res/mess.xpm +++ b/clientgui/res/mess.xpm @@ -1,3 +1,31 @@ +// $Id$ +// +// The contents of this file are subject to the BOINC Public License +// Version 1.0 (the "License"); you may not use this file except in +// compliance with the License. You may obtain a copy of the License at +// http://boinc.berkeley.edu/license_1.0.txt +// +// Software distributed under the License is distributed on an "AS IS" +// basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the +// License for the specific language governing rights and limitations +// under the License. +// +// The Original Code is the Berkeley Open Infrastructure for Network Computing. +// +// The Initial Developer of the Original Code is the SETI@home project. +// Portions created by the SETI@home project are Copyright (C) 2002 +// University of California at Berkeley. All Rights Reserved. +// +// Contributor(s): +// +// Revision History: +// +// $Log$ +// Revision 1.2 2004/05/17 22:15:10 rwalton +// *** empty log message *** +// +// + /* XPM */ static char *mess_xpm[] = { "16 16 3 1", diff --git a/clientgui/res/proj.xpm b/clientgui/res/proj.xpm index db12a08ae8..74b7dad2e6 100644 --- a/clientgui/res/proj.xpm +++ b/clientgui/res/proj.xpm @@ -1,3 +1,31 @@ +// $Id$ +// +// The contents of this file are subject to the BOINC Public License +// Version 1.0 (the "License"); you may not use this file except in +// compliance with the License. You may obtain a copy of the License at +// http://boinc.berkeley.edu/license_1.0.txt +// +// Software distributed under the License is distributed on an "AS IS" +// basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the +// License for the specific language governing rights and limitations +// under the License. +// +// The Original Code is the Berkeley Open Infrastructure for Network Computing. +// +// The Initial Developer of the Original Code is the SETI@home project. +// Portions created by the SETI@home project are Copyright (C) 2002 +// University of California at Berkeley. All Rights Reserved. +// +// Contributor(s): +// +// Revision History: +// +// $Log$ +// Revision 1.2 2004/05/17 22:15:10 rwalton +// *** empty log message *** +// +// + /* XPM */ static char *proj_xpm[] = { "16 16 4 1", diff --git a/clientgui/res/result.xpm b/clientgui/res/result.xpm index c404715135..c9725892bb 100644 --- a/clientgui/res/result.xpm +++ b/clientgui/res/result.xpm @@ -1,3 +1,31 @@ +// $Id$ +// +// The contents of this file are subject to the BOINC Public License +// Version 1.0 (the "License"); you may not use this file except in +// compliance with the License. You may obtain a copy of the License at +// http://boinc.berkeley.edu/license_1.0.txt +// +// Software distributed under the License is distributed on an "AS IS" +// basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the +// License for the specific language governing rights and limitations +// under the License. +// +// The Original Code is the Berkeley Open Infrastructure for Network Computing. +// +// The Initial Developer of the Original Code is the SETI@home project. +// Portions created by the SETI@home project are Copyright (C) 2002 +// University of California at Berkeley. All Rights Reserved. +// +// Contributor(s): +// +// Revision History: +// +// $Log$ +// Revision 1.2 2004/05/17 22:15:10 rwalton +// *** empty log message *** +// +// + /* XPM */ static char *result_xpm[] = { "16 16 3 1", diff --git a/clientgui/res/usage.xpm b/clientgui/res/usage.xpm index c1856b805a..3459a2b668 100644 --- a/clientgui/res/usage.xpm +++ b/clientgui/res/usage.xpm @@ -1,3 +1,31 @@ +// $Id$ +// +// The contents of this file are subject to the BOINC Public License +// Version 1.0 (the "License"); you may not use this file except in +// compliance with the License. You may obtain a copy of the License at +// http://boinc.berkeley.edu/license_1.0.txt +// +// Software distributed under the License is distributed on an "AS IS" +// basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the +// License for the specific language governing rights and limitations +// under the License. +// +// The Original Code is the Berkeley Open Infrastructure for Network Computing. +// +// The Initial Developer of the Original Code is the SETI@home project. +// Portions created by the SETI@home project are Copyright (C) 2002 +// University of California at Berkeley. All Rights Reserved. +// +// Contributor(s): +// +// Revision History: +// +// $Log$ +// Revision 1.2 2004/05/17 22:15:10 rwalton +// *** empty log message *** +// +// + /* XPM */ static char *usage_xpm[] = { "16 16 3 1", diff --git a/clientgui/res/xfer.xpm b/clientgui/res/xfer.xpm index 2bd36ce64b..d8024af6ad 100644 --- a/clientgui/res/xfer.xpm +++ b/clientgui/res/xfer.xpm @@ -1,3 +1,31 @@ +// $Id$ +// +// The contents of this file are subject to the BOINC Public License +// Version 1.0 (the "License"); you may not use this file except in +// compliance with the License. You may obtain a copy of the License at +// http://boinc.berkeley.edu/license_1.0.txt +// +// Software distributed under the License is distributed on an "AS IS" +// basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the +// License for the specific language governing rights and limitations +// under the License. +// +// The Original Code is the Berkeley Open Infrastructure for Network Computing. +// +// The Initial Developer of the Original Code is the SETI@home project. +// Portions created by the SETI@home project are Copyright (C) 2002 +// University of California at Berkeley. All Rights Reserved. +// +// Contributor(s): +// +// Revision History: +// +// $Log$ +// Revision 1.2 2004/05/17 22:15:10 rwalton +// *** empty log message *** +// +// + /* XPM */ static char *xfer_xpm[] = { "16 16 4 1", diff --git a/clientgui/resource.h b/clientgui/resource.h index 7dd26ca744..ccae9092b4 100644 --- a/clientgui/resource.h +++ b/clientgui/resource.h @@ -2,8 +2,6 @@ // Microsoft Visual C++ generated include file. // Used by BOINCGUIApp.rc // -#define IDI_MYFRAME 1 -#define IDB_BITMAP1 109 // Next default values for new objects // diff --git a/clientgui/stdwx.cpp b/clientgui/stdwx.cpp index e51b474920..cd3de75140 100644 --- a/clientgui/stdwx.cpp +++ b/clientgui/stdwx.cpp @@ -1,3 +1,5 @@ +// $Id$ +// // The contents of this file are subject to the BOINC Public License // Version 1.0 (the "License"); you may not use this file except in // compliance with the License. You may obtain a copy of the License at @@ -16,10 +18,13 @@ // // Contributor(s): // - -// stdafx.cpp : source file that includes just the standard includes -// wxWindowsTemplate.pch will be the pre-compiled header -// stdafx.obj will contain the pre-compiled type information +// Revision History: +// +// $Log$ +// Revision 1.4 2004/05/17 22:15:10 rwalton +// *** empty log message *** +// +// #include "stdwx.h" diff --git a/clientgui/stdwx.h b/clientgui/stdwx.h index 8fb46a81a1..045068186f 100644 --- a/clientgui/stdwx.h +++ b/clientgui/stdwx.h @@ -1,3 +1,5 @@ +// $Id$ +// // The contents of this file are subject to the BOINC Public License // Version 1.0 (the "License"); you may not use this file except in // compliance with the License. You may obtain a copy of the License at @@ -16,10 +18,12 @@ // // Contributor(s): // - -// stdafx.h : include file for standard system include files, -// or project specific include files that are used frequently, but -// are changed infrequently +// Revision History: +// +// $Log$ +// Revision 1.4 2004/05/17 22:15:10 rwalton +// *** empty log message *** +// // #ifndef __STDWX_H__ @@ -44,9 +48,47 @@ #include // list control support #include // messagebox dialog #include // notebook support -#include // toolbars support +#include // regular expression support #include // system settings #include // static line +#include // toolbars support -#endif + +// On the Win32 platform include file and line number information for each +// memory allocation/deallocation +#if (defined(__WIN32__) && defined(__VISUALC__) && !defined(__AFX_H__)) + +#ifdef _DEBUG + +#define malloc(s) _malloc_dbg(s, _NORMAL_BLOCK, __FILE__, __LINE__) +#define calloc(c, s) _calloc_dbg(c, s, _NORMAL_BLOCK, __FILE__, __LINE__) +#define realloc(p, s) _realloc_dbg(p, s, _NORMAL_BLOCK, __FILE__, __LINE__) +#define _expand(p, s) _expand_dbg(p, s, _NORMAL_BLOCK, __FILE__, __LINE__) +#define free(p) _free_dbg(p, _NORMAL_BLOCK) +#define _msize(p) _msize_dbg(p, _NORMAL_BLOCK) +#define _aligned_malloc(s, a) _aligned_malloc_dbg(s, a, __FILE__, __LINE__) +#define _aligned_realloc(p, s, a) _aligned_realloc_dbg(p, s, a, __FILE__, __LINE__) +#define _aligned_offset_malloc(s, a, o) _aligned_offset_malloc_dbg(s, a, o, __FILE__, __LINE__) +#define _aligned_offset_realloc(p, s, a, o) _aligned_offset_realloc_dbg(p, s, a, o, __FILE__, __LINE__) +#define _aligned_free(p) _aligned_free_dbg(p) + +#define DEBUG_NEW new(_NORMAL_BLOCK, __FILE__, __LINE__) + +// The following macros set and clear, respectively, given bits +// of the C runtime library debug flag, as specified by a bitmask. +#define SET_CRT_DEBUG_FIELD(a) _CrtSetDbgFlag((a) | _CrtSetDbgFlag(_CRTDBG_REPORT_FLAG)) +#define CLEAR_CRT_DEBUG_FIELD(a) _CrtSetDbgFlag(~(a) & _CrtSetDbgFlag(_CRTDBG_REPORT_FLAG)) + +#else //_DEBUG + +#define DEBUG_NEW new + +#define SET_CRT_DEBUG_FIELD(a) ((void) 0) +#define CLEAR_CRT_DEBUG_FIELD(a) ((void) 0) + +#endif //_DEBUG + +#endif //__WIN32__ && __VISUALC && !__AFX_H__ + +#endif //__STDWX_H__