Changed FortyThieves to 2.0 dialog logic
Did I modify dialog.cpp as well?
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@383
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
if (m_player.Length() == 0 && !m_playerDialog)
{
m_playerDialog = new PlayerSelectionDialog(this, m_scoreFile);
+ m_playerDialog->ShowModal();
m_player = m_playerDialog->GetPlayersName();
if (m_player.Length() > 0)
{
0, 0,
wxLB_SINGLE
);
+/*
+ Robert Roebling
+
int numPlayers = 0;
wxString* players = 0;
m_scoreFile->GetPlayerList(&players, numPlayers);
list->Append(players[i]);
}
delete players;
+*/
m_textField = new wxTextCtrl(this, -1, "", wxDefaultPosition, wxDefaultSize, 0);
const wxString& PlayerSelectionDialog::GetPlayersName()
{
+/*
m_player = "";
Show(TRUE);
+*/
return m_player;
}
mdi_child->m_page = (GtkNotebookPage*) (g_list_last(GTK_NOTEBOOK(m_widget)->children)->data);
gtk_notebook_set_page( GTK_NOTEBOOK(m_widget), m_children.Number()-1 );
+
+ gtk_page_change_callback( NULL, mdi_child->m_page, 0, this );
};
mdi_child->m_page = (GtkNotebookPage*) (g_list_last(GTK_NOTEBOOK(m_widget)->children)->data);
gtk_notebook_set_page( GTK_NOTEBOOK(m_widget), m_children.Number()-1 );
+
+ gtk_page_change_callback( NULL, mdi_child->m_page, 0, this );
};