*** empty log message ***

svn path=/trunk/boinc/; revision=5737
This commit is contained in:
Rom Walton 2005-03-30 05:44:12 +00:00
parent cfa55b2724
commit 8492db5a75
6 changed files with 1439 additions and 371 deletions

File diff suppressed because it is too large Load Diff

View File

@ -16,55 +16,93 @@
// http://www.gnu.org/copyleft/lesser.html
// or write to the Free Software Foundation, Inc.,
// 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
//
#if defined(__GNUG__) && !defined(__APPLE__)
#pragma implementation "DlgAttachProject.h"
#endif
// For compilers that support precompilation, includes "wx/wx.h".
#include "wx/wxprec.h"
#ifdef __BORLANDC__
#pragma hdrstop
#endif
#ifndef WX_PRECOMP
#include "wx/wx.h"
#endif
////@begin includes
////@end includes
#include "stdwx.h"
#include "DlgAttachProject.h"
#include "ValidateURL.h"
#include "ValidateAccountKey.h"
////@begin XPM images
////@end XPM images
IMPLEMENT_CLASS( CDlgAttachProject, wxDialog )
/*!
* CDlgAttachProject type definition
*/
IMPLEMENT_DYNAMIC_CLASS( CDlgAttachProject, wxDialog )
/*!
* CDlgAttachProject event table definition
*/
BEGIN_EVENT_TABLE( CDlgAttachProject, wxDialog )
////@begin CDlgAttachProject event table entries
////@end CDlgAttachProject event table entries
END_EVENT_TABLE()
/*!
* CDlgAttachProject constructors
*/
CDlgAttachProject::CDlgAttachProject( )
{
}
CDlgAttachProject::CDlgAttachProject( wxWindow* parent, wxWindowID id, const wxString& caption, const wxPoint& pos, const wxSize& size, long style )
{
Create(parent, id, caption, pos, size, style);
}
/*!
* CDlgAttachProject creator
*/
bool CDlgAttachProject::Create( wxWindow* parent, wxWindowID id, const wxString& caption, const wxPoint& pos, const wxSize& size, long style )
{
////@begin CDlgAttachProject member initialisation
m_ProjectAddressCtrl = NULL;
m_ProjectAccountKeyCtrl = NULL;
////@end CDlgAttachProject member initialisation
SetExtraStyle(wxWS_EX_BLOCK_EVENTS);
////@begin CDlgAttachProject creation
SetExtraStyle(GetExtraStyle()|wxWS_EX_BLOCK_EVENTS);
wxDialog::Create( parent, id, caption, pos, size, style );
CreateControls();
GetSizer()->Fit(this);
GetSizer()->SetSizeHints(this);
Centre();
////@end CDlgAttachProject creation
return TRUE;
}
/*!
* Control creation for CDlgAttachProject
*/
void CDlgAttachProject::CreateControls()
{
////@begin CDlgAttachProject content construction
CDlgAttachProject* itemDialog1 = this;
@ -77,53 +115,80 @@ void CDlgAttachProject::CreateControls()
wxBoxSizer* itemBoxSizer4 = new wxBoxSizer(wxVERTICAL);
itemFlexGridSizer3->Add(itemBoxSizer4, 0, wxALIGN_CENTER_HORIZONTAL|wxALIGN_CENTER_VERTICAL|wxALL, 5);
wxStaticText* itemStaticText5 = new wxStaticText;
itemStaticText5->Create( itemDialog1, wxID_STATIC,
_(
"These are emailed to you when you create an account.\n"
"Go to project web sites to create accounts.\n"
"Visit http://boinc.berkeley.edu/ for a list of projects."
),
wxDefaultPosition, wxDefaultSize, 0 );
itemBoxSizer4->Add(itemStaticText5, 0, wxALIGN_CENTER_HORIZONTAL|wxALL|wxADJUST_MINSIZE, 5);
wxFlexGridSizer* itemFlexGridSizer5 = new wxFlexGridSizer(2, 2, 0, 0);
itemBoxSizer4->Add(itemFlexGridSizer5, 0, wxALIGN_CENTER_HORIZONTAL|wxALL, 5);
wxFlexGridSizer* itemFlexGridSizer6 = new wxFlexGridSizer(2, 2, 0, 0);
itemBoxSizer4->Add(itemFlexGridSizer6, 0, wxALIGN_CENTER_HORIZONTAL|wxALL, 5);
wxStaticText* itemStaticText7 = new wxStaticText;
itemStaticText7->Create( itemDialog1, wxID_STATIC, _("URL:"), wxDefaultPosition, wxDefaultSize, 0 );
itemFlexGridSizer6->Add(itemStaticText7, 0, wxALIGN_RIGHT|wxALIGN_CENTER_VERTICAL|wxALL|wxADJUST_MINSIZE, 5);
wxStaticText* itemStaticText6 = new wxStaticText;
itemStaticText6->Create( itemDialog1, wxID_STATIC, _("URL:"), wxDefaultPosition, wxDefaultSize, 0 );
itemFlexGridSizer5->Add(itemStaticText6, 0, wxALIGN_RIGHT|wxALIGN_CENTER_VERTICAL|wxALL|wxADJUST_MINSIZE, 5);
m_ProjectAddressCtrl = new wxTextCtrl;
m_ProjectAddressCtrl->Create( itemDialog1, ID_PROJECTADDRESS, _T(""), wxDefaultPosition, wxSize(200, -1), 0 );
itemFlexGridSizer6->Add(m_ProjectAddressCtrl, 0, wxALIGN_CENTER_HORIZONTAL|wxALIGN_CENTER_VERTICAL|wxALL, 5);
itemFlexGridSizer5->Add(m_ProjectAddressCtrl, 0, wxALIGN_CENTER_HORIZONTAL|wxALIGN_CENTER_VERTICAL|wxALL, 5);
wxStaticText* itemStaticText9 = new wxStaticText;
itemStaticText9->Create( itemDialog1, wxID_STATIC, _("Account Key:"), wxDefaultPosition, wxDefaultSize, 0 );
itemFlexGridSizer6->Add(itemStaticText9, 0, wxALIGN_RIGHT|wxALIGN_CENTER_VERTICAL|wxALL|wxADJUST_MINSIZE, 5);
wxStaticText* itemStaticText8 = new wxStaticText;
itemStaticText8->Create( itemDialog1, wxID_STATIC, _("Account Key:"), wxDefaultPosition, wxDefaultSize, 0 );
itemFlexGridSizer5->Add(itemStaticText8, 0, wxALIGN_RIGHT|wxALIGN_CENTER_VERTICAL|wxALL|wxADJUST_MINSIZE, 5);
m_ProjectAccountKeyCtrl = new wxTextCtrl;
m_ProjectAccountKeyCtrl->Create( itemDialog1, ID_PROJECTACCOUNTKEY, _T(""), wxDefaultPosition, wxSize(200, -1), 0 );
itemFlexGridSizer6->Add(m_ProjectAccountKeyCtrl, 0, wxALIGN_CENTER_HORIZONTAL|wxALIGN_CENTER_VERTICAL|wxALL, 5);
itemFlexGridSizer5->Add(m_ProjectAccountKeyCtrl, 0, wxALIGN_CENTER_HORIZONTAL|wxALIGN_CENTER_VERTICAL|wxALL, 5);
wxBoxSizer* itemBoxSizer11 = new wxBoxSizer(wxVERTICAL);
itemFlexGridSizer3->Add(itemBoxSizer11, 0, wxALIGN_CENTER_HORIZONTAL|wxALIGN_TOP|wxALL, 5);
wxStaticText* itemStaticText10 = new wxStaticText;
itemStaticText10->Create( itemDialog1, wxID_STATIC, _("These are emailed to you when you create an account.\nGo to project web sites to create accounts.\nVisit http://boinc.berkeley.edu for a list of projects."), wxDefaultPosition, wxDefaultSize, 0 );
itemBoxSizer4->Add(itemStaticText10, 0, wxALIGN_CENTER_HORIZONTAL|wxALL|wxADJUST_MINSIZE, 5);
wxButton* itemButton12 = new wxButton;
itemButton12->Create( itemDialog1, wxID_OK, _("&OK"), wxDefaultPosition, wxDefaultSize, 0 );
itemButton12->SetDefault();
itemBoxSizer11->Add(itemButton12, 0, wxALIGN_CENTER_HORIZONTAL|wxALL, 5);
wxWindow* itemWindow11 = (wxWindow*) FindWindow(ID_FOREIGN);
wxASSERT( itemWindow11 != NULL );
itemBoxSizer4->Add(itemWindow11, 0, wxALIGN_CENTER_HORIZONTAL|wxALL, 5);
wxBoxSizer* itemBoxSizer12 = new wxBoxSizer(wxVERTICAL);
itemFlexGridSizer3->Add(itemBoxSizer12, 0, wxALIGN_CENTER_HORIZONTAL|wxALIGN_TOP|wxALL, 5);
wxButton* itemButton13 = new wxButton;
itemButton13->Create( itemDialog1, wxID_CANCEL, _("&Cancel"), wxDefaultPosition, wxDefaultSize, 0 );
itemBoxSizer11->Add(itemButton13, 0, wxALIGN_CENTER_HORIZONTAL|wxALL, 5);
itemButton13->Create( itemDialog1, wxID_OK, _("&OK"), wxDefaultPosition, wxDefaultSize, 0 );
itemButton13->SetDefault();
itemBoxSizer12->Add(itemButton13, 0, wxALIGN_CENTER_HORIZONTAL|wxALL, 5);
wxButton* itemButton14 = new wxButton;
itemButton14->Create( itemDialog1, wxID_CANCEL, _("&Cancel"), wxDefaultPosition, wxDefaultSize, 0 );
itemBoxSizer12->Add(itemButton14, 0, wxALIGN_CENTER_HORIZONTAL|wxALL, 5);
// Set validators
m_ProjectAddressCtrl->SetValidator( CValidateURL(& m_strProjectAddress) );
m_ProjectAccountKeyCtrl->SetValidator( CValidateAccountKey(& m_strProjectAccountKey) );
////@end CDlgAttachProject content construction
}
/*!
* Should we show tooltips?
*/
bool CDlgAttachProject::ShowToolTips()
{
return TRUE;
}
/*!
* Get bitmap resources
*/
const char *BOINC_RCSID_438471f88f = "$Id$";
wxBitmap CDlgAttachProject::GetBitmapResource( const wxString& name )
{
// Bitmap retrieval
////@begin CDlgAttachProject bitmap retrieval
return wxNullBitmap;
////@end CDlgAttachProject bitmap retrieval
}
/*!
* Get icon resources
*/
wxIcon CDlgAttachProject::GetIconResource( const wxString& name )
{
// Icon retrieval
////@begin CDlgAttachProject icon retrieval
return wxNullIcon;
////@end CDlgAttachProject icon retrieval
}

View File

@ -16,7 +16,7 @@
// http://www.gnu.org/copyleft/lesser.html
// or write to the Free Software Foundation, Inc.,
// 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
//
#ifndef _DLGATTACHPROJECT_H_
#define _DLGATTACHPROJECT_H_
@ -24,24 +24,54 @@
#pragma interface "DlgAttachProject.cpp"
#endif
/*!
* Includes
*/
////@begin includes
////@end includes
/*!
* Forward declarations
*/
////@begin forward declarations
////@end forward declarations
/*!
* Control identifiers
*/
////@begin control identifiers
#define ID_DIALOG 10000
#define SYMBOL_CDLGATTACHPROJECT_STYLE wxCAPTION|wxRESIZE_BORDER|wxSYSTEM_MENU|wxCLOSE_BOX
#define SYMBOL_CDLGATTACHPROJECT_STYLE wxCAPTION|wxRESIZE_BORDER|wxSYSTEM_MENU
#define SYMBOL_CDLGATTACHPROJECT_TITLE _("Attach to Project")
#define SYMBOL_CDLGATTACHPROJECT_IDNAME ID_DIALOG
#define SYMBOL_CDLGATTACHPROJECT_SIZE wxSize(400, 300)
#define SYMBOL_CDLGATTACHPROJECT_POSITION wxDefaultPosition
#define ID_PROJECTADDRESS 10001
#define ID_PROJECTACCOUNTKEY 10002
#define ID_FOREIGN 10005
////@end control identifiers
/*!
* Compatibility
*/
#ifndef wxCLOSE_BOX
#define wxCLOSE_BOX 0x1000
#endif
#ifndef wxFIXED_MINSIZE
#define wxFIXED_MINSIZE 0
#endif
/*!
* CDlgAttachProject class declaration
*/
class CDlgAttachProject: public wxDialog
{
DECLARE_CLASS( CDlgAttachProject )
DECLARE_DYNAMIC_CLASS( CDlgAttachProject )
DECLARE_EVENT_TABLE()
public:
@ -55,16 +85,35 @@ public:
/// Creates the controls and sizers
void CreateControls();
////@begin CDlgAttachProject event handler declarations
////@end CDlgAttachProject event handler declarations
////@begin CDlgAttachProject member function declarations
wxString GetProjectAddress() const { return m_strProjectAddress ; }
void SetProjectAddress(wxString value) { m_strProjectAddress = value ; }
wxString GetProjectAccountKey() const { return m_strProjectAccountKey ; }
void SetProjectAccountKey(wxString value) { m_strProjectAccountKey = value ; }
/// Retrieves bitmap resources
wxBitmap GetBitmapResource( const wxString& name );
/// Retrieves icon resources
wxIcon GetIconResource( const wxString& name );
////@end CDlgAttachProject member function declarations
/// Should we show tooltips?
static bool ShowToolTips();
////@begin CDlgAttachProject member variables
wxTextCtrl* m_ProjectAddressCtrl;
wxTextCtrl* m_ProjectAccountKeyCtrl;
wxString m_strProjectAddress;
wxString m_strProjectAccountKey;
wxString m_strProjectAddress;
wxString m_strProjectAccountKey;
////@end CDlgAttachProject member variables
};
#endif
// _DLGATTACHPROJECT_H_

View File

@ -0,0 +1,181 @@
// Berkeley Open Infrastructure for Network Computing
// http://boinc.berkeley.edu
// Copyright (C) 2005 University of California
//
// This is free software; you can redistribute it and/or
// modify it under the terms of the GNU Lesser General Public
// License as published by the Free Software Foundation;
// either version 2.1 of the License, or (at your option) any later version.
//
// This software is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
// See the GNU Lesser General Public License for more details.
//
// To view the GNU Lesser General Public License visit
// http://www.gnu.org/copyleft/lesser.html
// or write to the Free Software Foundation, Inc.,
// 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
//
#if defined(__GNUG__) && !defined(__APPLE__)
#pragma implementation "DlgSelectComputer.h"
#endif
// For compilers that support precompilation, includes "wx/wx.h".
#include "wx/wxprec.h"
#ifdef __BORLANDC__
#pragma hdrstop
#endif
#ifndef WX_PRECOMP
#include "wx/wx.h"
#endif
////@begin includes
////@end includes
#include "DlgSelectComputer.h"
////@begin XPM images
////@end XPM images
/*!
* CDlgSelectComputer type definition
*/
IMPLEMENT_DYNAMIC_CLASS( CDlgSelectComputer, wxDialog )
/*!
* CDlgSelectComputer event table definition
*/
BEGIN_EVENT_TABLE( CDlgSelectComputer, wxDialog )
////@begin CDlgSelectComputer event table entries
////@end CDlgSelectComputer event table entries
END_EVENT_TABLE()
/*!
* CDlgSelectComputer constructors
*/
CDlgSelectComputer::CDlgSelectComputer( )
{
}
CDlgSelectComputer::CDlgSelectComputer( wxWindow* parent, wxWindowID id, const wxString& caption, const wxPoint& pos, const wxSize& size, long style )
{
Create(parent, id, caption, pos, size, style);
}
/*!
* CDlgSelectComputer creator
*/
bool CDlgSelectComputer::Create( wxWindow* parent, wxWindowID id, const wxString& caption, const wxPoint& pos, const wxSize& size, long style )
{
////@begin CDlgSelectComputer member initialisation
m_ComputerNameCtrl = NULL;
m_ComputerPasswordCtrl = NULL;
////@end CDlgSelectComputer member initialisation
////@begin CDlgSelectComputer creation
SetExtraStyle(GetExtraStyle()|wxWS_EX_BLOCK_EVENTS);
wxDialog::Create( parent, id, caption, pos, size, style );
CreateControls();
GetSizer()->Fit(this);
GetSizer()->SetSizeHints(this);
Centre();
////@end CDlgSelectComputer creation
return TRUE;
}
/*!
* Control creation for CDlgSelectComputer
*/
void CDlgSelectComputer::CreateControls()
{
////@begin CDlgSelectComputer content construction
CDlgSelectComputer* itemDialog1 = this;
wxBoxSizer* itemBoxSizer2 = new wxBoxSizer(wxVERTICAL);
itemDialog1->SetSizer(itemBoxSizer2);
wxFlexGridSizer* itemFlexGridSizer3 = new wxFlexGridSizer(1, 2, 0, 0);
itemBoxSizer2->Add(itemFlexGridSizer3, 0, wxALIGN_CENTER_HORIZONTAL|wxALL, 5);
wxBoxSizer* itemBoxSizer4 = new wxBoxSizer(wxVERTICAL);
itemFlexGridSizer3->Add(itemBoxSizer4, 0, wxALIGN_CENTER_HORIZONTAL|wxALIGN_CENTER_VERTICAL|wxALL, 5);
wxFlexGridSizer* itemFlexGridSizer5 = new wxFlexGridSizer(2, 2, 0, 0);
itemBoxSizer4->Add(itemFlexGridSizer5, 0, wxALIGN_CENTER_HORIZONTAL|wxALL, 5);
wxStaticText* itemStaticText6 = new wxStaticText;
itemStaticText6->Create( itemDialog1, wxID_STATIC, _("Host name:"), wxDefaultPosition, wxDefaultSize, 0 );
itemFlexGridSizer5->Add(itemStaticText6, 0, wxALIGN_RIGHT|wxALIGN_CENTER_VERTICAL|wxALL|wxADJUST_MINSIZE, 5);
wxString* m_ComputerNameCtrlStrings = NULL;
m_ComputerNameCtrl = new wxComboBox;
m_ComputerNameCtrl->Create( itemDialog1, ID_SELECTCOMPUTERNAME, _T(""), wxDefaultPosition, wxSize(250, -1), 0, m_ComputerNameCtrlStrings, wxCB_DROPDOWN|wxCB_SORT );
itemFlexGridSizer5->Add(m_ComputerNameCtrl, 0, wxALIGN_CENTER_HORIZONTAL|wxALIGN_CENTER_VERTICAL|wxALL, 5);
wxStaticText* itemStaticText8 = new wxStaticText;
itemStaticText8->Create( itemDialog1, wxID_STATIC, _("Password:"), wxDefaultPosition, wxDefaultSize, 0 );
itemFlexGridSizer5->Add(itemStaticText8, 0, wxALIGN_RIGHT|wxALIGN_CENTER_VERTICAL|wxALL|wxADJUST_MINSIZE, 5);
m_ComputerPasswordCtrl = new wxTextCtrl;
m_ComputerPasswordCtrl->Create( itemDialog1, ID_SELECTCOMPUTERPASSWORD, _T(""), wxDefaultPosition, wxSize(250, -1), wxTE_PASSWORD );
itemFlexGridSizer5->Add(m_ComputerPasswordCtrl, 0, wxALIGN_CENTER_HORIZONTAL|wxALIGN_CENTER_VERTICAL|wxALL, 5);
wxBoxSizer* itemBoxSizer10 = new wxBoxSizer(wxVERTICAL);
itemFlexGridSizer3->Add(itemBoxSizer10, 0, wxALIGN_CENTER_HORIZONTAL|wxALIGN_TOP|wxALL, 5);
wxButton* itemButton11 = new wxButton;
itemButton11->Create( itemDialog1, wxID_OK, _("&OK"), wxDefaultPosition, wxDefaultSize, 0 );
itemButton11->SetDefault();
itemBoxSizer10->Add(itemButton11, 0, wxALIGN_CENTER_HORIZONTAL|wxALL, 5);
wxButton* itemButton12 = new wxButton;
itemButton12->Create( itemDialog1, wxID_CANCEL, _("&Cancel"), wxDefaultPosition, wxDefaultSize, 0 );
itemBoxSizer10->Add(itemButton12, 0, wxALIGN_CENTER_HORIZONTAL|wxALL, 5);
////@end CDlgSelectComputer content construction
}
/*!
* Should we show tooltips?
*/
bool CDlgSelectComputer::ShowToolTips()
{
return TRUE;
}
/*!
* Get bitmap resources
*/
wxBitmap CDlgSelectComputer::GetBitmapResource( const wxString& name )
{
// Bitmap retrieval
////@begin CDlgSelectComputer bitmap retrieval
return wxNullBitmap;
////@end CDlgSelectComputer bitmap retrieval
}
/*!
* Get icon resources
*/
wxIcon CDlgSelectComputer::GetIconResource( const wxString& name )
{
// Icon retrieval
////@begin CDlgSelectComputer icon retrieval
return wxNullIcon;
////@end CDlgSelectComputer icon retrieval
}

View File

@ -0,0 +1,110 @@
// Berkeley Open Infrastructure for Network Computing
// http://boinc.berkeley.edu
// Copyright (C) 2005 University of California
//
// This is free software; you can redistribute it and/or
// modify it under the terms of the GNU Lesser General Public
// License as published by the Free Software Foundation;
// either version 2.1 of the License, or (at your option) any later version.
//
// This software is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
// See the GNU Lesser General Public License for more details.
//
// To view the GNU Lesser General Public License visit
// http://www.gnu.org/copyleft/lesser.html
// or write to the Free Software Foundation, Inc.,
// 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
//
#ifndef _DLGSELECTCOMPUTER_H_
#define _DLGSELECTCOMPUTER_H_
#if defined(__GNUG__) && !defined(__APPLE__)
#pragma interface "DlgSelectComputer.cpp"
#endif
/*!
* Includes
*/
////@begin includes
////@end includes
/*!
* Forward declarations
*/
////@begin forward declarations
////@end forward declarations
/*!
* Control identifiers
*/
////@begin control identifiers
#define ID_DIALOG 10000
#define SYMBOL_CDLGSELECTCOMPUTER_STYLE wxCAPTION|wxRESIZE_BORDER|wxSYSTEM_MENU
#define SYMBOL_CDLGSELECTCOMPUTER_TITLE _("Select Computer")
#define SYMBOL_CDLGSELECTCOMPUTER_IDNAME ID_DIALOG
#define SYMBOL_CDLGSELECTCOMPUTER_SIZE wxSize(400, 300)
#define SYMBOL_CDLGSELECTCOMPUTER_POSITION wxDefaultPosition
#define ID_SELECTCOMPUTERNAME 10001
#define ID_SELECTCOMPUTERPASSWORD 10002
////@end control identifiers
/*!
* Compatibility
*/
#ifndef wxCLOSE_BOX
#define wxCLOSE_BOX 0x1000
#endif
#ifndef wxFIXED_MINSIZE
#define wxFIXED_MINSIZE 0
#endif
/*!
* CDlgSelectComputer class declaration
*/
class CDlgSelectComputer: public wxDialog
{
DECLARE_DYNAMIC_CLASS( CDlgSelectComputer )
DECLARE_EVENT_TABLE()
public:
/// Constructors
CDlgSelectComputer( );
CDlgSelectComputer( wxWindow* parent, wxWindowID id = SYMBOL_CDLGSELECTCOMPUTER_IDNAME, const wxString& caption = SYMBOL_CDLGSELECTCOMPUTER_TITLE, const wxPoint& pos = SYMBOL_CDLGSELECTCOMPUTER_POSITION, const wxSize& size = SYMBOL_CDLGSELECTCOMPUTER_SIZE, long style = SYMBOL_CDLGSELECTCOMPUTER_STYLE );
/// Creation
bool Create( wxWindow* parent, wxWindowID id = SYMBOL_CDLGSELECTCOMPUTER_IDNAME, const wxString& caption = SYMBOL_CDLGSELECTCOMPUTER_TITLE, const wxPoint& pos = SYMBOL_CDLGSELECTCOMPUTER_POSITION, const wxSize& size = SYMBOL_CDLGSELECTCOMPUTER_SIZE, long style = SYMBOL_CDLGSELECTCOMPUTER_STYLE );
/// Creates the controls and sizers
void CreateControls();
////@begin CDlgSelectComputer event handler declarations
////@end CDlgSelectComputer event handler declarations
////@begin CDlgSelectComputer member function declarations
/// Retrieves bitmap resources
wxBitmap GetBitmapResource( const wxString& name );
/// Retrieves icon resources
wxIcon GetIconResource( const wxString& name );
////@end CDlgSelectComputer member function declarations
/// Should we show tooltips?
static bool ShowToolTips();
////@begin CDlgSelectComputer member variables
wxComboBox* m_ComputerNameCtrl;
wxTextCtrl* m_ComputerPasswordCtrl;
////@end CDlgSelectComputer member variables
};
#endif
// _DLGSELECTCOMPUTER_H_

View File

@ -324,8 +324,8 @@ void CViewProjects::OnTaskLinkClicked( const wxHtmlLinkInfo& link )
if ( wxID_OK == iAnswer )
{
pDoc->ProjectAttach(
pDlg->m_strProjectAddress,
pDlg->m_strProjectAccountKey
pDlg->GetProjectAddress(),
pDlg->GetProjectAccountKey()
);
}