Revision: 1430
http://rigsofrods.svn.sourceforge.net/rigsofrods/?rev=1430&view=rev
Author: rorthomas
Date: 2010-07-08 15:40:58 +0000 (Thu, 08 Jul 2010)
Log Message:
-----------
added "get token" button
Modified Paths:
--------------
trunk/source/configurator/configurator.cpp
Modified: trunk/source/configurator/configurator.cpp
===================================================================
--- trunk/source/configurator/configurator.cpp 2010-07-07 20:53:44 UTC (rev
1429)
+++ trunk/source/configurator/configurator.cpp 2010-07-08 15:40:58 UTC (rev
1430)
@@ -217,6 +217,7 @@
void OnButPlay(wxCommandEvent& event);
void OnButRestore(wxCommandEvent& event);
void OnTestNet(wxCommandEvent& event);
+ void OnGetUserToken(wxCommandEvent& event);
void OnLinkClicked(wxHtmlLinkEvent& event);
void OnLinkClickedUpdate(wxHtmlLinkEvent& event);
//void OnSightRangeScroll(wxScrollEvent& event);
@@ -322,7 +323,7 @@
//wxComboBox *ctrlTypeCombo;
//wxString typeChoices[11];
//wxButton *btnRemap;
- wxButton *btnUpdate;
+ wxButton *btnUpdate, *btnToken;
event_trigger_t *getSelectedControlEvent();
KeySelectDialog *kd;
int controlItemCounter;
@@ -1054,6 +1055,7 @@
mynotebook3,
command_joywizard,
FFSLIDER,
+ get_user_token,
};
// ----------------------------------------------------------------------------
@@ -1071,6 +1073,7 @@
EVT_BUTTON(command_play, MyDialog::OnButPlay)
EVT_BUTTON(command_restore, MyDialog::OnButRestore)
EVT_BUTTON(net_test, MyDialog::OnTestNet)
+ EVT_BUTTON(get_user_token, MyDialog::OnGetUserToken)
EVT_BUTTON(clear_cache, MyDialog::OnButClearCache)
EVT_BUTTON(regen_cache, MyDialog::OnButRegenCache)
EVT_BUTTON(update_ror, MyDialog::OnButUpdateRoR)
@@ -1958,10 +1961,12 @@
dText = new wxStaticText(panel_net_bottom, -1, _("User Token: "),
wxPoint(10,80));
usertoken=new wxTextCtrl(panel_net_bottom, -1, wxString(), wxPoint(150,
80), wxSize(200, -1));
- usertoken->SetToolTip(_("Your Forum User Token."));
+ usertoken->SetToolTip(_("Your rigsofrods.com User Token."));
- btnUpdate = new wxButton(panel_net_bottom, net_test, _("Update"),
wxPoint(360, 5), wxSize(120,85));
+ btnToken = new wxButton(panel_net_bottom, get_user_token, _("Get
Token"), wxPoint(360, 78), wxSize(110,25));
+ btnUpdate = new wxButton(panel_net_bottom, net_test, _("Update"),
wxPoint(360, 5), wxSize(110,65));
+
netPanel->SetSizer(sizer_net);
// dText = new wxStaticText(netPanel, -1, wxString("P2P port
number: "), wxPoint(10,153));
@@ -3683,6 +3688,11 @@
}
+void MyDialog::OnGetUserToken(wxCommandEvent& event)
+{
+ wxLaunchDefaultBrowser(wxT("http://usertoken.rigsofrods.com"));
+}
+
void MyDialog::OnTestNet(wxCommandEvent& event)
{
#ifdef NETWORK
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
------------------------------------------------------------------------------
This SF.net email is sponsored by Sprint
What will you do first with EVO, the first 4G phone?
Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first
_______________________________________________
Rigsofrods-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/rigsofrods-devel