Changeset 209


Ignore:
Timestamp:
05/17/07 18:11:13 (13 years ago)
Author:
Eoin
Message:

Some updates to find language dlls.

Files:
13 edited

Legend:

Unmodified
Added
Removed
  • Halite.pnproj

    r204 r209  
    1 <Project name="Halite"><MagicFolder excludeFolders="CVS;.svn" filter="*.*" name="res" path="res\"><File path="1337.rc"></File><File path="Halite.aps"></File><File path="Halite.ico"></File><File path="Halite.rc"></File><File path="Manifest.xml"></File><File path="RcTextExt.rb"></File><File path="resource.h"></File><File path="Template.rc"></File><File path="toolbar.bmp"></File></MagicFolder><MagicFolder excludeFolders="CVS;.svn" filter="*.*" name="src" path="src\"><MagicFolder excludeFolders="CVS;.svn" filter="*.*" name="advtabs" path="advtabs\"><File path="Debug.cpp"></File><File path="Debug.hpp"></File><File path="Peers.cpp"></File><File path="Peers.hpp"></File><File path="ThemeTestDialog.hpp"></File><File path="Torrent.cpp"></File><File path="Torrent.hpp"></File><File path="Tracker.cpp"></File><File path="Tracker.hpp"></File><File path="TrackerAddDialog.hpp"></File><File path="TrackerListView.cpp"></File><File path="TrackerListView.hpp"></File></MagicFolder><MagicFolder excludeFolders="CVS;.svn" filter="*.*" name="global" path="global\"><File path="ini.cpp"></File><File path="ini.hpp"></File><File path="ini_adapter.cpp"></File><File path="ini_adapter.hpp"></File><File path="logger.cpp"></File><File path="logger.hpp"></File><File path="string_conv.cpp"></File><File path="string_conv.hpp"></File><File path="tinyxml.cpp"></File><File path="tinyxml.hpp"></File><File path="tinyxmlerror.cpp"></File><File path="tinyxmlparser.cpp"></File><File path="unicode.hpp"></File><File path="utf8.hpp"></File><File path="wtl_app.cpp"></File><File path="wtl_app.hpp"></File></MagicFolder><File path="AdvHaliteDialog.cpp"></File><File path="AdvHaliteDialog.hpp"></File><File path="ConfigOptions.cpp"></File><File path="ConfigOptions.hpp"></File><File path="CSSFileDialog.hpp"></File><File path="DdxEx.hpp"></File><File path="DebugDialog.hpp"></File><File path="DropFileTarget.h"></File><File path="halConfig.cpp"></File><File path="halConfig.hpp"></File><File path="halEvent.cpp"></File><File path="halEvent.hpp"></File><File path="Halite.cpp"></File><File path="Halite.hpp"></File><File path="HaliteDialog.cpp"></File><File path="HaliteDialog.hpp"></File><File path="HaliteDialogBase.hpp"></File><File path="HaliteEditCtrl.hpp"></File><File path="HaliteIni.hpp"></File><File path="HaliteListManager.hpp"></File><File path="HaliteListView.cpp"></File><File path="HaliteListView.hpp"></File><File path="HaliteListViewCtrl.hpp"></File><File path="HaliteTabCtrl.hpp"></File><File path="HaliteTabPage.hpp"></File><File path="HaliteWindow.cpp"></File><File path="HaliteWindow.hpp"></File><File path="halTorrent.cpp"></File><File path="halTorrent.hpp"></File><File path="halXmlRpc.cpp"></File><File path="halXmlRpc.hpp"></File><File path="NTray.cpp"></File><File path="NTray.hpp"></File><File path="ProgressDialog.hpp"></File><File path="SimpleHtml.h"></File><File path="SplashDialog.hpp"></File><File path="SSFileDialog.hpp"></File><File path="stdAfx.cpp"></File><File path="stdAfx.hpp"></File><File path="UxthemeWrapper.cpp"></File><File path="UxthemeWrapper.hpp"></File><File path="WinAPIMutex.hpp"></File></MagicFolder><MagicFolder excludeFolders="CVS;.svn" filter="*" name="Lang" path="lang\"><File path="1337.txt"></File><File path="Dutch.txt"></File><File path="French.txt"></File><File path="German.txt"></File><File path="NewLang.txt"></File><File path="Polish.txt"></File><File path="Slovenian.txt"></File><File path="Template.txt"></File><File path="Turkish.txt"></File></MagicFolder><File path="Jamfile"></File></Project> 
     1<<<<<<< .mine 
     2<Project name="Halite"><MagicFolder excludeFolders="CVS;.svn" filter="*.*" name="res" path="res\"><File path="1337.rc"></File><File path="afxres.h"></File><File path="CVTRES.EXE"></File><File path="GoLink.exe"></File><File path="GoRC.exe"></File><File path="Halite.dll"></File><File path="Halite.ico"></File><File path="Halite.rc"></File><File path="Halite.RES"></File><File path="LINK.EXE"></File><File path="Manifest.xml"></File><File path="MSPDB50.DLL"></File><File path="RC.EXE"></File><File path="RCDLL.DLL"></File><File path="RcTextExt.rb"></File><File path="resource.h"></File><File path="Template.rc"></File><File path="toolbar.bmp"></File></MagicFolder><MagicFolder excludeFolders="CVS;.svn" filter="*.*" name="src" path="src\"><MagicFolder excludeFolders="CVS;.svn" filter="*.*" name="advtabs" path="advtabs\"><File path="Debug.cpp"></File><File path="Debug.hpp"></File><File path="Peers.cpp"></File><File path="Peers.hpp"></File><File path="ThemeTestDialog.hpp"></File><File path="Torrent.cpp"></File><File path="Torrent.hpp"></File><File path="Tracker.cpp"></File><File path="Tracker.hpp"></File><File path="TrackerAddDialog.hpp"></File><File path="TrackerListView.cpp"></File><File path="TrackerListView.hpp"></File></MagicFolder><MagicFolder excludeFolders="CVS;.svn" filter="*.*" name="global" path="global\"><File path="ini.cpp"></File><File path="ini.hpp"></File><File path="ini_adapter.cpp"></File><File path="ini_adapter.hpp"></File><File path="logger.cpp"></File><File path="logger.hpp"></File><File path="string_conv.cpp"></File><File path="string_conv.hpp"></File><File path="tinyxml.cpp"></File><File path="tinyxml.hpp"></File><File path="tinyxmlerror.cpp"></File><File path="tinyxmlparser.cpp"></File><File path="unicode.hpp"></File><File path="utf8.hpp"></File><File path="wtl_app.cpp"></File><File path="wtl_app.hpp"></File></MagicFolder><File path="AdvHaliteDialog.cpp"></File><File path="AdvHaliteDialog.hpp"></File><File path="ConfigOptions.cpp"></File><File path="ConfigOptions.hpp"></File><File path="CSSFileDialog.hpp"></File><File path="DdxEx.hpp"></File><File path="DebugDialog.hpp"></File><File path="DropFileTarget.h"></File><File path="halConfig.cpp"></File><File path="halConfig.hpp"></File><File path="halEvent.cpp"></File><File path="halEvent.hpp"></File><File path="Halite.cpp"></File><File path="Halite.hpp"></File><File path="HaliteDialog.cpp"></File><File path="HaliteDialog.hpp"></File><File path="HaliteDialogBase.hpp"></File><File path="HaliteEditCtrl.hpp"></File><File path="HaliteIni.hpp"></File><File path="HaliteListManager.hpp"></File><File path="HaliteListView.cpp"></File><File path="HaliteListView.hpp"></File><File path="HaliteListViewCtrl.hpp"></File><File path="HaliteTabCtrl.hpp"></File><File path="HaliteTabPage.hpp"></File><File path="HaliteWindow.cpp"></File><File path="HaliteWindow.hpp"></File><File path="halTorrent.cpp"></File><File path="halTorrent.hpp"></File><File path="halXmlRpc.cpp"></File><File path="halXmlRpc.hpp"></File><File path="NTray.cpp"></File><File path="NTray.hpp"></File><File path="ProgressDialog.hpp"></File><File path="SimpleHtml.h"></File><File path="SplashDialog.hpp"></File><File path="SSFileDialog.hpp"></File><File path="stdAfx.cpp"></File><File path="stdAfx.hpp"></File><File path="TranslationDll.cpp"></File><File path="UxthemeWrapper.cpp"></File><File path="UxthemeWrapper.hpp"></File><File path="WinAPIMutex.hpp"></File></MagicFolder><MagicFolder excludeFolders="CVS;.svn" filter="*" name="Lang" path="lang\"><File path="1337.txt"></File><File path="Dutch.txt"></File><File path="French.txt"></File><File path="German.txt"></File><File path="NewLang.txt"></File><File path="Polish.txt"></File><File path="Slovenian.txt"></File><File path="Template.txt"></File><File path="Turkish.txt"></File></MagicFolder><File path="Jamfile"></File></Project>======= 
     3<Project name="Halite"><MagicFolder excludeFolders="CVS;.svn" filter="*.*" name="res" path="res\"><File path="1337.rc"></File><File path="Halite.aps"></File><File path="Halite.ico"></File><File path="Halite.rc"></File><File path="Manifest.xml"></File><File path="RcTextExt.rb"></File><File path="resource.h"></File><File path="Template.rc"></File><File path="toolbar.bmp"></File></MagicFolder><MagicFolder excludeFolders="CVS;.svn" filter="*.*" name="src" path="src\"><MagicFolder excludeFolders="CVS;.svn" filter="*.*" name="advtabs" path="advtabs\"><File path="Debug.cpp"></File><File path="Debug.hpp"></File><File path="Peers.cpp"></File><File path="Peers.hpp"></File><File path="ThemeTestDialog.hpp"></File><File path="Torrent.cpp"></File><File path="Torrent.hpp"></File><File path="Tracker.cpp"></File><File path="Tracker.hpp"></File><File path="TrackerAddDialog.hpp"></File><File path="TrackerListView.cpp"></File><File path="TrackerListView.hpp"></File></MagicFolder><MagicFolder excludeFolders="CVS;.svn" filter="*.*" name="global" path="global\"><File path="ini.cpp"></File><File path="ini.hpp"></File><File path="ini_adapter.cpp"></File><File path="ini_adapter.hpp"></File><File path="logger.cpp"></File><File path="logger.hpp"></File><File path="string_conv.cpp"></File><File path="string_conv.hpp"></File><File path="tinyxml.cpp"></File><File path="tinyxml.hpp"></File><File path="tinyxmlerror.cpp"></File><File path="tinyxmlparser.cpp"></File><File path="unicode.hpp"></File><File path="utf8.hpp"></File><File path="wtl_app.cpp"></File><File path="wtl_app.hpp"></File></MagicFolder><File path="AdvHaliteDialog.cpp"></File><File path="AdvHaliteDialog.hpp"></File><File path="ConfigOptions.cpp"></File><File path="ConfigOptions.hpp"></File><File path="CSSFileDialog.hpp"></File><File path="DdxEx.hpp"></File><File path="DebugDialog.hpp"></File><File path="DropFileTarget.h"></File><File path="halConfig.cpp"></File><File path="halConfig.hpp"></File><File path="halEvent.cpp"></File><File path="halEvent.hpp"></File><File path="Halite.cpp"></File><File path="Halite.hpp"></File><File path="HaliteDialog.cpp"></File><File path="HaliteDialog.hpp"></File><File path="HaliteDialogBase.hpp"></File><File path="HaliteEditCtrl.hpp"></File><File path="HaliteIni.hpp"></File><File path="HaliteListManager.hpp"></File><File path="HaliteListView.cpp"></File><File path="HaliteListView.hpp"></File><File path="HaliteListViewCtrl.hpp"></File><File path="HaliteTabCtrl.hpp"></File><File path="HaliteTabPage.hpp"></File><File path="HaliteWindow.cpp"></File><File path="HaliteWindow.hpp"></File><File path="halTorrent.cpp"></File><File path="halTorrent.hpp"></File><File path="halXmlRpc.cpp"></File><File path="halXmlRpc.hpp"></File><File path="NTray.cpp"></File><File path="NTray.hpp"></File><File path="ProgressDialog.hpp"></File><File path="SimpleHtml.h"></File><File path="SplashDialog.hpp"></File><File path="SSFileDialog.hpp"></File><File path="stdAfx.cpp"></File><File path="stdAfx.hpp"></File><File path="UxthemeWrapper.cpp"></File><File path="UxthemeWrapper.hpp"></File><File path="WinAPIMutex.hpp"></File></MagicFolder><MagicFolder excludeFolders="CVS;.svn" filter="*" name="Lang" path="lang\"><File path="1337.txt"></File><File path="Dutch.txt"></File><File path="French.txt"></File><File path="German.txt"></File><File path="NewLang.txt"></File><File path="Polish.txt"></File><File path="Slovenian.txt"></File><File path="Template.txt"></File><File path="Turkish.txt"></File></MagicFolder><File path="Jamfile"></File></Project>>>>>>>> .r208 
  • Halite.pnps

    r203 r209  
    1 <pd><ViewState><e p="Halite" x="true"></e><e p="Halite\Lang" x="true"></e><e p="Halite\res" x="true"></e><e p="Halite\src" x="true"></e><e p="Halite\src\advtabs" x="true"></e><e p="Halite\src\global" x="true"></e></ViewState></pd> 
     1<pd><ViewState><e p="Halite\Lang" x="true"></e><e p="Halite\src\advtabs" x="true"></e><e p="Halite" x="true"></e><e p="Halite\res" x="true"></e><e p="Halite\src" x="true"></e><e p="Halite\src\global" x="true"></e></ViewState></pd> 
  • Jamfile

    r203 r209  
    7777        <threading>multi 
    7878        <asynch-exceptions>on 
     79        <warnings>off 
    7980         
    8081        <variant>release:<define>NDEBUG 
  • res/Halite.rc

    r205 r209  
    241241    AUTOCHECKBOX    "Advanced GUI",IDC_GENERAL_ADVGUI,14,42,118,14 
    242242    AUTOCHECKBOX    "Minimize to tray.",IDC_GENERAL_TRAY,14,29,98,14 
     243    LISTBOX         IDC_LANGLIST,174,24,96,54,LBS_SORT | LBS_NOINTEGRALHEIGHT | WS_VSCROLL | WS_TABSTOP 
     244    CTEXT           "Language (requires restart)",IDC_STATIC,174,12,96,8 
    243245END 
    244246 
     
    465467    BUTTON      ID_HELP 
    466468END 
    467 ======= 
    468 // Generated by ResEdit 1.3.5 
    469 // Copyright (C) 2006 
    470 // http://www.resedit.net 
    471  
    472 #include "../res/resource.h" 
    473 #include "afxres.h" 
    474  
    475  
    476 STRINGTABLE  
    477 BEGIN 
    478     HALITE_LANGUAGE    "English" 
    479 END 
    480          
    481 IDD_ADVOVERVIEW DIALOGEX 0,0,313,121 
    482 STYLE DS_SETFONT | DS_FIXEDSYS | WS_CHILDWINDOW 
    483 FONT 8,"MS Shell Dlg",400,0,1 
    484 BEGIN 
    485     GROUPBOX        "Torrent",IDC_GROUP_TORRENT,4,7,305,85 
    486     GROUPBOX        "Tracker",IDC_GROUP_TRACKER,4,95,305,25 
    487     CONTROL         "",TORRENTPROG,"msctls_progress32",WS_BORDER,10,79,291,8 
    488     LTEXT           "N/A",IDC_ETA,42,63,55,8,SS_WORDELLIPSIS 
    489     LTEXT           "Time left:",IDC_STATIC,10,63,30,8 
    490     LTEXT           "N/A",IDC_STATUS,10,33,175,8,SS_WORDELLIPSIS 
    491     LTEXT           "N/A",IDC_TRACKER,10,106,170,8,SS_WORDELLIPSIS 
    492     LTEXT           "N/A",IDC_NAME,10,18,175,10,SS_WORDELLIPSIS 
    493     EDITTEXT        IDC_EDITTLU,267,46,34,12,ES_AUTOHSCROLL 
    494     EDITTEXT        IDC_EDITTLD,216,46,34,12,ES_AUTOHSCROLL 
    495     EDITTEXT        IDC_EDITNCD,216,22,34,12,ES_AUTOHSCROLL 
    496     EDITTEXT        IDC_EDITNCU,267,22,34,12,ES_AUTOHSCROLL 
    497     LTEXT           "Connection limits:",IDC_NC,192,13,75,8 
    498     LTEXT           "Transfer rates (KB/s):",IDC_TL,192,37,75,8 
    499     RTEXT           "Total",IDC_NCD,192,25,18,8 
    500     RTEXT           "Up",IDC_NCU,251,25,12,8 
    501     RTEXT           "Up",IDC_TLU,252,49,11,8 
    502     RTEXT           "Down",IDC_TLD,192,49,20,8 
    503     LTEXT           "N/A",IDC_UPDATE,228,106,71,8,SS_WORDELLIPSIS 
    504     RTEXT           "Update in:",IDC_UPDATESTAT,185,106,40,8 
    505     EDITTEXT        IDC_EDITRATIO,267,60,34,12,ES_AUTOHSCROLL 
    506     LTEXT           "Downloaded %1%MB, Uploaded %2%MB, Ratio %3%.",IDC_TRANS,10,48,140,8,SS_WORDELLIPSIS 
    507     LTEXT           "Ratio (this session):",IDC_RATIOESTATIC,192,63,70,8,SS_WORDELLIPSIS 
    508     LTEXT           "N/A",IDC_RATIO,125,63,60,8,SS_WORDELLIPSIS 
    509     RTEXT           "Ratio:",IDC_RATIOSTAT,98,63,25,8 
    510 END 
    511  
    512 IDD_CONFIGBIT DIALOGEX 0,0,283,152 
    513 STYLE DS_MODALFRAME | DS_SETFONT | DS_FIXEDSYS | WS_BORDER | WS_CAPTION | WS_DLGFRAME | WS_POPUP | WS_SYSMENU 
    514 CAPTION "BitTorrent" 
    515 FONT 8,"MS Shell Dlg",400,0,1 
    516 BEGIN 
    517     GROUPBOX        "Global Options",IDC_STATIC,6,6,271,77 
    518     RTEXT           "Open a (single) port between : ",IDC_STATIC,22,66,115,12 
    519     EDITTEXT        IDC_BC_PORTFROM,138,64,54,12,ES_AUTOHSCROLL 
    520     EDITTEXT        IDC_BC_PORTTO,217,64,54,12,ES_AUTOHSCROLL 
    521     AUTOCHECKBOX    "Enable DHT. (Note neither DHT nor PEX will apply to private torrents)",IDC_BC_DHT,12,98,252,12 
    522     AUTOCHECKBOX    "Enable IP filtering.",IDC_BC_FILTERCHECK,12,128,76,12 
    523     PUSHBUTTON      "Import ipfilter.dat",IDC_BC_FILTERLOAD,196,127,75,14,WS_DISABLED 
    524     PUSHBUTTON      "Clear IP database",IDC_BC_FILTERCLEAR,115,127,75,14,WS_DISABLED 
    525     EDITTEXT        IDC_BC_PROXYIP,124,17,77,12,ES_AUTOHSCROLL 
    526     RTEXT           "Proxy Host/IP : ",IDC_BC_PROXYIP_S,68,19,55,12 
    527     AUTOCHECKBOX    "Use a proxy.",IDC_BC_PROXYCHECK,12,19,59,8 
    528     RTEXT           "Port : ",IDC_BC_PROXYPORT_S,204,19,24,12 
    529     EDITTEXT        IDC_BC_PROXYPORT,229,17,42,12,ES_AUTOHSCROLL | ES_NUMBER 
    530     EDITTEXT        IDC_BC_PROXYUSER,54,33,89,12,ES_AUTOHSCROLL 
    531     RTEXT           "Username : ",IDC_BC_PROXYUSER_S,8,35,44,12 
    532     RTEXT           "Password : ",IDC_BC_PROXYPASS_S,146,35,39,12 
    533     EDITTEXT        IDC_BC_PROXYPASS,188,33,83,12,ES_AUTOHSCROLL | ES_PASSWORD 
    534     AUTOCHECKBOX    "to",IDC_BC_PORTCHECK,195,64,20,12 
    535     LTEXT           "Select a (TCP) port (or range of ports) to listen for incomming connections.",IDC_STATIC,13,52,252,11 
    536     GROUPBOX        "Global Options",IDC_STATIC,6,86,271,59 
    537     EDITTEXT        IDC_BC_DHTPORT,67,112,77,12,ES_AUTOHSCROLL 
    538     RTEXT           "Port (UDP) : ",IDC_BC_DHTPORT_S,30,114,35,12 
    539 END 
    540  
    541 IDD_CONFIGREMOTE DIALOGEX 0,0,283,94 
    542 STYLE DS_MODALFRAME | DS_SETFONT | DS_FIXEDSYS | WS_BORDER | WS_CAPTION | WS_DLGFRAME | WS_POPUP | WS_SYSMENU 
    543 CAPTION "Remote Control" 
    544 FONT 8,"MS Shell Dlg",400,0,1 
    545 BEGIN 
    546     GROUPBOX        "Remote Control Options",IDC_STATIC,6,6,271,30 
    547     AUTOCHECKBOX    "Enable Remote Control",IDC_REMOTECTRL,12,18,96,12,WS_DISABLED 
    548     RTEXT           "Port to listen on : ",IDC_STATIC,159,19,66,11,WS_DISABLED 
    549     EDITTEXT        IDC_REMOTEPORT,229,18,42,12,WS_DISABLED | ES_AUTOHSCROLL 
    550     LTEXT           "*** Disabled ***",IDC_STATIC,104,19,59,11 
    551 END 
    552  
    553 IDD_THEMETEST DIALOGEX 0,0,186,94 
    554 STYLE DS_CONTROL | DS_SETFONT | DS_FIXEDSYS | WS_VISIBLE | WS_CHILDWINDOW | WS_CLIPCHILDREN | WS_CLIPSIBLINGS | WS_SYSMENU 
    555 EXSTYLE WS_EX_TRANSPARENT | WS_EX_CONTROLPARENT 
    556 FONT 8,"MS Shell Dlg",400,0,1 
    557 BEGIN 
    558     AUTOCHECKBOX    "Check1",IDC_CHECK1,7,7,44,10 
    559     PUSHBUTTON      "Button1",IDC_BUTTON1,69,7,51,14 
    560     EDITTEXT        IDC_EDIT1,134,7,45,15,ES_AUTOHSCROLL 
    561     AUTORADIOBUTTON "Radio1",IDC_RADIO1,129,38,50,11,NOT WS_TABSTOP 
    562     EDITTEXT        IDC_EDIT2,14,62,45,15,WS_DISABLED | ES_AUTOHSCROLL 
    563     LTEXT           "Static",IDC_STATIC,85,59,68,10 
    564     LTEXT           "Static",IDC_STATIC,25,35,19,8 
    565     GROUPBOX        "Static",IDC_STATIC,10,25,98,25 
    566     LTEXT           "Static",IDC_STATIC,65,35,19,8 
    567 END 
    568  
    569 IDD_DEBUGDIALOG DIALOGEX 0,0,252,105 
    570 STYLE DS_SETFONT | WS_BORDER | WS_CAPTION | WS_DLGFRAME | WS_POPUP | WS_SIZEBOX | WS_SYSMENU 
    571 EXSTYLE WS_EX_WINDOWEDGE | WS_EX_TOOLWINDOW | WS_EX_TOPMOST 
    572 CAPTION "Halite Debug Dialog" 
    573 FONT 8,"MS Sans Serif",0,0,0 
    574 BEGIN 
    575     EDITTEXT        ED_CON,3,3,246,99,WS_VSCROLL | ES_AUTOHSCROLL | ES_MULTILINE | ES_READONLY 
    576 END 
    577  
    578 IDD_PROGRESS DIALOGEX 0,0,191,46 
    579 STYLE DS_MODALFRAME | DS_SETFONT | DS_FIXEDSYS | WS_BORDER | WS_CAPTION | WS_DLGFRAME | WS_POPUP 
    580 EXSTYLE WS_EX_TOOLWINDOW | WS_EX_STATICEDGE 
    581 CAPTION "Halite importing IP ranges..." 
    582 FONT 8,"MS Shell Dlg",400,0,1 
    583 BEGIN 
    584     CONTROL         "",IDC_PROG_PROGRESS,"msctls_progress32",WS_BORDER,6,6,180,12 
    585     PUSHBUTTON      "Cancel",IDC_PROG_CANCEL,60,24,66,15 
    586 END 
    587  
    588 IDD_CONFIGTORRENT DIALOGEX 0,0,283,165 
    589 STYLE DS_MODALFRAME | DS_SETFONT | DS_FIXEDSYS | WS_BORDER | WS_CAPTION | WS_DLGFRAME | WS_POPUP | WS_SYSMENU 
    590 CAPTION "Torrents" 
    591 FONT 8,"MS Shell Dlg",400,0,1 
    592 BEGIN 
    593     GROUPBOX        "Global Limits",IDC_STATIC,6,6,271,55 
    594     EDITTEXT        IDC_BC_MAXCONN,95,29,42,12,ES_AUTOHSCROLL 
    595     RTEXT           "Total max connections :",IDC_STATIC,11,31,78,11 
    596     RTEXT           "Total upload slots :",IDC_STATIC,11,44,78,10 
    597     EDITTEXT        IDC_BC_MAXUP,95,42,42,12,ES_AUTOHSCROLL 
    598     EDITTEXT        IDC_BC_DOWNRATE,229,29,42,12,ES_AUTOHSCROLL 
    599     RTEXT           "Download Rate (KB/s) :",IDC_STATIC,145,31,78,11 
    600     RTEXT           "Upload Rate (KB/s) :",IDC_STATIC,151,44,72,10 
    601     EDITTEXT        IDC_BC_UPRATE,229,42,42,12,ES_AUTOHSCROLL 
    602     EDITTEXT        IDC_BC_TMAXCONN,95,88,42,12,ES_AUTOHSCROLL 
    603     RTEXT           "Total max connections :",IDC_STATIC,11,91,78,12 
    604     RTEXT           "Total upload slots :",IDC_STATIC,11,104,78,12 
    605     EDITTEXT        IDC_BC_TMAXUP,95,101,42,12,ES_AUTOHSCROLL 
    606     EDITTEXT        IDC_BC_TDOWNRATE,229,88,42,12,ES_AUTOHSCROLL 
    607     RTEXT           "Download Rate (KB/s) :",IDC_STATIC,145,91,78,12 
    608     RTEXT           "Upload Rate (KB/s) :",IDC_STATIC,151,104,72,12 
    609     EDITTEXT        IDC_BC_TUPRATE,229,101,42,12,ES_AUTOHSCROLL 
    610     GROUPBOX        "Torrent Defaults",IDC_STATIC,6,66,271,82 
    611     LTEXT           "These options set global maximums which will always be honoured.",IDC_STATIC,13,16,257,11 
    612     LTEXT           "These options specify the default limits applied to new torrents.",IDC_STATIC,13,76,257,11 
    613     RTEXT           "Default save folder : ",IDC_STATIC,13,120,77,11 
    614     EDITTEXT        IDC_BC_SAVEFOLDER,95,119,152,12,ES_AUTOHSCROLL 
    615     PUSHBUTTON      "...",IDC_BC_SAVEBROWSE,251,118,18,13 
    616     AUTOCHECKBOX    "Prompt for alternate save folder.",IDC_BC_PROMPTSAVE,95,133,135,11 
    617 END 
    618  
    619 IDD_CLOSESPLASH DIALOGEX 0,0,191,54 
    620 STYLE DS_MODALFRAME | DS_SETFONT | DS_FIXEDSYS | WS_BORDER | WS_CAPTION | WS_DLGFRAME | WS_POPUP 
    621 EXSTYLE WS_EX_WINDOWEDGE | WS_EX_TOOLWINDOW | WS_EX_TOPMOST | WS_EX_STATICEDGE 
    622 CAPTION "Halite shutting down..." 
    623 FONT 8,"MS Shell Dlg",400,0,1 
    624 BEGIN 
    625     ICON            IDR_APP_ICON,IDC_STATIC,7,10,21,20,SS_ICON 
    626     LTEXT           "It will take the BitTorrent session a moment to shutdown cleanly after which this message will disappear and the program will close.",IDC_STATIC,35,7,149,27 
    627     AUTOCHECKBOX    "Show this message in future",IDC_SPLASH_MSG,83,35,101,12 
    628 END 
    629  
    630 IDD_NEWTORRENT DIALOGEX 0,0,229,132 
    631 STYLE DS_MODALFRAME | DS_SETFONT | DS_FIXEDSYS | WS_BORDER | WS_CAPTION | WS_DLGFRAME | WS_POPUP | WS_SYSMENU 
    632 CAPTION "Create new torrent" 
    633 FONT 8,"MS Shell Dlg",400,0,1 
    634 BEGIN 
    635     PUSHBUTTON      "Save",IDOK,130,114,45,14,BS_DEFPUSHBUTTON 
    636     PUSHBUTTON      "Cancel",IDCANCEL,180,114,45,14 
    637     LTEXT           "Select a file or directory to construct the torrent.",IDC_STATIC,4,4,221,11 
    638     EDITTEXT        IDC_NEWT_FILE,4,15,203,12,ES_AUTOHSCROLL 
    639     PUSHBUTTON      "...",IDC_NEWT_BROWSE,212,14,13,13 
    640     LISTBOX         IDC_NEWT_LISTTRACKERS,4,57,221,52,WS_TABSTOP | WS_VSCROLL | LBS_NOINTEGRALHEIGHT | LBS_SORT 
    641     LTEXT           "Enter the tracker URLs for the torrent.",IDC_STATIC,4,32,221,11 
    642     EDITTEXT        IDC_NEWT_TRACKER,4,42,193,12,ES_AUTOHSCROLL 
    643     AUTOCHECKBOX    "Have Halite acts a DHT node.",IDC_NEWT_DHTNODE,4,116,118,8,WS_DISABLED 
    644     PUSHBUTTON      "Add",IDC_NEWT_ADDTRACKER,202,41,23,13 
    645 END 
    646  
    647 IDD_HALITEDLG DIALOGEX 0,0,362,73 
    648 STYLE DS_SETFONT | DS_FIXEDSYS | WS_CHILDWINDOW | WS_CLIPCHILDREN 
    649 FONT 8,"MS Shell Dlg",400,0,1 
    650 BEGIN 
    651     PUSHBUTTON      "Pause",BTNPAUSE,306,3,51,14,BS_DEFPUSHBUTTON 
    652     PUSHBUTTON      "Reannounce",BTNREANNOUNCE,306,19,51,14 
    653     PUSHBUTTON      "Remove",BTNREMOVE,306,35,51,14 
    654     CONTROL         "",LISTPEERS,"SysListView32",WS_TABSTOP | WS_BORDER | LVS_ALIGNLEFT | LVS_REPORT,4,64,353,6 
    655     EDITTEXT        IDC_EDITTLU,267,36,34,12,ES_AUTOHSCROLL 
    656     EDITTEXT        IDC_EDITTLD,216,36,34,12,ES_AUTOHSCROLL 
    657     EDITTEXT        IDC_EDITNCD,216,12,34,12,ES_AUTOHSCROLL 
    658     EDITTEXT        IDC_EDITNCU,267,12,34,12,ES_AUTOHSCROLL 
    659     CONTROL         "",TORRENTPROG,"msctls_progress32",WS_BORDER,4,52,353,8 
    660     RTEXT           "Name:",IDC_STATIC,8,3,30,8 
    661     LTEXT           "N/A",IDC_AVAIL,40,39,36,8,SS_WORDELLIPSIS 
    662     RTEXT           "Status:",IDC_STATIC,8,27,30,8 
    663     RTEXT           "Time left:",IDC_STATIC,2,39,36,8 
    664     RTEXT           "Tracker:",IDC_STATIC,8,15,30,8 
    665     LTEXT           "N/A",IDC_STATUS,40,27,145,8,SS_WORDELLIPSIS 
    666     LTEXT           "N/A",IDC_TRACKER,40,15,144,8,SS_WORDELLIPSIS 
    667     LTEXT           "N/A",IDC_NAME,40,3,144,10,SS_WORDELLIPSIS 
    668     LTEXT           "Torrent connection limits:",IDC_NC,192,3,82,8 
    669     LTEXT           "Torrent transfer rates (KB/s):",IDC_TL,192,27,97,8 
    670     RTEXT           "Total",IDC_NCD,192,15,18,8 
    671     RTEXT           "Up",IDC_NCU,251,15,12,8 
    672     RTEXT           "Up",IDC_TLU,252,39,11,8 
    673     RTEXT           "Down",IDC_TLD,192,39,20,8 
    674     RTEXT           "Completed:",IDC_STATIC,84,39,39,8 
    675     LTEXT           "N/A",IDC_COMPLETE,125,39,59,8,SS_WORDELLIPSIS 
    676     GROUPBOX        "",IDC_DETAILS_GROUP,1,-5,359,77,0,WS_EX_TRANSPARENT 
    677 END 
    678  
    679 IDD_ABOUT DIALOGEX 0,0,283,125 
    680 STYLE DS_MODALFRAME | DS_SETFONT | DS_FIXEDSYS | WS_BORDER | WS_CAPTION | WS_DLGFRAME | WS_POPUP | WS_SYSMENU 
    681 CAPTION "About" 
    682 FONT 8,"MS Shell Dlg",400,0,1 
    683 BEGIN 
    684     GROUPBOX        "Program Information",IDC_STATIC,5,7,271,111 
    685     LTEXT           "Halite is a BitTorrent client based on the libtorrent library from Rasterbar.com. The program is written in C++ relying on the Boost libraries and WTL. It is open sourced under a MIT and/or Boost software licence.",IDC_STATIC,12,18,256,27 
    686     LTEXT           "This project has only been possible thanks to the excellent work others. I'd like to acknowledge some of those people.",IDC_STATIC,12,47,257,18 
    687     RTEXT           HALITE_VERSION_STRING,IDC_STATIC,145,106,129,9 
    688     LTEXT           "nudone (Nick Pearson) - wtfcody.com / nudsville.com - Designed the Icon.",IDC_STATIC,12,91,257,11 
    689     LTEXT           "Arvid Norberg - www.rasterbar.com - Author of the libtorrent library.",IDC_STATIC,12,68,257,11 
    690     LTEXT           "Christopher Kohlhoff - asio.sourceforge.net - Author of Boost.ASIO.",IDC_STATIC,12,80,257,11 
    691 END 
    692  
    693 IDD_ADVHALITEDLG DIALOGEX 0,0,317,72 
    694 STYLE DS_SETFONT | DS_FIXEDSYS | WS_CHILDWINDOW 
    695 FONT 8,"MS Shell Dlg",400,0,1 
    696 BEGIN 
    697     CONTROL         "",IDC_TAB,"SysTabControl32",0,1,0,315,71 
    698     RTEXT           "Static",IDC_ADVDLG_VERSION,235,2,78,10 
    699 END 
    700  
    701 IDD_CONFIGGENERAL DIALOGEX 0,0,283,90 
    702 STYLE DS_MODALFRAME | DS_SETFONT | DS_FIXEDSYS | WS_BORDER | WS_CAPTION | WS_DLGFRAME | WS_POPUP | WS_SYSMENU 
    703 CAPTION "General" 
    704 FONT 8,"MS Shell Dlg",400,0,1 
    705 BEGIN 
    706     AUTOCHECKBOX    "Allow only one instance to run.",IDC_GENERAL_ONEINST,14,16,114,14 
    707     GROUPBOX        "General Settings",IDC_STATIC,7,6,271,77 
    708     AUTOCHECKBOX    "Advanced GUI",IDC_GENERAL_ADVGUI,14,42,118,14 
    709     AUTOCHECKBOX    "Minimize to tray.",IDC_GENERAL_TRAY,14,29,98,14 
    710 END 
    711  
    712 IDD_ADVTRACKER DIALOGEX 0,0,305,69 
    713 STYLE DS_SETFONT | DS_FIXEDSYS | WS_CHILDWINDOW 
    714 FONT 8,"MS Shell Dlg",400,0,1 
    715 BEGIN 
    716     LTEXT           "List of Trackers.",-1,7,6,95,8 
    717     EDITTEXT        IDC_TRACKER_USER,208,18,92,12,ES_AUTOHSCROLL 
    718     EDITTEXT        IDC_TRACKER_PASS,208,32,92,12,ES_AUTOHSCROLL | ES_PASSWORD 
    719     RTEXT           "Username : ",IDC_TRACKER_USER_S,164,20,42,8 
    720     RTEXT           "Password : ",IDC_TRACKER_PASS_S,164,34,42,8 
    721     AUTOCHECKBOX    "Send login info to trackers.",IDC_TRACKER_LOGINCHECK,166,4,101,12 
    722     CONTROL         "",IDC_TRACKERLIST,"SysListView32",WS_TABSTOP | WS_BORDER | LVS_ALIGNLEFT | LVS_REPORT,4,19,154,47 
    723     PUSHBUTTON      "Reannounce",BTNREANNOUNCE,207,46,51,14 
    724     PUSHBUTTON      "Apply",IDC_TRACKER_APPLY,126,3,32,14,WS_DISABLED 
    725     PUSHBUTTON      "Reset",IDC_TRACKER_RESET,92,3,32,14 
    726 END 
    727  
    728 IDD_ADVDEBUGLOG DIALOGEX 0,0,305,81 
    729 STYLE DS_SETFONT | DS_FIXEDSYS | WS_CHILDWINDOW 
    730 FONT 8,"MS Shell Dlg",400,0,1 
    731 BEGIN 
    732     AUTOCHECKBOX    "Log to file.",IDC_DEBUGFILECHECK,4,69,54,9 
    733     CONTROL         "",IDC_DEBUGLISTVIEW,"SysListView32",WS_TABSTOP | WS_BORDER | LVS_ALIGNLEFT | LVS_REPORT,4,7,296,59 
    734     AUTOCHECKBOX    "Log debug events.",IDC_DEBUGDEBUGCHECK,58,69,78,9 
    735 END 
    736  
    737 IDD_TRACKEDIT DIALOGEX 0,0,186,50 
    738 STYLE DS_3DLOOK | DS_CENTER | DS_MODALFRAME | DS_SETFONT | DS_FIXEDSYS | WS_VISIBLE | WS_BORDER | WS_CAPTION | WS_DLGFRAME | WS_POPUP | WS_SYSMENU 
    739 EXSTYLE WS_EX_TOOLWINDOW 
    740 CAPTION "Add New Tracker" 
    741 FONT 8,"MS Shell Dlg 2",400,0,1 
    742 BEGIN 
    743     PUSHBUTTON      "OK",IDOK,41,31,50,14,BS_DEFPUSHBUTTON 
    744     PUSHBUTTON      "Cancel",IDCANCEL,95,31,50,14 
    745     LTEXT           "Tracker URL",IDC_STATIC,5,5,47,10 
    746     EDITTEXT        IDC_TRACKER_EDIT_URL,4,15,145,12,ES_AUTOHSCROLL 
    747     EDITTEXT        IDC_TRACKER_EDIT_TIER,153,15,30,12,ES_AUTOHSCROLL 
    748     LTEXT           "Tier",IDC_STATIC,155,5,15,10 
    749 END 
    750  
    751 IDD_ADVPEER DIALOGEX 0, 0, 305, 69 
    752 STYLE DS_SETFONT | DS_FIXEDSYS | WS_CHILD 
    753 FONT 8, "MS Shell Dlg", 400, 0, 0x1 
    754 BEGIN 
    755     CONTROL         "",IDC_PEERLIST,"SysListView32",LVS_REPORT | LVS_ALIGNLEFT | WS_BORDER | WS_TABSTOP,4,7,297,59 
    756 END 
    757  
    758 IDR_TRAY_MENU MENU 
    759 BEGIN 
    760     POPUP "_POPUP_" 
    761     BEGIN 
    762         MENUITEM "Open &Halite",ID_TRAY_OPENHALITE 
    763         MENUITEM SEPARATOR 
    764         MENUITEM "&Pause All",ID_TRAY_PAUSEALL 
    765         MENUITEM "&Resume All",ID_TRAY_RESUMEALL 
    766         MENUITEM SEPARATOR 
    767         MENUITEM "E&xit",ID_TRAY_EXIT 
    768     END 
    769 END 
    770  
    771 IDR_LISTVIEW_MENU MENU 
    772 BEGIN 
    773     POPUP "_POPUP_" 
    774     BEGIN 
    775         MENUITEM "Resume",ID_LVM_RESUME 
    776         MENUITEM "Pause",ID__LVM_PAUSE 
    777         MENUITEM "Stop",ID_LVM_STOP 
    778         MENUITEM SEPARATOR 
    779         MENUITEM "Reannounce",ID_LVM_REANNOUNCE 
    780         POPUP "Remove" 
    781         BEGIN 
    782             MENUITEM "Torrent File",ID_LVM_REMOVE_T 
    783             MENUITEM "Torrent and Data",ID_LVM_REMOVE_TD 
    784         END 
    785     END 
    786 END 
    787  
    788 IDR_TRACKERLV_MENU MENU 
    789 BEGIN 
    790     POPUP "_POPUP_" 
    791     BEGIN 
    792         MENUITEM "New",ID_TLVM_NEW 
    793         MENUITEM "Edit",ID_TLVM_EDIT 
    794         MENUITEM "Delete",ID_TLVM_DELETE 
    795     END 
    796 END 
    797  
    798 IDR_APP_ICON        ICON          "Halite.ico" 
    799  
    800 IDR_MAINFRAME       BITMAP        "toolbar.bmp" 
    801  
    802 //1                   RT_MANIFEST   "Manifest.xml" 
    803  
    804 1 VERSIONINFO 
    805     FILEVERSION     HALITE_VERSION 
    806     PRODUCTVERSION  HALITE_VERSION 
    807     FILEOS          VOS_UNKNOWN 
    808     FILETYPE        VFT_UNKNOWN 
    809 BEGIN 
    810     BLOCK "StringFileInfo" 
    811     BEGIN 
    812         BLOCK "180904b0" 
    813         BEGIN 
    814             VALUE "Comments", "libTorrrent based client." 
    815             VALUE "CompanyName", "BinaryNotions.com" 
    816             VALUE "FileDescription", "Halite BitTorrent Client" 
    817             VALUE "FileVersion", HALITE_VERSION_STRING 
    818             VALUE "InternalName", "Halite" 
    819             VALUE "LegalCopyright", "(C) Eoin O'Callaghan 2007" 
    820             VALUE "OriginalFilename", "Halite.exe" 
    821             VALUE "ProductName", "Halite" 
    822             VALUE "ProductVersion", HALITE_VERSION_STRING 
    823         END 
    824     END 
    825     BLOCK "VarFileInfo" 
    826     BEGIN 
    827         VALUE "Translation", 6153, 1200 
    828     END 
    829 END 
    830  
    831  
    832 IDR_MAINFRAME ACCELERATORS 
    833 BEGIN 
    834     "N",            ID_FILE_NEW, VIRTKEY, CONTROL 
    835     "O",            ID_FILE_OPEN, VIRTKEY, CONTROL 
    836     "S",            ID_FILE_SAVE, VIRTKEY, CONTROL 
    837     "P",            ID_FILE_PRINT, VIRTKEY, CONTROL 
    838     "Z",            ID_EDIT_UNDO, VIRTKEY, CONTROL 
    839     "X",            ID_EDIT_CUT, VIRTKEY, CONTROL 
    840     "C",            ID_EDIT_COPY, VIRTKEY, CONTROL 
    841     "V",            ID_EDIT_PASTE, VIRTKEY, CONTROL 
    842     VK_BACK,        ID_EDIT_UNDO, VIRTKEY, ALT 
    843     VK_DELETE,      ID_EDIT_CUT, VIRTKEY, SHIFT 
    844     VK_INSERT,      ID_EDIT_COPY, VIRTKEY, CONTROL 
    845     VK_INSERT,      ID_EDIT_PASTE, VIRTKEY, SHIFT 
    846     VK_F6,          ID_NEXT_PANE, VIRTKEY 
    847     VK_F6,          ID_PREV_PANE, VIRTKEY, SHIFT 
    848 END 
    849  
    850  
    851 STRINGTABLE 
    852 BEGIN 
    853     IDPANE_STATUS                 "(D-U) 0000.000KB/s - 0000.000KB/s" 
    854     IDPANE_CAPS_INDICATOR         "CAPS" 
    855     IDPANE_DHT                    "0000 DHT node(s)" 
    856     IDPANE_FILTER                 "Filtering 0000000 ranges." 
    857     IDS_TRYANOTHERPORT            "The BitTorrent session could not start. Try selecting another port in the settings." 
    858     IDS_DHTTRYANOTHERPORT         "DHT session could not start. Try selecting another port in the settings." 
    859     IDS_SAVEPROMPT                "Select a directory to save the files to or cancel to not download torrent at all." 
    860     HAL_EVENTNONE                 "None" 
    861     HAL_EVENTDEBUG                "Debug" 
    862     HAL_EVENTINFO                 "Info" 
    863     HAL_EVENTCRITICAL             "Critical" 
    864     HAL_PEERALERT                 "Libtorrent Peer Alert: %1%." 
    865     HAL_EVENT_XMLEXP              "Xml Exception (%1%) with %2%." 
    866     IDS_NA                        "N/A" 
    867     HAL_EVENT_TORRENTEXP          "Torrent (%1%) exception caught; %2% from %3%." 
    868     HAL_EVENT_INVTORRENT          "Invalid torrent (%1%) from %2%." 
    869     HAL_DOWNLOAD_SUMMARY          "Downloaded %1$.2fMB, Uploaded %2$.2fMB, Ratio %3$.2f." 
    870     HAL_DHT_ON                    "%1% DHT node(s)" 
    871     HAL_DHT_OFF                   "DHT disabled" 
    872     HAL_IPFILTER_ON               "Filtering %1% range(s)" 
    873     HAL_IPFILTER_OFF              "IP filter disabled" 
    874     HAL_EVENT_STDEXP              "Standard exception (%1%) thrown from %2%." 
    875     HAL_DOWN_RATES                "(D-U) %1$.2fKB/s - %2$.2fKB/s" 
    876     HAL_NOT_LISTENING             "Halite not listening!" 
    877     HAL_PORT_OPEN                 "Port %1% open" 
    878     HAL_VERSION_STRING            HALITE_VERSION_STRING 
    879         HAL_LISTVIEW_COLUMNS              "Name;Status;Completed;Download;Upload;Peers;Seeds;ETA;Copies" 
    880         HAL_DEBUG_LISTVIEW_COLUMNS        "Time;Message;Severity" 
    881         HAL_TRACKER_LISTVIEW_COLUMNS  "Tracker;Tier" 
    882         HAL_DIALOGPEER_LISTVIEW_COS       "Peer;Download;Upload;Type;Client" 
    883         HAL_DIALOGPEER_LISTVIEW_ADV       "Peer;Download;Upload;Type;Client;Status" 
    884         HAL_EVENT_EXP                 "Exception caught; %1%, from %2%." 
    885         HAL_EVENT_XML_EXP             "XML exception: %1%." 
    886         HAL_EVENT_UNICODE_EXP         "Unicode exception: %1%." 
    887         HAL_EVENT_UNCLASSIFIED            "Bittorrent Event: %1%." 
    888         HAL_EVENT_PEER                            "Peer Event: %1%." 
    889         HAL_EVENT_TRACKER                         "Tracker Event: %1%." 
    890         HAL_EVENT_DEBUG                           "Debug Event: %1%." 
    891 END 
    892  
    893 STRINGTABLE  
    894 BEGIN 
    895     HAL_PEER_INTERESTING    "Interesting" 
    896     HAL_PEER_CHOKED         "Choked" 
    897     HAL_PEER_REMOTE_INTERESTING "Interested in us" 
    898     HAL_PEER_REMOTE_CHOKED  "Has choked us" 
    899     HAL_PEER_SUPPORT_EXTENSIONS "Supports extensions" 
    900     HAL_PEER_LOCAL_CONNECTION "Local connection" 
    901     HAL_PEER_HANDSHAKE      "Handshake" 
    902     HAL_PEER_CONNECTING     "Connecting" 
    903     HAL_PEER_QUEUED         "Queued" 
    904 END 
    905  
    906 STRINGTABLE  
    907 BEGIN 
    908     HAL_TORRENT_QUEUED_CHECKING "Queued for Checking" 
    909     HAL_TORRENT_CHECKING_FILES "Checking Files" 
    910     HAL_TORRENT_CONNECTING  "Connecting to Tracker" 
    911     HAL_TORRENT_DOWNLOADING "Downloading" 
    912     HAL_TORRENT_FINISHED    "Finished" 
    913     HAL_TORRENT_SEEDING     "Seeding" 
    914     HAL_TORRENT_ALLOCATING  "Allocating" 
    915     HAL_TORRENT_QUEUED      "Queued" 
    916         HAL_TORRENT_STOPPED             "Stopped" 
    917         HAL_TORRENT_PAUSED              "Paused" 
    918         HAL_TORRENT_METADATA    "Downloading Metadata" 
    919 END 
    920  
    921 IDR_MAINFRAME TOOLBAR 22,22 
    922 BEGIN 
    923     BUTTON      ID_FILE_NEW 
    924     BUTTON      ID_FILE_OPEN 
    925     SEPARATOR 
    926     BUTTON      ID_SETTINGS 
    927     BUTTON      ID_ADVANCED 
    928     SEPARATOR 
    929     BUTTON      ID_RESUME 
    930     BUTTON      ID_PAUSE 
    931     SEPARATOR 
    932     BUTTON      ID_HELP 
    933 END 
    934  
  • res/resource.h

    r185 r209  
    128128#define IDC_NC                          1083 
    129129#define IDC_ADVDLG_VERSION              1084 
     130#define IDC_LANGLIST                                    1085 
    130131#define ED_CON                          3000 
    131132#define IDPANE_STATUS                   40000 
  • src/ConfigOptions.cpp

    r145 r209  
    11 
     2#include "stdAfx.hpp" 
     3#include <boost/xpressive/xpressive.hpp> 
     4namespace xp = boost::xpressive; 
     5namespace fs = boost::filesystem; 
     6 
    27#include "ConfigOptions.hpp" 
    38#include "ProgressDialog.hpp" 
     
    1520}        
    1621 
     22BOOL GeneralOptions::OnInitDialog(HWND hwndFocus, LPARAM lParam) 
     23{ 
     24        lang_list_.Attach(GetDlgItem(IDC_LANGLIST)); 
     25        lang_list_.AddString(L"English"); 
     26         
     27        if (fs::is_directory(hal::app().exe_path().branch_path())) 
     28        { 
     29                fs::wdirectory_iterator end_iter; 
     30                 
     31                for (fs::wdirectory_iterator dir_itr(hal::app().exe_path().branch_path()); 
     32                                dir_itr != end_iter; ++dir_itr ) 
     33                { 
     34                        if (fs::is_regular(dir_itr->status())) 
     35                        { 
     36                                xp::wsregex rex = xp::wsregex::compile(L"[\\s\\w]+\\.[dD][lL]{2}"); 
     37                                xp::wsmatch what; 
     38 
     39                                if(xp::regex_match(dir_itr->path().leaf(), what, rex)) 
     40                                { 
     41                                        HMODULE hMod = ::LoadLibraryEx(dir_itr->path().string().c_str(), 0, LOAD_LIBRARY_AS_DATAFILE); 
     42 
     43                                        const int buffer_size = 512; 
     44                                        boost::array<wchar_t, buffer_size> buffer; 
     45                                        ::LoadString(hMod, HALITE_LANGUAGE, buffer.elems, buffer_size); 
     46                                         
     47                                        wstring lang_name(buffer.elems); 
     48                                        lang_map_[lang_name] = dir_itr->path();  
     49                                        int index = lang_list_.AddString(lang_name.c_str()); 
     50                                        lang_list_.SetCurSel(index); 
     51                                         
     52                                        ::FreeLibrary(hMod); 
     53                                } 
     54                        } 
     55                } 
     56        } 
     57        return DoDataExchange(false); 
     58} 
  • src/ConfigOptions.hpp

    r148 r209  
    3535    END_DDX_MAP() 
    3636 
    37     BOOL OnInitDialog(HWND hwndFocus, LPARAM lParam) 
    38         { 
    39                 return DoDataExchange(false); 
    40         } 
     37    BOOL OnInitDialog(HWND hwndFocus, LPARAM lParam); 
    4138 
    4239    int OnApply() 
     
    4643 
    4744private: 
     45        CListBox lang_list_; 
     46        std::map<wstring, wpath> lang_map_; 
    4847        HaliteWindow* haliteWindow_; 
    4948}; 
  • src/Halite.cpp

    r152 r209  
    124124                _Module.AddMessageLoop(&theLoop); 
    125125                {        
     126                        if (halite().dll() != L"") hal::app().set_res_dll(halite().dll()); 
     127                         
    126128                        HaliteWindow wndMain(WMU_ARE_YOU_ME); 
    127129                        if (wndMain.CreateEx() == NULL) 
  • src/Halite.hpp

    r141 r209  
    2121                logDebug_(false), 
    2222                showMessage(true), 
    23                 logToFile_(true) 
     23                logToFile_(true), 
     24                dll_(L"") 
    2425        { 
    2526                load(); 
     
    3435        ar & BOOST_SERIALIZATION_NVP(showMessage); 
    3536                ar & BOOST_SERIALIZATION_NVP(logToFile_); 
     37                if (version > 0) 
     38                        ar & BOOST_SERIALIZATION_NVP(dll_); 
    3639        }        
    3740         
    3841        bool logToFile() { return logToFile_; } 
    3942        bool logDebug() { return logDebug_; } 
     43        const wstring& dll() { return dll_; } 
    4044         
    4145        friend class GeneralOptions; 
     
    4549         
    4650private: 
     51        wstring dll_; 
    4752        bool oneInst; 
    4853        bool logDebug_; 
     
    5358Halite& halite(); 
    5459 
    55 BOOST_CLASS_VERSION(Halite, 0) 
     60BOOST_CLASS_VERSION(Halite, 1) 
  • src/HaliteWindow.cpp

    r185 r209  
    209209} 
    210210 
    211 void HaliteWindow::OnTimer(UINT uTimerID, TIMERPROC pTimerProc) 
     211void HaliteWindow::OnTimer(UINT uTimerID) 
    212212{                
    213213        if (uTimerID == ID_UPDATE_TIMER)  
  • src/HaliteWindow.hpp

    r148 r209  
    118118        LRESULT HaliteWindow::OnNotify(int wParam, LPNMHDR lParam); 
    119119        LRESULT OnCreate(LPCREATESTRUCT lpcs); 
    120     void OnTimer(UINT uTimerID, TIMERPROC pTimerProc); 
     120    void OnTimer(UINT uTimerID); 
    121121        void OnClose(); 
    122122        void OnSize(UINT, CSize); 
  • src/global/wtl_app.cpp

    r199 r209  
    5151        }                
    5252        LocalFree(szArglist);    
     53} 
     54 
     55void app_module::set_res_dll(std::wstring dll) 
     56{ 
     57        res_dll_ = dll;  
    5358         
    54         HMODULE hMod = ::LoadLibraryEx(L"Template.dll", 0, LOAD_LIBRARY_AS_DATAFILE); 
     59        HMODULE hMod = ::LoadLibraryEx(dll.c_str(), 0, LOAD_LIBRARY_AS_DATAFILE); 
    5560        _Module.SetResourceInstance(reinterpret_cast<HINSTANCE>(hMod)); 
    5661} 
  • src/global/wtl_app.hpp

    r143 r209  
    2424         
    2525        std::wstring res_wstr(unsigned uID); 
     26        void set_res_dll(std::wstring dll); 
    2627         
    2728        friend app_module& app(); 
     
    3132         
    3233        std::wstring exe_string_; 
     34        std::wstring res_dll_; 
    3335        boost::filesystem::wpath exe_path_; 
    3436        std::vector<std::wstring> command_args_;         
Note: See TracChangeset for help on using the changeset viewer.