Codebase list springlobby / 624e6dd
Imported Upstream version 0.99 Jan Dittberner 13 years ago
9 changed file(s) with 35 addition(s) and 26 deletion(s). Raw diff Collapse all Expand all
0 #ifndef SPRINGLOBBY_HEADERGUARD_CONFIG_H
1 #define SPRINGLOBBY_HEADERGUARD_CONFIG_H
2
3 #undef VERSION
4
5 /* the git tag / commit we build from */
6 #define VERSION "0.99"
7
8 #endif /* SPRINGLOBBY_HEADERGUARD_CONFIG_H */
+0
-9
springlobby_config\.h less more
0 #ifndef SPRINGLOBBY_HEADERGUARD_CONFIG_H
1 #define SPRINGLOBBY_HEADERGUARD_CONFIG_H
2
3 #undef VERSION
4
5 /* the git tag / commit we build from */
6 #define VERSION "0.96"
7
8 #endif /* SPRINGLOBBY_HEADERGUARD_CONFIG_H */
3131 #include "iunitsync.h"
3232 #include "user.h"
3333 #include "battle.h"
34 #include "defines.h"
3435 #include "utils/conversion.h"
3536 #include "utils/debug.h"
3637 #include "utils/uievents.h"
283284 //m_info1_sizer = new wxBoxSizer( wxHORIZONTAL );
284285 m_main_sizer = new wxBoxSizer( wxVERTICAL );
285286
286 int side_sel_width = m_side_sel->GetWidestItemWidth();
287287 wxBoxSizer* m_side_sel_sizer = new wxBoxSizer( wxHORIZONTAL );
288 m_side_sel_sizer->SetMinSize( side_sel_width, CONTROL_HEIGHT );
288 #ifndef HAVE_WX29
289 int side_sel_width = m_side_sel->GetWidestItemWidth();
290 m_side_sel_sizer->SetMinSize( side_sel_width, CONTROL_HEIGHT );
291 #endif
289292 m_side_sel_sizer->Add( m_side_sel, 1, wxEXPAND );
290293
291294 // Put widgets in place
450450 {
451451 if (m1.Len() > 2 && (m1.GetChar(2) >= 48 && m1.GetChar(2) <= 58))
452452 {
453 color = (m1.GetChar(1) - 48)*10+(m1.GetChar(2) - 48);
453 color = (int(m1.GetChar(1)) - 48)*10+(int(m1.GetChar(2)) - 48);
454454 _2chars = true;
455455 m1 = m1.Mid(3);
456456 }
457457 else
458458 {
459 color = m1.GetChar(1) -48;
459 color = int(m1.GetChar(1)) -48;
460460 _2chars = false;
461461 m1 = m1.Mid(2);
462462 }
44
55 #include "nonportable.h" //pulls in the SL_DUMMY_COL define if applicable
66 #include "settings.h"
7 #include "defines.h"
78 #include "iconimagelist.h"
89 #include "utils/customdialogs.h"
910 #include "uiutils.h"
1314
1415 #include <algorithm>
1516
16 #ifndef HAVE_WX29
17 BEGIN_EVENT_TABLE_TEMPLATE2(CustomVirtListCtrl, ListBaseType, T,L)
17 #ifdef HAVE_WX29
18 wxBEGIN_EVENT_TABLE_TEMPLATE2(CustomVirtListCtrl, ListBaseType, T,L)
1819 #else
19 wxBEGIN_EVENT_TABLE_TEMPLATE2(CustomVirtListCtrl, ListBaseType, T,L)
20 BEGIN_EVENT_TABLE_TEMPLATE2(CustomVirtListCtrl, ListBaseType, T,L)
2021 #endif
2122 #if wxUSE_TIPWINDOW
2223 EVT_MOTION(CustomVirtListCtrl::OnMouseMotion)
00 /* Copyright (C) 2007 The SpringLobby Team. All rights reserved. */
1 #ifdef __WXMAC__
2 #include <wx/bitmap.h>
3 #endif
4
51 #include "flagimages.h"
62 #include "flagimagedata.h"
73
4 #include <wx/bitmap.h>
85 #include <wx/imaglist.h>
96 #include <wx/log.h>
107
600600
601601 if ( server.uidata.panel ) server.uidata.panel->StatusMessage( _T("Connected to ") + server_name + _T(".") );
602602 mw().GetBattleListTab().OnConnected();
603 if (m_con_win)
604 {
605 delete m_con_win;
606 m_con_win = 0;
607 }
608 if (m_reconnect_dialog)
609 {
610 delete m_reconnect_dialog;
611 m_reconnect_dialog = 0;
612 }
603613 }
604614
605615
13671377
13681378 void Ui::CheckForUpdates()
13691379 {
1370 wxString t = _T("SpringLobby test\njfrepojeivnpenver\nwvpreivienrio\npwoewnpfwpnef\njcwoejfwp");
1371 Paste2Pastebin( t );
1372 return;
13731380 wxString latestVersion = GetLatestVersion();
13741381
13751382 if (latestVersion == _T("-1"))
1919 if (!main_app_has_focus) return _T("");
2020 return sett().GetShowTooltips() ? input : _T("");
2121 #else
22 if (!main_app_has_focus) return _T("").wc_str();
23 return sett().GetShowTooltips() ? input : _T("").wc_str();
22 wxString dummy = wxEmptyString;
23 if (!main_app_has_focus) return dummy.wc_str();
24 return sett().GetShowTooltips() ? input : dummy.wc_str();
2425 #endif
2526 }
2627
22 cd $(dirname $0)/..
33
44 git archive --format=tar --prefix=${2}/ HEAD > ${1}/${2}.tar
5 tar -Prf ${1}/${2}.tar ${1}/springlobby_config.h --transform "s;${1}/springlobby_config\.h;${2}/springlobby_config\.h;g"
5 tar -Prf ${1}/${2}.tar ${1}/springlobby_config.h --transform "s;${1}/springlobby_config.h;${2}/springlobby_config.h;g"
66 cat ${1}/${2}.tar | gzip > ${1}/${2}.tar.gz
77 cat ${1}/${2}.tar | bzip2 > ${1}/${2}.tar.bz2
88 rm ${1}/${2}.tar