本文整理汇总了C++中wxLogDebugFunc函数的典型用法代码示例。如果您正苦于以下问题:C++ wxLogDebugFunc函数的具体用法?C++ wxLogDebugFunc怎么用?C++ wxLogDebugFunc使用的例子?那么, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了wxLogDebugFunc函数的14个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: wxLogDebugFunc
void ServerEvents::OnHostedBattle( int battleid )
{
wxLogDebugFunc( _T("") );
try
{
Battle& battle = m_serv.GetBattle( battleid );
if ( battle.GetBattleType() == BT_Played )
{
battle.CustomBattleOptions().loadOptions( OptionsWrapper::MapOption, battle.GetHostMapName() );
battle.CustomBattleOptions().loadOptions( OptionsWrapper::ModOption, battle.GetHostModName() );
}
else
{
battle.GetBattleFromScript( true );
}
wxString presetname = sett().GetModDefaultPresetName( battle.GetHostModName() );
if ( !presetname.IsEmpty() )
{
battle.LoadOptionsPreset( presetname );
}
battle.LoadMapDefaults( battle.GetHostMapName() );
m_serv.SendHostInfo( IBattle::HI_Send_All_opts );
ui().OnHostedBattle( battle );
}
catch (assert_exception) {}
}
示例2: wxLogDebugFunc
int OptionsWrapper::GetAIOptionIndex( const wxString& nick ) const
{
std::map<wxString,int>::const_iterator itor = m_ais_indexes.find(nick);
int pos = -1;
if ( itor != m_ais_indexes.end() ) pos = itor->second;
wxLogDebugFunc( _T("bot name: ") + nick + _T(" option index: ") + TowxString( pos ) );
return pos;
}
示例3: wxLogDebugFunc
void MapSelectDialog::OnMapGridLeftDClick(wxMouseEvent& /*unused*/)
{
wxLogDebugFunc( _T("") );
if ( m_mapgrid->GetSelectedMap() ) {
EndModal( wxID_OK );
}
}
示例4: wxLogDebugFunc
PlaybackTab<PlaybackTraits>::~PlaybackTab()
{
m_minimap->SetBattle( NULL );
if ( m_filter != 0 )
m_filter->SaveFilterValues();
wxLogDebugFunc( _T( "" ) );
}
示例5: wxLogDebugFunc
UnitSyncMod SpringUnitSync::GetMod( int index )
{
wxLogDebugFunc( _T("") );
UnitSyncMod m;
m.name = m_mod_array[index];
m.hash = m_mods_list[m.name];
return m;
}
示例6: wxLogDebugFunc
void Spring::OnTerminated( wxCommandEvent& event )
{
wxLogDebugFunc( _T("") );
m_running = false;
m_process = 0; // NOTE I'm not sure if this should be deleted or not, according to wx docs it shouldn't.
m_wx_process = 0;
event.SetEventType(GlobalEvent::OnSpringTerminated);
GlobalEvent::Send(event);
}
示例7: wxLogDebugFunc
void Spring::OnTerminated( wxCommandEvent& event )
{
wxLogDebugFunc( _T("") );
m_running = false;
m_process = 0; // NOTE I'm not sure if this should be deleted or not, according to wx docs it shouldn't.
m_wx_process = 0;
ui().OnSpringTerminated( event.GetExtraLong() );
GetGlobalEventSender(GlobalEvents::OnSpringTerminated).SendEvent( event.GetExtraLong() );
}
示例8: wxLogDebugFunc
void ChatPanel::Part()
{
wxLogDebugFunc( _T( "" ) );
if ( m_type == CPT_Channel )
{
if ( m_channel == 0 ) return;
m_channel->Leave();
m_channel->uidata.panel = 0;
}
}
示例9: wxLogDebugFunc
void BattleRoomTab::OnMapBrowse( wxCommandEvent& /*unused*/ )
{
if ( !m_battle ) return;
wxLogDebugFunc( _T( "" ) );
if ( mapSelectDialog().ShowModal() == wxID_OK && mapSelectDialog().GetSelectedMap() != NULL )
{
wxString mapname = mapSelectDialog().GetSelectedMap()->name;
wxLogDebugFunc( mapname );
if ( !m_battle->IsFounderMe() )
{
m_battle->DoAction( _T( "suggests " ) + mapname );
return;
}
const int idx = m_map_combo->FindString( mapname, true /*case sensitive*/ );
if ( idx != wxNOT_FOUND )
SetMap( idx );
}
}
示例10: wxLogDebugFunc
void BattleroomListCtrl::OnColourSelect( wxCommandEvent& /*unused*/ )
{
wxLogDebugFunc( _T("") );
wxColour CurrentColour = m_sel_user->BattleStatus().colour;
CurrentColour = GetColourFromUser(this, CurrentColour);
if ( !CurrentColour.IsOk() ) return;
if( m_sel_user ) ((Battle*)m_battle)->ForceColour( *m_sel_user, CurrentColour );
}
示例11: wxLogDebugFunc
void ServerEvents::OnBattleInfoUpdated( int battleid )
{
wxLogDebugFunc( _T("") );
try
{
Battle& battle = m_serv.GetBattle( battleid );
BattleEvents::GetBattleEventSender( BattleEvents::BattleInfoUpdate ).SendEvent( std::make_pair(&battle,wxString()) );
}
catch ( assert_exception ) {}
}
示例12: wxLogDebugFunc
void SimpleServerEvents::OnBattleInfoUpdated( int /*battleid*/ )
{
wxLogDebugFunc( _T("") );
try
{
// Battle& battle = m_serv.GetBattle( battleid );
// ui().OnBattleInfoUpdated( battle );
}
catch ( assert_exception ) {}
}
示例13: wxLogDebugFunc
TorrentWrapper::~TorrentWrapper()
{
wxLogDebugFunc( wxEmptyString );
m_info_download_thread.Wait();
m_torr->pause();
ClearFinishedTorrents();
RemoveInvalidTorrents();
/* the use of Settings seems to a problem (destruction order) therefore disabled until further notice
//save torrents to resume
std::vector<wxString> toResume;
TorrenthandleInfoMap infomap = GetHandleInfoMap();
TorrenthandleInfoMap::iterator it = infomap.begin();
for ( ; it != infomap.end(); ++it )
{
PlasmaResourceInfo info = it->first;
toResume.push_back( info.m_name );
}
std::vector<wxString> currentResumes = sett().GetTorrentListToResume();
for ( std::vector<wxString>::const_iterator it = currentResumes.begin();
it != currentResumes.end(); ++it )
{
toResume.push_back( *it );
}
//save new list
sett().SetTorrentListToResume( toResume );
*/
#ifndef __WXMSW__
try
{
m_torr->stop_upnp();
}
catch (std::exception& e)
{
wxLogError( TowxString( e.what() ) );
}
try
{
m_torr->stop_natpmp();
}
catch (std::exception& e)
{
wxLogError( TowxString( e.what() ) );
}
try
{
m_torr->stop_lsd();
}
catch (std::exception& e)
{
wxLogError( TowxString( e.what() ) );
}
#endif
delete m_torr;
}
示例14: wxLogDebugFunc
void SinglePlayerTab::OnMapBrowse( wxCommandEvent& /*unused*/ )
{
wxLogDebugFunc( wxEmptyString );
const wxString mapname = mapSelectDialog();
if ( !mapname.empty()) {
const int idx = m_map_pick->FindString( mapname, true /*case sensitive*/ );
if ( idx != wxNOT_FOUND ) {
SetMap( idx );
}
}
}