2005-03-11 22:10:56 +00:00
|
|
|
// 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
|
2005-04-01 22:17:44 +00:00
|
|
|
//
|
2005-06-17 04:53:35 +00:00
|
|
|
#ifndef _DLGACCOUNTMANAGERSIGNUP_H_
|
|
|
|
#define _DLGACCOUNTMANAGERSIGNUP_H_
|
2005-03-11 22:10:56 +00:00
|
|
|
|
|
|
|
#if defined(__GNUG__) && !defined(__APPLE__)
|
2005-06-17 04:53:35 +00:00
|
|
|
#pragma interface "DlgAccountManagerSignup.cpp"
|
2005-03-11 22:10:56 +00:00
|
|
|
#endif
|
|
|
|
|
|
|
|
/*!
|
|
|
|
* Includes
|
|
|
|
*/
|
|
|
|
|
|
|
|
////@begin includes
|
2005-06-28 22:22:29 +00:00
|
|
|
#include "hyperlink.h"
|
2005-04-01 22:17:44 +00:00
|
|
|
#include "wx/valgen.h"
|
2005-03-11 22:10:56 +00:00
|
|
|
////@end includes
|
|
|
|
|
|
|
|
/*!
|
|
|
|
* Forward declarations
|
|
|
|
*/
|
|
|
|
|
|
|
|
////@begin forward declarations
|
|
|
|
////@end forward declarations
|
|
|
|
|
|
|
|
/*!
|
|
|
|
* Control identifiers
|
|
|
|
*/
|
|
|
|
|
|
|
|
////@begin control identifiers
|
|
|
|
#define ID_DIALOG 10000
|
2005-07-21 10:40:30 +00:00
|
|
|
#define SYMBOL_CDLGACCOUNTMANAGERSIGNUP_STYLE wxCAPTION|wxSYSTEM_MENU
|
2005-06-17 04:53:35 +00:00
|
|
|
#define SYMBOL_CDLGACCOUNTMANAGERSIGNUP_TITLE _("Account Manager")
|
|
|
|
#define SYMBOL_CDLGACCOUNTMANAGERSIGNUP_IDNAME ID_DIALOG
|
|
|
|
#define SYMBOL_CDLGACCOUNTMANAGERSIGNUP_SIZE wxSize(400, 300)
|
|
|
|
#define SYMBOL_CDLGACCOUNTMANAGERSIGNUP_POSITION wxDefaultPosition
|
2005-06-28 20:30:10 +00:00
|
|
|
#define ID_ACCTMANAGERTEXT 10028
|
2005-07-01 06:30:06 +00:00
|
|
|
#define ID_ACCTMANAGERDOCLINK 10029
|
2005-06-17 04:53:35 +00:00
|
|
|
#define ID_ACCTMANAGERURL 10001
|
|
|
|
#define ID_ACCTMANAGERUSERNAME 10002
|
|
|
|
#define ID_ACCTMANAGERPASSWORD 10003
|
2005-03-11 22:10:56 +00:00
|
|
|
////@end control identifiers
|
|
|
|
|
|
|
|
/*!
|
|
|
|
* Compatibility
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef wxCLOSE_BOX
|
|
|
|
#define wxCLOSE_BOX 0x1000
|
|
|
|
#endif
|
|
|
|
#ifndef wxFIXED_MINSIZE
|
|
|
|
#define wxFIXED_MINSIZE 0
|
|
|
|
#endif
|
|
|
|
|
|
|
|
/*!
|
2005-06-17 04:53:35 +00:00
|
|
|
* CDlgAccountManagerSignup class declaration
|
2005-03-11 22:10:56 +00:00
|
|
|
*/
|
|
|
|
|
2005-06-17 04:53:35 +00:00
|
|
|
class CDlgAccountManagerSignup: public wxDialog
|
2005-03-11 22:10:56 +00:00
|
|
|
{
|
2005-06-17 04:53:35 +00:00
|
|
|
DECLARE_DYNAMIC_CLASS( CDlgAccountManagerSignup )
|
2005-03-11 22:10:56 +00:00
|
|
|
DECLARE_EVENT_TABLE()
|
|
|
|
|
|
|
|
public:
|
|
|
|
/// Constructors
|
2005-06-17 04:53:35 +00:00
|
|
|
CDlgAccountManagerSignup( );
|
|
|
|
CDlgAccountManagerSignup( wxWindow* parent, wxWindowID id = SYMBOL_CDLGACCOUNTMANAGERSIGNUP_IDNAME, const wxString& caption = SYMBOL_CDLGACCOUNTMANAGERSIGNUP_TITLE, const wxPoint& pos = SYMBOL_CDLGACCOUNTMANAGERSIGNUP_POSITION, const wxSize& size = SYMBOL_CDLGACCOUNTMANAGERSIGNUP_SIZE, long style = SYMBOL_CDLGACCOUNTMANAGERSIGNUP_STYLE );
|
2005-03-11 22:10:56 +00:00
|
|
|
|
|
|
|
/// Creation
|
2005-06-17 04:53:35 +00:00
|
|
|
bool Create( wxWindow* parent, wxWindowID id = SYMBOL_CDLGACCOUNTMANAGERSIGNUP_IDNAME, const wxString& caption = SYMBOL_CDLGACCOUNTMANAGERSIGNUP_TITLE, const wxPoint& pos = SYMBOL_CDLGACCOUNTMANAGERSIGNUP_POSITION, const wxSize& size = SYMBOL_CDLGACCOUNTMANAGERSIGNUP_SIZE, long style = SYMBOL_CDLGACCOUNTMANAGERSIGNUP_STYLE );
|
2005-03-11 22:10:56 +00:00
|
|
|
|
|
|
|
/// Creates the controls and sizers
|
|
|
|
void CreateControls();
|
|
|
|
|
2005-06-17 04:53:35 +00:00
|
|
|
////@begin CDlgAccountManagerSignup event handler declarations
|
|
|
|
|
|
|
|
////@end CDlgAccountManagerSignup event handler declarations
|
|
|
|
|
|
|
|
////@begin CDlgAccountManagerSignup member function declarations
|
2005-03-11 22:10:56 +00:00
|
|
|
|
2005-04-01 22:17:44 +00:00
|
|
|
wxString GetAcctManagerUsername() const { return m_strAcctManagerUsername ; }
|
|
|
|
void SetAcctManagerUsername(wxString value) { m_strAcctManagerUsername = value ; }
|
|
|
|
|
|
|
|
wxString GetAcctManagerPassword() const { return m_strAcctManagerPassword ; }
|
|
|
|
void SetAcctManagerPassword(wxString value) { m_strAcctManagerPassword = value ; }
|
|
|
|
|
2005-06-17 04:53:35 +00:00
|
|
|
wxString GetAcctManagerURL() const { return m_strAcctManagerURL ; }
|
|
|
|
void SetAcctManagerURL(wxString value) { m_strAcctManagerURL = value ; }
|
|
|
|
|
2005-03-11 22:10:56 +00:00
|
|
|
/// Retrieves bitmap resources
|
|
|
|
wxBitmap GetBitmapResource( const wxString& name );
|
|
|
|
|
|
|
|
/// Retrieves icon resources
|
|
|
|
wxIcon GetIconResource( const wxString& name );
|
2005-06-17 04:53:35 +00:00
|
|
|
////@end CDlgAccountManagerSignup member function declarations
|
2005-03-11 22:10:56 +00:00
|
|
|
|
|
|
|
/// Should we show tooltips?
|
|
|
|
static bool ShowToolTips();
|
|
|
|
|
2005-06-17 04:53:35 +00:00
|
|
|
////@begin CDlgAccountManagerSignup member variables
|
|
|
|
wxTextCtrl* m_AcctManagerURLCtrl;
|
2005-03-11 22:10:56 +00:00
|
|
|
wxTextCtrl* m_AcctManagerUsernameCtrl;
|
|
|
|
wxTextCtrl* m_AcctManagerPasswordCtrl;
|
2005-04-01 22:17:44 +00:00
|
|
|
wxString m_strAcctManagerUsername;
|
|
|
|
wxString m_strAcctManagerPassword;
|
2005-06-17 04:53:35 +00:00
|
|
|
wxString m_strAcctManagerURL;
|
|
|
|
////@end CDlgAccountManagerSignup member variables
|
2005-03-11 22:10:56 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|
2005-06-17 04:53:35 +00:00
|
|
|
// _DLGACCOUNTMANAGERSIGNUP_H_
|