|
From: <zou...@us...> - 2008-03-02 20:33:22
|
Revision: 1023
http://dcplusplus.svn.sourceforge.net/dcplusplus/?rev=1023&view=rev
Author: zouzou123gen
Date: 2008-03-02 12:31:51 -0800 (Sun, 02 Mar 2008)
Log Message:
-----------
fancy menus for every text box
Modified Paths:
--------------
dcplusplus/trunk/smartwin/include/smartwin/GCCHeaders.h
dcplusplus/trunk/smartwin/include/smartwin/WidgetCreator.h
dcplusplus/trunk/smartwin/include/smartwin/WidgetFactoryPlatformSmartWinDesktop.h
dcplusplus/trunk/smartwin/include/smartwin/widgets/WidgetComboBox.h
dcplusplus/trunk/smartwin/include/smartwin/widgets/WidgetMenu.h
dcplusplus/trunk/smartwin/source/widgets/WidgetComboBox.cpp
dcplusplus/trunk/smartwin/source/widgets/WidgetMenu.cpp
dcplusplus/trunk/win32/AboutDlg.cpp
dcplusplus/trunk/win32/AboutDlg.h
dcplusplus/trunk/win32/Advanced3Page.cpp
dcplusplus/trunk/win32/Appearance2Page.cpp
dcplusplus/trunk/win32/AppearancePage.cpp
dcplusplus/trunk/win32/CertificatesPage.cpp
dcplusplus/trunk/win32/CertificatesPage.h
dcplusplus/trunk/win32/CommandDlg.cpp
dcplusplus/trunk/win32/CommandDlg.h
dcplusplus/trunk/win32/DCPlusPlus.rc
dcplusplus/trunk/win32/DownloadPage.cpp
dcplusplus/trunk/win32/FavHubProperties.cpp
dcplusplus/trunk/win32/FavHubProperties.h
dcplusplus/trunk/win32/GeneralPage.cpp
dcplusplus/trunk/win32/LineDlg.cpp
dcplusplus/trunk/win32/LineDlg.h
dcplusplus/trunk/win32/LogPage.cpp
dcplusplus/trunk/win32/LogPage.h
dcplusplus/trunk/win32/MDIChildFrame.h
dcplusplus/trunk/win32/MagnetDlg.cpp
dcplusplus/trunk/win32/MagnetDlg.h
dcplusplus/trunk/win32/MainWindow.cpp
dcplusplus/trunk/win32/NetworkPage.cpp
dcplusplus/trunk/win32/PropPage.cpp
dcplusplus/trunk/win32/PropPage.h
dcplusplus/trunk/win32/QueuePage.cpp
dcplusplus/trunk/win32/TransferView.h
dcplusplus/trunk/win32/UploadPage.cpp
dcplusplus/trunk/win32/WidgetFactory.h
dcplusplus/trunk/win32/WidgetTextBox.h
Added Paths:
-----------
dcplusplus/trunk/win32/WidgetComboBox.cpp
dcplusplus/trunk/win32/WidgetComboBox.h
dcplusplus/trunk/win32/WidgetTextBox.cpp
Modified: dcplusplus/trunk/smartwin/include/smartwin/GCCHeaders.h
===================================================================
--- dcplusplus/trunk/smartwin/include/smartwin/GCCHeaders.h 2008-03-01 23:16:58 UTC (rev 1022)
+++ dcplusplus/trunk/smartwin/include/smartwin/GCCHeaders.h 2008-03-02 20:31:51 UTC (rev 1023)
@@ -81,6 +81,9 @@
#define COLOR_MENUBAR 30
#define ODS_HOTLIGHT 0x0040
#define ODS_INACTIVE 0x0080
+ #ifndef MN_GETHMENU
+ #define MN_GETHMENU 0x01E1
+ #endif
#if(_WIN32_WINNT >= 0x0500)
#ifndef ODS_NOACCEL
#define ODS_NOACCEL 0x0100
Modified: dcplusplus/trunk/smartwin/include/smartwin/WidgetCreator.h
===================================================================
--- dcplusplus/trunk/smartwin/include/smartwin/WidgetCreator.h 2008-03-01 23:16:58 UTC (rev 1022)
+++ dcplusplus/trunk/smartwin/include/smartwin/WidgetCreator.h 2008-03-02 20:31:51 UTC (rev 1023)
@@ -94,6 +94,12 @@
return retVal;
}
+ static typename WidgetType::ObjectType attach( Widget * parent, HMENU hMenu, const typename WidgetType::Seed & cs )
+ {
+ typename WidgetType::ObjectType retVal(new WidgetType( parent ));
+ retVal->attach( hMenu, cs );
+ return retVal;
+ }
};
// end namespace SmartWin
Modified: dcplusplus/trunk/smartwin/include/smartwin/WidgetFactoryPlatformSmartWinDesktop.h
===================================================================
--- dcplusplus/trunk/smartwin/include/smartwin/WidgetFactoryPlatformSmartWinDesktop.h 2008-03-01 23:16:58 UTC (rev 1022)
+++ dcplusplus/trunk/smartwin/include/smartwin/WidgetFactoryPlatformSmartWinDesktop.h 2008-03-02 20:31:51 UTC (rev 1023)
@@ -123,6 +123,11 @@
return WidgetCreator< WidgetMenu >::create( this, cs );
}
+ WidgetMenuPtr attachMenu(HMENU hMenu, const typename WidgetMenu::Seed& cs = WidgetMenu::Seed())
+ {
+ return WidgetCreator< WidgetMenu >::attach( this, cs, hMenu );
+ }
+
/// Creates a Tool Bar and returns a pointer to it.
/** DON'T delete the returned pointer!!!
*/
Modified: dcplusplus/trunk/smartwin/include/smartwin/widgets/WidgetComboBox.h
===================================================================
--- dcplusplus/trunk/smartwin/include/smartwin/widgets/WidgetComboBox.h 2008-03-01 23:16:58 UTC (rev 1022)
+++ dcplusplus/trunk/smartwin/include/smartwin/widgets/WidgetComboBox.h 2008-03-02 20:31:51 UTC (rev 1023)
@@ -39,7 +39,6 @@
#include "../aspects/AspectPainting.h"
#include "../aspects/AspectSelection.h"
#include "../aspects/AspectText.h"
-#include "WidgetTextBox.h"
namespace SmartWin
{
@@ -154,9 +153,6 @@
static bool isValidSelectionChanged( LPARAM lPar )
{ return true;
}
-
- typedef WidgetTextBox::ObjectType WidgetTextBoxPtr;
- WidgetTextBoxPtr getTextBox();
protected:
/// Constructor Taking pointer to parent
@@ -166,9 +162,6 @@
// WidgetFactory class which is friend
virtual ~WidgetComboBox()
{}
-
-private:
- WidgetTextBoxPtr textBox;
};
///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
@@ -266,7 +259,7 @@
}
inline WidgetComboBox::WidgetComboBox( Widget * parent )
- : ControlType( parent ), textBox(0)
+ : ControlType( parent )
{
}
Modified: dcplusplus/trunk/smartwin/include/smartwin/widgets/WidgetMenu.h
===================================================================
--- dcplusplus/trunk/smartwin/include/smartwin/widgets/WidgetMenu.h 2008-03-01 23:16:58 UTC (rev 1022)
+++ dcplusplus/trunk/smartwin/include/smartwin/widgets/WidgetMenu.h 2008-03-02 20:31:51 UTC (rev 1023)
@@ -206,9 +206,10 @@
*/
void create(const Seed& cs);
- /// Attaches the menu to the parent window
- void attach();
+ void attach(HMENU hMenu, const Seed& cs);
+ void setMenu();
+
/// Appends a popup to the menu
/** Everything you "append" to a menu is added sequentially to the menu <br>
* This specific "append" function appends a "popup" menu which is a menu
@@ -321,7 +322,7 @@
void removeAllItems();
/// Return the number of items in the menu
- int getCount();
+ int getCount() const;
/// Displays and handles a menu which can appear anywhere in the window.
/** Typically called by a Right Mouse click. If both the x and the y coordinate
@@ -502,6 +503,8 @@
typedef std::map<unsigned, Widget::CallbackType> CallbackMap;
CallbackMap callbacks;
+ void createHelper(const Seed& cs);
+
void addCommands();
// Returns item index in the menu item list
Modified: dcplusplus/trunk/smartwin/source/widgets/WidgetComboBox.cpp
===================================================================
--- dcplusplus/trunk/smartwin/source/widgets/WidgetComboBox.cpp 2008-03-01 23:16:58 UTC (rev 1022)
+++ dcplusplus/trunk/smartwin/source/widgets/WidgetComboBox.cpp 2008-03-02 20:31:51 UTC (rev 1023)
@@ -1,5 +1,4 @@
#include "../../include/smartwin/widgets/WidgetComboBox.h"
-#include "../../include/smartwin/WidgetCreator.h"
namespace SmartWin {
@@ -19,16 +18,4 @@
sendMessage(CB_SETEXTENDEDUI, TRUE);
}
-WidgetComboBox::WidgetTextBoxPtr WidgetComboBox::getTextBox() {
- if(!textBox) {
- LONG_PTR style = ::GetWindowLongPtr(handle(), GWL_STYLE);
- if((style & CBS_SIMPLE) == CBS_SIMPLE || (style & CBS_DROPDOWN) == CBS_DROPDOWN) {
- HWND wnd = ::FindWindowEx(handle(), NULL, _T("EDIT"), NULL);
- if(wnd && wnd != handle())
- textBox = WidgetCreator< WidgetTextBox >::attach(this, wnd);
- }
- }
- return textBox;
}
-
-}
Modified: dcplusplus/trunk/smartwin/source/widgets/WidgetMenu.cpp
===================================================================
--- dcplusplus/trunk/smartwin/source/widgets/WidgetMenu.cpp 2008-03-01 23:16:58 UTC (rev 1022)
+++ dcplusplus/trunk/smartwin/source/widgets/WidgetMenu.cpp 2008-03-02 20:31:51 UTC (rev 1023)
@@ -52,8 +52,7 @@
xAssert(itsParent != NULL, _T("A WidgetMenu must have a parent"));
}
-void WidgetMenu::create(const Seed& cs)
-{
+void WidgetMenu::createHelper(const Seed& cs) {
// save settings provided through the Seed
ownerDrawn = cs.ownerDrawn;
itsColorInfo = cs.colorInfo;
@@ -70,8 +69,11 @@
itsParent->setCallback(Message(WM_DRAWITEM), DrawItemDispatcher(std::tr1::bind(&WidgetMenu::handleDrawItem, this, _1, _2)));
itsParent->setCallback(Message(WM_MEASUREITEM), MeasureItemDispatcher(std::tr1::bind(&WidgetMenu::handleMeasureItem, this, _1)));
}
+}
- // Create menu
+void WidgetMenu::create(const Seed& cs) {
+ createHelper(cs);
+
if(cs.popup)
itsHandle = ::CreatePopupMenu();
else
@@ -83,11 +85,46 @@
}
}
-void WidgetMenu::attach()
-{
+void WidgetMenu::attach(HMENU hMenu, const Seed& cs) {
+ createHelper(cs);
+
+ itsHandle = hMenu;
+
+ if(ownerDrawn) {
+ // update all current items to be owner-drawn
+ // @todo update sub-menus too...
+ const int count = getCount();
+ for(int i = 0; i < count; ++i) {
+ // init structure for items
+ MENUITEMINFO info;
+ memset( & info, 0, sizeof( info ) );
+ info.cbSize = sizeof( MENUITEMINFO );
+
+ // set flags
+ info.fMask = MIIM_FTYPE | MIIM_DATA;
+
+ if(::GetMenuItemInfo(itsHandle, i, TRUE, &info)) {
+ info.fMask |= MIIM_DATA;
+ info.fType |= MFT_OWNERDRAW;
+
+ // create item data wrapper
+ ItemDataWrapper * wrapper = new ItemDataWrapper( this, i, MenuItemDataPtr( new MenuItemData() ) );
+ info.dwItemData = reinterpret_cast< ULONG_PTR >( wrapper );
+
+ if(::SetMenuItemInfo(itsHandle, i, TRUE, &info))
+ itsItemDataRef.push_back( wrapper );
+ else
+ throw xCeption( _T( "SetMenuItemInfo in WidgetMenu::attach fizzled..." ) );
+ } else
+ throw xCeption( _T( "GetMenuItemInfo in WidgetMenu::attach fizzled..." ) );
+ }
+ }
+}
+
+void WidgetMenu::setMenu() {
addCommands();
if ( ::SetMenu( itsParent->handle(), itsHandle ) == FALSE )
- throw xCeption( _T( "Couldn't attach menu to the parent window" ) );
+ throw xCeption( _T( "SetMenu in WidgetMenu::setMenu fizzled..." ) );
}
WidgetMenu::ObjectType WidgetMenu::appendPopup( const SmartUtil::tstring & text, MenuItemDataPtr itemData )
@@ -111,7 +148,7 @@
info.hSubMenu = retVal->handle();
// get position to insert
- int position = ::GetMenuItemCount( itsHandle );
+ int position = getCount();
ItemDataWrapper * wrapper = NULL;
if(ownerDrawn) {
@@ -167,7 +204,7 @@
int WidgetMenu::getItemIndex( unsigned int id )
{
int index = 0;
- const int itemCount = ::GetMenuItemCount( itsHandle );
+ const int itemCount = getCount();
for ( index = 0; index < itemCount; ++index )
if ( ::GetMenuItemID( itsHandle, index ) == id ) // exit the loop if found
@@ -190,7 +227,7 @@
WidgetMenu::~WidgetMenu()
{
// Destroy this menu
- ::DestroyMenu( this->handle() );
+ ::DestroyMenu( handle() );
std::for_each( itsItemDataRef.begin(), itsItemDataRef.end(), destroyItemDataWrapper );
}
@@ -205,7 +242,7 @@
void WidgetMenu::setTitleFont( FontPtr font )
{
itsTitleFont = font;
- setTitle( itsTitle, this->drawSidebar ); // Easy for now, should be refactored...
+ setTitle( itsTitle, drawSidebar ); // Easy for now, should be refactored...
}
void WidgetMenu::clearTitle( bool clearSidebar /* = false */)
@@ -222,12 +259,12 @@
void WidgetMenu::checkItem( unsigned id, bool value )
{
- ::CheckMenuItem( this->handle(), id, value ? MF_CHECKED : MF_UNCHECKED );
+ ::CheckMenuItem( handle(), id, value ? MF_CHECKED : MF_UNCHECKED );
}
void WidgetMenu::setItemEnabled( unsigned id, bool byPosition, bool value )
{
- if ( ::EnableMenuItem( this->handle(), id, (byPosition ? MF_BYPOSITION : MF_BYCOMMAND) | (value ? MF_ENABLED : MF_GRAYED) ) == - 1 )
+ if ( ::EnableMenuItem( handle(), id, (byPosition ? MF_BYPOSITION : MF_BYCOMMAND) | (value ? MF_ENABLED : MF_GRAYED) ) == - 1 )
{
xCeption x( _T( "Couldn't enable/disable the menu item, item doesn't exist" ) );
throw x;
@@ -236,7 +273,7 @@
UINT WidgetMenu::getMenuState( UINT id, bool byPosition )
{
- return ::GetMenuState(this->handle(), id, byPosition ? MF_BYPOSITION : MF_BYCOMMAND);
+ return ::GetMenuState(handle(), id, byPosition ? MF_BYPOSITION : MF_BYCOMMAND);
}
bool WidgetMenu::isSeparator( UINT id, bool byPosition )
@@ -261,7 +298,7 @@
void WidgetMenu::setDefaultItem( UINT id, bool byPosition )
{
- ::SetMenuDefaultItem(this->handle(), id, byPosition);
+ ::SetMenuDefaultItem(handle(), id, byPosition);
}
SmartUtil::tstring WidgetMenu::getText( unsigned id, bool byPosition )
@@ -841,7 +878,7 @@
itemInfo.fType = MFT_SEPARATOR;
// get position to insert
- int position = ::GetMenuItemCount( itsHandle );
+ int position = getCount();
ItemDataWrapper * wrapper = NULL;
if(ownerDrawn) {
@@ -863,7 +900,7 @@
HMENU popup = ::GetSubMenu( itsHandle, itemIndex );
// try to remove item
- if ( ::RemoveMenu( itsHandle, itemIndex, MF_BYPOSITION ) == TRUE )
+ if ( ::RemoveMenu( itsHandle, itemIndex, MF_BYPOSITION ) )
{
size_t i = 0;
@@ -906,13 +943,13 @@
void WidgetMenu::removeAllItems()
{
//must be backwards, since bigger indexes change on remove
- for( int i = this->getCount() - 1; i >= 0; i-- )
+ for( int i = getCount() - 1; i >= 0; i-- )
{
- this->removeItem( i );
+ removeItem( i );
}
}
-int WidgetMenu::getCount()
+int WidgetMenu::getCount() const
{
int count = ::GetMenuItemCount( itsHandle );
if( count == -1 )
@@ -942,7 +979,7 @@
// set position to insert
bool itemExists = index != - 1;
- index = itemExists ? index : ::GetMenuItemCount( itsHandle );
+ index = itemExists ? index : getCount();
ItemDataWrapper * wrapper = NULL;
if(ownerDrawn) {
@@ -954,8 +991,8 @@
info.dwItemData = reinterpret_cast< ULONG_PTR >( wrapper );
}
- if ( ( !itemExists && ::InsertMenuItem( itsHandle, id, FALSE, & info ) == TRUE ) ||
- ( itemExists && ::SetMenuItemInfo( itsHandle, id, FALSE, & info ) == TRUE ) )
+ if ( ( !itemExists && ::InsertMenuItem( itsHandle, id, FALSE, & info ) ) ||
+ ( itemExists && ::SetMenuItemInfo( itsHandle, id, FALSE, & info ) ) )
{
if(ownerDrawn)
itsItemDataRef.push_back( wrapper );
@@ -991,8 +1028,8 @@
WidgetMenu::ObjectType WidgetMenu::getChild( unsigned position ) {
HMENU h = ::GetSubMenu(handle(), position);
- for(size_t i = 0; i < this->itsChildren.size(); ++i) {
- ObjectType& menu = this->itsChildren[i];
+ for(size_t i = 0; i < itsChildren.size(); ++i) {
+ ObjectType& menu = itsChildren[i];
if(menu->handle() == h) {
return menu;
}
Modified: dcplusplus/trunk/win32/AboutDlg.cpp
===================================================================
--- dcplusplus/trunk/win32/AboutDlg.cpp 2008-03-01 23:16:58 UTC (rev 1022)
+++ dcplusplus/trunk/win32/AboutDlg.cpp 2008-03-02 20:31:51 UTC (rev 1023)
@@ -44,7 +44,7 @@
"stanislav maslovski, david grundberg. "
"Keep it coming!";
-AboutDlg::AboutDlg(SmartWin::Widget* parent) : SmartWin::WidgetFactory<SmartWin::WidgetModalDialog>(parent) {
+AboutDlg::AboutDlg(SmartWin::Widget* parent) : WidgetFactory<SmartWin::WidgetModalDialog>(parent) {
onInitDialog(std::tr1::bind(&AboutDlg::handleInitDialog, this));
onSpeaker(std::tr1::bind(&AboutDlg::handleSpeaker, this, _1, _2));
}
@@ -54,8 +54,8 @@
bool AboutDlg::handleInitDialog() {
setItemText(IDC_VERSION, Text::toT("DC++ " VERSIONSTRING "\n(c) Copyright 2001-2008 Jacek Sieka\nEx-codeveloper: Per Lind\303\251n\nGraphics: Martin Skogevall et al.\nDC++ is licenced under GPL\nhttp://dcplusplus.sourceforge.net/"));
- setItemText(IDC_TTH, WinUtil::tth);
- setItemText(IDC_THANKS, Text::toT(thanks));
+ attachTextBox(IDC_TTH)->setText(WinUtil::tth);
+ attachTextBox(IDC_THANKS)->setText(Text::toT(thanks));
setItemText(IDC_TOTALS, str(TF_("Upload: %1%, Download: %2%") % Text::toT(Util::formatBytes(SETTING(TOTAL_UPLOAD))) % Text::toT(Util::formatBytes(SETTING(TOTAL_DOWNLOAD)))));
if(SETTING(TOTAL_DOWNLOAD) > 0) {
setItemText(IDC_RATIO, str(TF_("Ratio (up/down): %1$0.2f") % (((double)SETTING(TOTAL_UPLOAD)) / ((double)SETTING(TOTAL_DOWNLOAD)))));
Modified: dcplusplus/trunk/win32/AboutDlg.h
===================================================================
--- dcplusplus/trunk/win32/AboutDlg.h 2008-03-01 23:16:58 UTC (rev 1022)
+++ dcplusplus/trunk/win32/AboutDlg.h 2008-03-02 20:31:51 UTC (rev 1023)
@@ -21,10 +21,11 @@
#include <dcpp/HttpConnection.h>
#include "resource.h"
+#include "WidgetFactory.h"
#include "AspectSpeaker.h"
class AboutDlg :
- public SmartWin::WidgetFactory<SmartWin::WidgetModalDialog>,
+ public WidgetFactory<SmartWin::WidgetModalDialog>,
public AspectSpeaker<AboutDlg>,
private HttpConnectionListener
{
Modified: dcplusplus/trunk/win32/Advanced3Page.cpp
===================================================================
--- dcplusplus/trunk/win32/Advanced3Page.cpp 2008-03-01 23:16:58 UTC (rev 1022)
+++ dcplusplus/trunk/win32/Advanced3Page.cpp 2008-03-02 20:31:51 UTC (rev 1023)
@@ -68,6 +68,21 @@
WidgetSpinnerPtr spinner = attachSpinner(IDC_SEARCH_HISTORY_SPIN);
spinner->setRange(0, 100);
+
+ attachTextBox(IDC_ROLLBACK);
+ attachTextBox(IDC_MAX_HASH_SPEED);
+ attachTextBox(IDC_SHOW_LAST_LINES_LOG);
+ attachTextBox(IDC_SET_MINISLOT_SIZE);
+ attachTextBox(IDC_MAX_FILELIST_SIZE);
+ attachTextBox(IDC_PRIVATE_ID);
+ attachTextBox(IDC_AUTO_REFRESH_TIME);
+ attachTextBox(IDC_BUFFERSIZE);
+ attachTextBox(IDC_AUTO_SEARCH_LIMIT);
+ attachTextBox(IDC_SEARCH_HISTORY);
+ attachTextBox(IDC_BIND_ADDRESS);
+ attachTextBox(IDC_SOCKET_IN_BUFFER);
+ attachTextBox(IDC_SOCKET_OUT_BUFFER);
+ attachTextBox(IDC_MIN_SEGMENT_SIZE);
}
Advanced3Page::~Advanced3Page() {
Modified: dcplusplus/trunk/win32/Appearance2Page.cpp
===================================================================
--- dcplusplus/trunk/win32/Appearance2Page.cpp 2008-03-01 23:16:58 UTC (rev 1022)
+++ dcplusplus/trunk/win32/Appearance2Page.cpp 2008-03-02 20:31:51 UTC (rev 1023)
@@ -81,6 +81,8 @@
button = attachButton(IDC_BROWSE);
button->onClicked(std::tr1::bind(&Appearance2Page::handleBrowseClicked, this));
+
+ attachTextBox(IDC_BEEPFILE);
}
Appearance2Page::~Appearance2Page() {
Modified: dcplusplus/trunk/win32/AppearancePage.cpp
===================================================================
--- dcplusplus/trunk/win32/AppearancePage.cpp 2008-03-01 23:16:58 UTC (rev 1022)
+++ dcplusplus/trunk/win32/AppearancePage.cpp 2008-03-02 20:31:51 UTC (rev 1023)
@@ -96,6 +96,9 @@
}
languages->setSelectedIndex(selected);
+
+ attachTextBox(IDC_DEFAULT_AWAY_MESSAGE);
+ attachTextBox(IDC_TIME_STAMPS_FORMAT);
}
AppearancePage::~AppearancePage() {
Modified: dcplusplus/trunk/win32/CertificatesPage.cpp
===================================================================
--- dcplusplus/trunk/win32/CertificatesPage.cpp 2008-03-01 23:16:58 UTC (rev 1022)
+++ dcplusplus/trunk/win32/CertificatesPage.cpp 2008-03-02 20:31:51 UTC (rev 1023)
@@ -50,10 +50,13 @@
PropPage::translate(handle(), texts);
PropPage::read(handle(), items, listItems, ::GetDlgItem(handle(), IDC_TLS_OPTIONS));
+ privateKeyFile = attachTextBox(IDC_TLS_PRIVATE_KEY_FILE);
attachButton(IDC_BROWSE_PRIVATE_KEY)->onClicked(std::tr1::bind(&CertificatesPage::handleBrowsePrivateKeyClicked, this));
+ certificateFile = attachTextBox(IDC_TLS_CERTIFICATE_FILE);
attachButton(IDC_BROWSE_CERTIFICATE)->onClicked(std::tr1::bind(&CertificatesPage::handleBrowseCertificateClicked, this));
+ trustedCertificatesPath = attachTextBox(IDC_TLS_TRUSTED_CERTIFICATES_PATH);
attachButton(IDC_BROWSE_TRUSTED_PATH)->onClicked(std::tr1::bind(&CertificatesPage::handleBrowseTrustedPathClicked, this));
attachButton(IDC_GENERATE_CERTS)->onClicked(std::tr1::bind(&CertificatesPage::handleGenerateCertsClicked, this));
@@ -67,21 +70,21 @@
}
void CertificatesPage::handleBrowsePrivateKeyClicked() {
- tstring target = Text::toT(SETTING(TLS_PRIVATE_KEY_FILE));
+ tstring target = privateKeyFile->getText();
if(WinUtil::browseFile(target, handle(), false, target))
- ::SetDlgItemText(handle(), IDC_TLS_PRIVATE_KEY_FILE, &target[0]);
+ privateKeyFile->setText(target);
}
void CertificatesPage::handleBrowseCertificateClicked() {
- tstring target = Text::toT(SETTING(TLS_CERTIFICATE_FILE));
+ tstring target = certificateFile->getText();
if(WinUtil::browseFile(target, handle(), false, target))
- ::SetDlgItemText(handle(), IDC_TLS_CERTIFICATE_FILE, &target[0]);
+ certificateFile->setText(target);
}
void CertificatesPage::handleBrowseTrustedPathClicked() {
- tstring target = Text::toT(SETTING(TLS_TRUSTED_CERTIFICATES_PATH));
+ tstring target = trustedCertificatesPath->getText();
if(WinUtil::browseDirectory(target, handle()))
- ::SetDlgItemText(handle(), IDC_TLS_TRUSTED_CERTIFICATES_PATH, &target[0]);
+ trustedCertificatesPath->setText(target);
}
void CertificatesPage::handleGenerateCertsClicked() {
Modified: dcplusplus/trunk/win32/CertificatesPage.h
===================================================================
--- dcplusplus/trunk/win32/CertificatesPage.h 2008-03-01 23:16:58 UTC (rev 1022)
+++ dcplusplus/trunk/win32/CertificatesPage.h 2008-03-02 20:31:51 UTC (rev 1023)
@@ -35,6 +35,10 @@
static TextItem texts[];
static ListItem listItems[];
+ WidgetTextBoxPtr privateKeyFile;
+ WidgetTextBoxPtr certificateFile;
+ WidgetTextBoxPtr trustedCertificatesPath;
+
void handleBrowsePrivateKeyClicked();
void handleBrowseCertificateClicked();
void handleBrowseTrustedPathClicked();
Modified: dcplusplus/trunk/win32/CommandDlg.cpp
===================================================================
--- dcplusplus/trunk/win32/CommandDlg.cpp 2008-03-01 23:16:58 UTC (rev 1022)
+++ dcplusplus/trunk/win32/CommandDlg.cpp 2008-03-02 20:31:51 UTC (rev 1023)
@@ -28,7 +28,7 @@
#include "WinUtil.h"
CommandDlg::CommandDlg(SmartWin::Widget* parent, int type_, int ctx_, const tstring& name_, const tstring& command_, const tstring& hub_) :
- SmartWin::WidgetFactory<SmartWin::WidgetModalDialog>(parent),
+ WidgetFactory<SmartWin::WidgetModalDialog>(parent),
separator(0),
raw(0),
chat(0),
Modified: dcplusplus/trunk/win32/CommandDlg.h
===================================================================
--- dcplusplus/trunk/win32/CommandDlg.h 2008-03-01 23:16:58 UTC (rev 1022)
+++ dcplusplus/trunk/win32/CommandDlg.h 2008-03-02 20:31:51 UTC (rev 1023)
@@ -20,8 +20,9 @@
#define DCPLUSPLUS_WIN32_COMMAND_DLG_H
#include <dcpp/Util.h>
+#include "WidgetFactory.h"
-class CommandDlg : public SmartWin::WidgetFactory<SmartWin::WidgetModalDialog>
+class CommandDlg : public WidgetFactory<SmartWin::WidgetModalDialog>
{
public:
CommandDlg(SmartWin::Widget* parent, int type_ = 0, int ctx_ = 0, const tstring& name_ = Util::emptyStringT, const tstring& command_ = Util::emptyStringT, const tstring& hub_ = Util::emptyStringT);
Modified: dcplusplus/trunk/win32/DCPlusPlus.rc
===================================================================
--- dcplusplus/trunk/win32/DCPlusPlus.rc 2008-03-01 23:16:58 UTC (rev 1022)
+++ dcplusplus/trunk/win32/DCPlusPlus.rc 2008-03-02 20:31:51 UTC (rev 1023)
@@ -471,6 +471,8 @@
EDITTEXT IDC_PORT_TCP,230,28,29,14,ES_AUTOHSCROLL | ES_NUMBER
LTEXT "UDP",IDC_SETTINGS_PORT_UDP,209,48,16,8
EDITTEXT IDC_PORT_UDP,230,45,30,14,ES_AUTOHSCROLL | ES_NUMBER
+ LTEXT "TLS",IDC_SETTINGS_PORT_TLS,209,64,21,8
+ EDITTEXT IDC_PORT_TLS,230,61,30,14,ES_AUTOHSCROLL | ES_NUMBER
LTEXT "External / WAN IP",IDC_SETTINGS_IP,59,59,68,8,NOT WS_GROUP
EDITTEXT IDC_EXTERNAL_IP,59,69,99,14,ES_AUTOHSCROLL
CONTROL "Don't allow hub/UPnP to override",IDC_OVERRIDE,"Button",BS_AUTOCHECKBOX | WS_TABSTOP,59,86,150,10
@@ -487,8 +489,6 @@
EDITTEXT IDC_SOCKS_PASSWORD,153,190,71,14,ES_AUTOHSCROLL
CONTROL "Use SOCKS5 server to resolve hostnames",IDC_SOCKS_RESOLVE,
"Button",BS_AUTOCHECKBOX | WS_GROUP | WS_TABSTOP,59,207,165,10
- LTEXT "TLS",IDC_SETTINGS_PORT_TLS,209,64,21,8
- EDITTEXT IDC_PORT_TLS,230,61,30,14,ES_AUTOHSCROLL | ES_NUMBER
END
IDD_WINDOWSPAGE DIALOGEX 100, 0, 275, 225
Modified: dcplusplus/trunk/win32/DownloadPage.cpp
===================================================================
--- dcplusplus/trunk/win32/DownloadPage.cpp 2008-03-01 23:16:58 UTC (rev 1022)
+++ dcplusplus/trunk/win32/DownloadPage.cpp 2008-03-02 20:31:51 UTC (rev 1023)
@@ -69,6 +69,12 @@
spinner = attachSpinner(IDC_SPEEDSPIN);
spinner->setRange(0, 10000);
+
+ attachTextBox(IDC_DOWNLOADDIR);
+ attachTextBox(IDC_TEMP_DOWNLOAD_DIRECTORY);
+ attachTextBox(IDC_DOWNLOADS);
+ attachTextBox(IDC_MAXSPEED);
+ attachTextBox(IDC_PROXY);
}
DownloadPage::~DownloadPage() {
Modified: dcplusplus/trunk/win32/FavHubProperties.cpp
===================================================================
--- dcplusplus/trunk/win32/FavHubProperties.cpp 2008-03-01 23:16:58 UTC (rev 1022)
+++ dcplusplus/trunk/win32/FavHubProperties.cpp 2008-03-02 20:31:51 UTC (rev 1023)
@@ -26,7 +26,7 @@
#include <dcpp/version.h>
FavHubProperties::FavHubProperties(SmartWin::Widget* parent, FavoriteHubEntry *_entry) :
- SmartWin::WidgetFactory<SmartWin::WidgetModalDialog>(parent),
+ WidgetFactory<SmartWin::WidgetModalDialog>(parent),
name(0),
address(0),
description(0),
Modified: dcplusplus/trunk/win32/FavHubProperties.h
===================================================================
--- dcplusplus/trunk/win32/FavHubProperties.h 2008-03-01 23:16:58 UTC (rev 1022)
+++ dcplusplus/trunk/win32/FavHubProperties.h 2008-03-02 20:31:51 UTC (rev 1023)
@@ -22,7 +22,7 @@
#include <dcpp/forward.h>
#include "WidgetFactory.h"
-class FavHubProperties : public SmartWin::WidgetFactory<SmartWin::WidgetModalDialog>
+class FavHubProperties : public WidgetFactory<SmartWin::WidgetModalDialog>
{
public:
FavHubProperties(SmartWin::Widget* parent, FavoriteHubEntry *_entry);
Modified: dcplusplus/trunk/win32/GeneralPage.cpp
===================================================================
--- dcplusplus/trunk/win32/GeneralPage.cpp 2008-03-01 23:16:58 UTC (rev 1022)
+++ dcplusplus/trunk/win32/GeneralPage.cpp 2008-03-02 20:31:51 UTC (rev 1023)
@@ -64,6 +64,8 @@
nick->setTextLimit(35);
nick->onTextChanged(std::tr1::bind(&GeneralPage::handleNickTextChanged, this));
+ attachTextBox(IDC_EMAIL);
+
attachTextBox(IDC_DESCRIPTION)->setTextLimit(35);
}
Modified: dcplusplus/trunk/win32/LineDlg.cpp
===================================================================
--- dcplusplus/trunk/win32/LineDlg.cpp 2008-03-01 23:16:58 UTC (rev 1022)
+++ dcplusplus/trunk/win32/LineDlg.cpp 2008-03-02 20:31:51 UTC (rev 1023)
@@ -21,7 +21,7 @@
#include "LineDlg.h"
LineDlg::LineDlg(SmartWin::Widget* parent, const tstring& title_, const tstring& desc_, const tstring& initial_, bool password_) :
- SmartWin::WidgetFactory<SmartWin::WidgetModalDialog>(parent),
+ WidgetFactory<SmartWin::WidgetModalDialog>(parent),
title(title_),
desc(desc_),
initial(initial_),
Modified: dcplusplus/trunk/win32/LineDlg.h
===================================================================
--- dcplusplus/trunk/win32/LineDlg.h 2008-03-01 23:16:58 UTC (rev 1022)
+++ dcplusplus/trunk/win32/LineDlg.h 2008-03-02 20:31:51 UTC (rev 1023)
@@ -22,8 +22,9 @@
#include "resource.h"
#include <dcpp/Util.h>
+#include "WidgetFactory.h"
-class LineDlg : public SmartWin::WidgetFactory<SmartWin::WidgetModalDialog>
+class LineDlg : public WidgetFactory<SmartWin::WidgetModalDialog>
{
public:
LineDlg(SmartWin::Widget* parent, const tstring& title_, const tstring& desc_, const tstring& initial_ = Util::emptyStringT, bool password_ = false);
Modified: dcplusplus/trunk/win32/LogPage.cpp
===================================================================
--- dcplusplus/trunk/win32/LogPage.cpp 2008-03-01 23:16:58 UTC (rev 1022)
+++ dcplusplus/trunk/win32/LogPage.cpp 2008-03-02 20:31:51 UTC (rev 1023)
@@ -65,22 +65,26 @@
options.push_back(pair);
}
- ::EnableWindow(::GetDlgItem(handle(), IDC_LOG_FORMAT), false);
- ::EnableWindow(::GetDlgItem(handle(), IDC_LOG_FILE), false);
+ attachTextBox(IDC_LOG_DIRECTORY);
- oldSelection = -1;
-
attachButton(IDC_BROWSE_LOG)->onClicked(std::tr1::bind(&LogPage::handleBrowseClicked, this));
- WidgetListViewPtr dataGrid = attachList(IDC_LOG_OPTIONS);
- dataGrid->onRaw(std::tr1::bind(&LogPage::handleItemChanged, this, dataGrid, _1, _2), SmartWin::Message(WM_NOTIFY, LVN_ITEMCHANGED));
+ dataGrid = attachList(IDC_LOG_OPTIONS);
+ dataGrid->onRaw(std::tr1::bind(&LogPage::handleItemChanged, this), SmartWin::Message(WM_NOTIFY, LVN_ITEMCHANGED));
+
+ logFormat = attachTextBox(IDC_LOG_FORMAT);
+ logFormat->setEnabled(false);
+
+ logFile = attachTextBox(IDC_LOG_FILE);
+ logFile->setEnabled(false);
+
+ oldSelection = -1;
}
LogPage::~LogPage() {
}
-void LogPage::write()
-{
+void LogPage::write() {
PropPage::write(handle(), items, listItems, ::GetDlgItem(handle(), IDC_LOG_OPTIONS));
const string& s = SETTING(LOG_DIRECTORY);
@@ -115,27 +119,27 @@
}
}
-HRESULT LogPage::handleItemChanged(WidgetListViewPtr dataGrid, WPARAM wParam, LPARAM lParam) {
+LRESULT LogPage::handleItemChanged() {
getValues();
int sel = dataGrid->getSelectedIndex();
if(sel >= 0 && sel < LogManager::LAST) {
- BOOL checkState = dataGrid->isChecked(sel) ? TRUE : FALSE;
- ::EnableWindow(::GetDlgItem(handle(), IDC_LOG_FORMAT), checkState);
- ::EnableWindow(::GetDlgItem(handle(), IDC_LOG_FILE), checkState);
+ bool checkState = dataGrid->isChecked(sel);
+ logFormat->setEnabled(checkState);
+ logFile->setEnabled(checkState);
- ::SetDlgItemText(handle(), IDC_LOG_FILE, options[sel].first.c_str());
- ::SetDlgItemText(handle(), IDC_LOG_FORMAT, options[sel].second.c_str());
+ logFile->setText(options[sel].first);
+ logFormat->setText(options[sel].second);
//save the old selection so we know where to save the values
oldSelection = sel;
} else {
- ::EnableWindow(::GetDlgItem(handle(), IDC_LOG_FORMAT), FALSE);
- ::EnableWindow(::GetDlgItem(handle(), IDC_LOG_FILE), FALSE);
+ logFormat->setEnabled(false);
+ logFile->setEnabled(false);
- ::SetDlgItemText(handle(), IDC_LOG_FILE, _T(""));
- ::SetDlgItemText(handle(), IDC_LOG_FORMAT, _T(""));
+ logFile->setText(Util::emptyStringT);
+ logFormat->setText(Util::emptyStringT);
}
...
[truncated message content] |
|
From: <arn...@us...> - 2008-03-04 23:19:36
|
Revision: 1024
http://dcplusplus.svn.sourceforge.net/dcplusplus/?rev=1024&view=rev
Author: arnetheduck
Date: 2008-03-04 15:19:17 -0800 (Tue, 04 Mar 2008)
Log Message:
-----------
language updates, memory fixes
Modified Paths:
--------------
dcplusplus/trunk/SConstruct
dcplusplus/trunk/dcpp/BufferedSocket.cpp
dcplusplus/trunk/dcpp/CryptoManager.cpp
dcplusplus/trunk/dcpp/Pointer.h
dcplusplus/trunk/dcpp/po/de.po
dcplusplus/trunk/dcpp/po/fr.po
dcplusplus/trunk/dcpp/po/hu.po
dcplusplus/trunk/dcpp/po/id.po
dcplusplus/trunk/dcpp/po/it.po
dcplusplus/trunk/dcpp/po/km.po
dcplusplus/trunk/dcpp/po/ko.po
dcplusplus/trunk/dcpp/po/pl.po
dcplusplus/trunk/dcpp/po/pt.po
dcplusplus/trunk/dcpp/po/ro.po
dcplusplus/trunk/dcpp/po/sl.po
dcplusplus/trunk/dcpp/po/sq.po
dcplusplus/trunk/dcpp/po/sv.po
dcplusplus/trunk/win32/MainWindow.cpp
dcplusplus/trunk/win32/po/fr.po
dcplusplus/trunk/win32/po/id.po
dcplusplus/trunk/win32/po/it.po
dcplusplus/trunk/win32/po/km.po
dcplusplus/trunk/win32/po/ko.po
dcplusplus/trunk/win32/po/pl.po
dcplusplus/trunk/win32/po/pt.po
dcplusplus/trunk/win32/po/ro.po
dcplusplus/trunk/win32/po/sl.po
dcplusplus/trunk/win32/po/sq.po
Added Paths:
-----------
dcplusplus/trunk/dcpp/po/ar.po
dcplusplus/trunk/dcpp/po/bg.po
dcplusplus/trunk/dcpp/po/bs.po
dcplusplus/trunk/dcpp/po/ca.po
dcplusplus/trunk/dcpp/po/cs.po
dcplusplus/trunk/dcpp/po/da.po
dcplusplus/trunk/dcpp/po/el.po
dcplusplus/trunk/dcpp/po/en_GB.po
dcplusplus/trunk/dcpp/po/es.po
dcplusplus/trunk/dcpp/po/fi.po
dcplusplus/trunk/dcpp/po/gl.po
dcplusplus/trunk/dcpp/po/he.po
dcplusplus/trunk/dcpp/po/hr.po
dcplusplus/trunk/dcpp/po/is.po
dcplusplus/trunk/dcpp/po/ja.po
dcplusplus/trunk/dcpp/po/lt.po
dcplusplus/trunk/dcpp/po/lv.po
dcplusplus/trunk/dcpp/po/mk.po
dcplusplus/trunk/dcpp/po/ms.po
dcplusplus/trunk/dcpp/po/nb.po
dcplusplus/trunk/dcpp/po/nl.po
dcplusplus/trunk/dcpp/po/pt_BR.po
dcplusplus/trunk/dcpp/po/ru.po
dcplusplus/trunk/dcpp/po/tr.po
dcplusplus/trunk/dcpp/po/uk.po
dcplusplus/trunk/dcpp/po/zh.po
dcplusplus/trunk/dcpp/po/zh_TW.po
dcplusplus/trunk/win32/po/ar.po
dcplusplus/trunk/win32/po/bg.po
dcplusplus/trunk/win32/po/bs.po
dcplusplus/trunk/win32/po/ca.po
dcplusplus/trunk/win32/po/cs.po
dcplusplus/trunk/win32/po/da.po
dcplusplus/trunk/win32/po/de.po
dcplusplus/trunk/win32/po/el.po
dcplusplus/trunk/win32/po/en_GB.po
dcplusplus/trunk/win32/po/es.po
dcplusplus/trunk/win32/po/fi.po
dcplusplus/trunk/win32/po/gl.po
dcplusplus/trunk/win32/po/he.po
dcplusplus/trunk/win32/po/hr.po
dcplusplus/trunk/win32/po/hu.po
dcplusplus/trunk/win32/po/is.po
dcplusplus/trunk/win32/po/ja.po
dcplusplus/trunk/win32/po/lt.po
dcplusplus/trunk/win32/po/lv.po
dcplusplus/trunk/win32/po/mk.po
dcplusplus/trunk/win32/po/nb.po
dcplusplus/trunk/win32/po/nl.po
dcplusplus/trunk/win32/po/pt_BR.po
dcplusplus/trunk/win32/po/ru.po
dcplusplus/trunk/win32/po/sv.po
dcplusplus/trunk/win32/po/tr.po
dcplusplus/trunk/win32/po/uk.po
dcplusplus/trunk/win32/po/zh.po
dcplusplus/trunk/win32/po/zh_TW.po
Modified: dcplusplus/trunk/SConstruct
===================================================================
--- dcplusplus/trunk/SConstruct 2008-03-02 20:31:51 UTC (rev 1023)
+++ dcplusplus/trunk/SConstruct 2008-03-04 23:19:17 UTC (rev 1024)
@@ -17,7 +17,7 @@
)
gcc_flags = {
- 'common': ['-ggdb', '-Wall', '-Wextra', '-pipe', '-Wno-unused-parameter', '-Wno-missing-field-initializers', '-fexceptions', '-mthreads'],
+ 'common': ['-g', '-Wall', '-Wextra', '-pipe', '-Wno-unused-parameter', '-Wno-missing-field-initializers', '-fexceptions', '-mthreads'],
'debug': [],
'release' : ['-O2', '-mwindows']
}
Modified: dcplusplus/trunk/dcpp/BufferedSocket.cpp
===================================================================
--- dcplusplus/trunk/dcpp/BufferedSocket.cpp 2008-03-02 20:31:51 UTC (rev 1023)
+++ dcplusplus/trunk/dcpp/BufferedSocket.cpp 2008-03-04 23:19:17 UTC (rev 1024)
@@ -170,7 +170,6 @@
// This socket has been closed...
throw SocketException(("Connection closed"));
}
- size_t used;
string::size_type pos = 0;
// always uncompressed data
string l;
@@ -179,20 +178,19 @@
while (left > 0) {
switch (mode) {
case MODE_ZPIPE:
- if (filterIn != NULL){
- const int BufSize = 1024;
+ if(filterIn) {
+ const int BUF_SIZE = 1024;
// Special to autodetect nmdc connections...
string::size_type pos = 0;
- boost::scoped_array<uint8_t> buffer (new uint8_t[BufSize]);
- size_t in;
+ boost::scoped_array<char> buffer(new char[BUF_SIZE]);
l = line;
// decompress all input data and store in l.
while (left) {
- in = BufSize;
- used = left;
- bool ret = (*filterIn) ((void *)(&inbuf[0] + total - left), used, &buffer[0], in);
+ size_t in = BUF_SIZE;
+ size_t used = left;
+ bool ret = (*filterIn) (&inbuf[0] + total - left, used, &buffer[0], in);
left -= used;
- l.append ((const char *)&buffer[0], in);
+ l.append (&buffer[0], in);
// if the stream ends before the data runs out, keep remainder of data in inbuf
if (!ret) {
bufpos = total-left;
@@ -203,7 +201,7 @@
// process all lines
while ((pos = l.find(separator)) != string::npos) {
fire(BufferedSocketListener::Line(), l.substr(0, pos));
- l.erase (0, pos + 1 /* seperator char */);
+ l.erase (0, pos + 1 /* separator char */);
}
// store remainder
line = l;
Modified: dcplusplus/trunk/dcpp/CryptoManager.cpp
===================================================================
--- dcplusplus/trunk/dcpp/CryptoManager.cpp 2008-03-02 20:31:51 UTC (rev 1023)
+++ dcplusplus/trunk/dcpp/CryptoManager.cpp 2008-03-04 23:19:17 UTC (rev 1024)
@@ -155,8 +155,6 @@
int days = 10;
int keylength = 2048;
- const char* err = NULL;
-
#define CHECK(n) if(!(n)) { throw CryptoException(#n); }
// Generate key pair
@@ -350,7 +348,7 @@
bs.avail_in = sz;
bs.avail_out = bufsize;
- bs.next_in = (char*)(const_cast<uint8_t*>(is));
+ bs.next_in = reinterpret_cast<char*>(const_cast<uint8_t*>(is));
bs.next_out = &buf[0];
int err;
Modified: dcplusplus/trunk/dcpp/Pointer.h
===================================================================
--- dcplusplus/trunk/dcpp/Pointer.h 2008-03-02 20:31:51 UTC (rev 1023)
+++ dcplusplus/trunk/dcpp/Pointer.h 2008-03-04 23:19:17 UTC (rev 1024)
@@ -35,8 +35,7 @@
void dec() throw() {
dcassert(ref>0);
- if ( (Thread::safeDec(ref)) == 0 ) {
- //dcdebug("Smart Object at 0x%08x deleted\n", this);
+ if ( Thread::safeDec(ref) == 0 ) {
delete this;
}
}
Added: dcplusplus/trunk/dcpp/po/ar.po
===================================================================
--- dcplusplus/trunk/dcpp/po/ar.po (rev 0)
+++ dcplusplus/trunk/dcpp/po/ar.po 2008-03-04 23:19:17 UTC (rev 1024)
@@ -0,0 +1,419 @@
+# Arabic translations for the DC++ package.
+# Copyright (C) 2008 The translators
+# This file is distributed under the same license as the DC++ package.
+# <jma...@us...>, 2008.
+#
+msgid ""
+msgstr ""
+"Project-Id-Version: dcpp\n"
+"Report-Msgid-Bugs-To: dcp...@li...\n"
+"POT-Creation-Date: 2008-03-04 23:00+0100\n"
+"Last-Translator: <jma...@us...>\n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=UTF-8\n"
+"Content-Transfer-Encoding: 8bit\n"
+"Plural-Forms: plurals=2; plural=(n != 1);\n"
+
+#: dcpp/Util.cpp:381
+#, c-format, boost-format
+msgid "%'lld B"
+msgstr ""
+
+#: dcpp/Util.cpp:343
+#, c-format, boost-format
+msgid "%.02f GiB"
+msgstr ""
+
+#: dcpp/Util.cpp:339
+#, c-format, boost-format
+msgid "%.02f KiB"
+msgstr ""
+
+#: dcpp/Util.cpp:341
+#, c-format, boost-format
+msgid "%.02f MiB"
+msgstr ""
+
+#: dcpp/Util.cpp:347
+#, c-format, boost-format
+msgid "%.02f PiB"
+msgstr ""
+
+#: dcpp/Util.cpp:345
+#, c-format, boost-format
+msgid "%.02f TiB"
+msgstr ""
+
+#: dcpp/AdcHub.cpp:139
+#, boost-format
+msgid "%1% (%2%) has same CID {%3%} as %4% (%5%), ignoring"
+msgstr ""
+
+#: dcpp/NmdcHub.cpp:281
+#, boost-format
+msgid "%1% (Nick unknown)"
+msgstr ""
+
+#: dcpp/HashManager.cpp:767
+#, boost-format
+msgid ""
+"%1% not shared; calculated CRC32 does not match the one found in SFV file."
+msgstr ""
+
+#: dcpp/QueueManager.cpp:325
+#, boost-format
+msgid "%1% renamed to %2%"
+msgstr ""
+
+#: dcpp/AdcHub.cpp:281
+#, boost-format
+msgid "%1% was kicked by %2%: %3%"
+msgstr ""
+
+#: dcpp/AdcHub.cpp:284
+#, boost-format
+msgid "%1% was kicked: %2%"
+msgstr ""
+
+#: dcpp/DownloadManager.cpp:530
+#, fuzzy, boost-format
+msgid "%1%: File not available"
+msgstr "الملف غير موجود"
+
+#: dcpp/Util.cpp:337
+#, c-format, boost-format
+msgid "%d B"
+msgstr ""
+
+#: dcpp/Util.cpp:377
+#, c-format, boost-format
+msgid "%s B"
+msgstr ""
+
+#: dcpp/QueueManager.cpp:532
+msgid "A file of equal or larger size already exists at the target location"
+msgstr "الملف بنفس الحجم أو أكبر موجود حاليا في المكان المقصود"
+
+#: dcpp/QueueManager.cpp:475
+msgid "A file with a different size already exists in the queue"
+msgstr "الملف ذو الحجم المختلف موجود حاليا في الطابور"
+
+#: dcpp/QueueManager.cpp:478
+msgid "A file with different tth root already exists in the queue"
+msgstr "الملف ذو \"تي تي إتش\" مختلف موجود حاليا في الطابور"
+
+#: dcpp/QueueManager.cpp:442
+msgid "A file with the same hash already exists in your share"
+msgstr "ملف بنفس الهاتش موجود حاليا"
+
+#: dcpp/ConnectionManager.cpp:176
+msgid "All download slots taken"
+msgstr "كل وصلات التحميل مأخوذة"
+
+#: dcpp/DownloadManager.cpp:376
+msgid "CRC32 inconsistency (SFV-Check)"
+msgstr "CRC32 تضارب (SFV-فحص)"
+
+#: dcpp/DownloadManager.cpp:374
+#, fuzzy, boost-format
+msgid "CRC32 inconsistency (SFV-Check) (File: %1%)"
+msgstr "CRC32 تضارب (SFV-فحص)"
+
+#: dcpp/ConnectionManager.cpp:376
+msgid "Certificate not trusted, unable to connect"
+msgstr ""
+
+#: dcpp/Socket.cpp:154 dcpp/ConnectionManager.cpp:182
+#: dcpp/BufferedSocket.cpp:154
+msgid "Connection timeout"
+msgstr "لا يمكن التوصيل"
+
+#: dcpp/DownloadManager.cpp:232
+#, boost-format
+msgid "Could not open target file: %1%"
+msgstr ""
+
+#: dcpp/ShareManager.cpp:418
+msgid "Directory already shared"
+msgstr "المجلد مستخدم حاليا "
+
+#: dcpp/BufferedSocket.cpp:407 dcpp/BufferedSocket.cpp:426
+msgid "Disconnected"
+msgstr "انفصل"
+
+#: dcpp/UploadManager.cpp:450
+#, boost-format
+msgid "Disconnected user leaving the hub: %1%"
+msgstr ""
+
+#: dcpp/DCPlusPlus.cpp:103
+msgid "Download Queue"
+msgstr "طابور التحميل"
+
+#: dcpp/ShareManager.cpp:741
+#, boost-format
+msgid ""
+"Duplicate file will not be shared: %1%%2% (Size: %3% B) Dupe matched "
+"against: %4%%5%"
+msgstr ""
+
+#: dcpp/QueueManager.cpp:545 dcpp/QueueManager.cpp:549
+#, boost-format
+msgid "Duplicate source: %1%"
+msgstr ""
+
+#: dcpp/HashManager.cpp:456
+#, boost-format
+msgid "Error creating hash data file: %1%"
+msgstr ""
+
+#: dcpp/ZUtils.cpp:33 dcpp/ZUtils.cpp:54 dcpp/ZUtils.cpp:76 dcpp/ZUtils.cpp:86
+#: dcpp/BZUtils.cpp:31 dcpp/BZUtils.cpp:52 dcpp/BZUtils.cpp:60
+msgid "Error during compression"
+msgstr "خطا خلال عملية الفك"
+
+#: dcpp/ZUtils.cpp:100 dcpp/ZUtils.cpp:123 dcpp/BZUtils.cpp:72
+#: dcpp/BZUtils.cpp:94 dcpp/BZUtils.cpp:97 dcpp/CryptoManager.cpp:342
+#: dcpp/CryptoManager.cpp:361 dcpp/CryptoManager.cpp:375
+msgid "Error during decompression"
+msgstr "خطأ خلال عملية الفك"
+
+#: dcpp/HashManager.cpp:772
+#, boost-format
+msgid "Error hashing %1%: %2%"
+msgstr ""
+
+#: dcpp/HashManager.cpp:118 dcpp/HashManager.cpp:333
+#, boost-format
+msgid "Error saving hash data: %1%"
+msgstr ""
+
+#: dcpp/CryptoManager.cpp:226 dcpp/CryptoManager.cpp:230
+#: dcpp/CryptoManager.cpp:235 dcpp/CryptoManager.cpp:239
+msgid "Failed to load certificate file"
+msgstr ""
+
+#: dcpp/CryptoManager.cpp:244 dcpp/CryptoManager.cpp:248
+#: dcpp/CryptoManager.cpp:253 dcpp/CryptoManager.cpp:257
+msgid "Failed to load private key"
+msgstr ""
+
+#: dcpp/AdcHub.cpp:206
+msgid "Failed to negotiate base protocol"
+msgstr ""
+
+#: dcpp/Socket.cpp:408
+msgid ""
+"Failed to set up the socks server for UDP relay (check socks address and "
+"port)"
+msgstr "(افحص عنوان السوكس و البورت) UDP فشل في عمل سوكس سيرفر لحدوث تبادل في "
+
+#: dcpp/ShareManager.cpp:776
+#, fuzzy, boost-format
+msgid "File list refresh failed: %1%"
+msgstr "تجديد قائمة الملفات انتهت"
+
+#: dcpp/ShareManager.cpp:820
+msgid "File list refresh finished"
+msgstr "تجديد قائمة الملفات انتهت"
+
+#: dcpp/ShareManager.cpp:756
+msgid ""
+"File list refresh in progress, please wait for it to finish before trying to "
+"refresh again"
+msgstr ""
+
+#: dcpp/ShareManager.cpp:798
+msgid "File list refresh initiated"
+msgstr "تجديد قائمة الملفات بدأت"
+
+#: dcpp/DirectoryListing.cpp:102
+msgid "File not available"
+msgstr "الملف غير موجود"
+
+#: dcpp/HashManager.cpp:89
+#, boost-format
+msgid "Finished hashing: %1%"
+msgstr ""
+
+#: dcpp/HashManager.cpp:87
+#, boost-format
+msgid "Finished hashing: %1% (%2%/s)"
+msgstr ""
+
+#: dcpp/DownloadManager.cpp:308
+msgid "Full tree does not match TTH root"
+msgstr "السلسلة المحملة لا تتوافق مع \"تي تي إتش\" الرئيسي"
+
+#: dcpp/CryptoManager.cpp:219
+msgid "Generated new TLS certificate"
+msgstr ""
+
+#: dcpp/DCPlusPlus.cpp:97
+msgid "Hash database"
+msgstr "تحديث قاعدة البيانات"
+
+#: dcpp/HashManager.cpp:677
+msgid "Hash database rebuilt"
+msgstr "تحديث قائمة البيانات انتهت"
+
+#: dcpp/HashManager.cpp:73 dcpp/HashManager.cpp:277
+#, boost-format
+msgid "Hashing failed: %1%"
+msgstr ""
+
+#: dcpp/AdcHub.cpp:212
+msgid ""
+"Hub probably uses an old version of ADC, please encourage the owner to "
+"upgrade"
+msgstr ""
+
+#: dcpp/DownloadManager.cpp:220
+msgid "Invalid size"
+msgstr ""
+
+#: dcpp/QueueManager.cpp:515 dcpp/QueueManager.cpp:523
+msgid ""
+"Invalid target file (missing directory, check default download directory "
+"setting)"
+msgstr "الملف المراد خاطيء - مجلد مفقود ، تفقد خواص المجلد للتحميل"
+
+#: dcpp/FavoriteManager.cpp:438
+msgid "Kick user(s)"
+msgstr "فصل المستخدم "
+
+#: dcpp/ConnectionManager.cpp:230
+#, boost-format
+msgid "Listening socket failed (you need to restart %1%): %2%"
+msgstr ""
+
+#: dcpp/BufferedSocket.cpp:261
+msgid "Maximum command length exceeded"
+msgstr ""
+
+#: dcpp/DownloadManager.cpp:280
+msgid "More data was sent than was expected"
+msgstr "معلومات أكثر قد أرسلت ، على غير المتوقع"
+
+#: dcpp/ShareManager.cpp:403
+msgid "No directory specified"
+msgstr "لم يتم تحديد مجلد معين"
+
+#: dcpp/DownloadManager.cpp:419
+msgid "No slots available"
+msgstr "لا توجد وصلة خالية"
+
+#: dcpp/AdcHub.cpp:576
+#, boost-format
+msgid "Not listening for connections - please restart %1%"
+msgstr ""
+
+#: dcpp/Transfer.cpp:63 dcpp/Transfer.cpp:67 dcpp/ClientManager.cpp:115
+#: dcpp/SearchManager.cpp:267 dcpp/SearchManager.cpp:329
+#: dcpp/SearchManager.cpp:331
+msgid "Offline"
+msgstr "غير متصل"
+
+#: dcpp/FavoriteManager.cpp:442
+msgid "Redirect user(s)"
+msgstr "تحويل المستخدمين"
+
+#: dcpp/ShareManager.cpp:421
+msgid "Remove all subdirectories before adding this one"
+msgstr "حذف كل المجلدات الثانوية قبل إضافة هذا"
+
+#: dcpp/DownloadManager.cpp:225
+#, fuzzy
+msgid "Response does not match request"
+msgstr "السلسلة المحملة لا تتوافق مع \"تي تي إتش\" الرئيسي"
+
+#: dcpp/DCPlusPlus.cpp:100
+msgid "Shared Files"
+msgstr "الملفات المساهم فيها"
+
+#: dcpp/Socket.cpp:269 dcpp/Socket.cpp:273
+msgid "Socks server authentication failed (bad login / password?)"
+msgstr "(نظام التعريف بالهوية للسوكس فشلت (أسم غير صحيح / كلمة السر"
+
+#: dcpp/CryptoManager.cpp:221
+#, boost-format
+msgid "TLS disabled, failed to generate certificate: %1%"
+msgstr ""
+
+#: dcpp/CryptoManager.cpp:211
+msgid "TLS disabled, no certificate file set"
+msgstr ""
+
+#: dcpp/QueueManager.cpp:510 dcpp/QueueManager.cpp:519
+msgid "Target filename too long"
+msgstr "الملف المقصود كبير جدا"
+
+#: dcpp/QueueManager.cpp:798
+msgid "Target removed"
+msgstr ""
+
+#: dcpp/Socket.cpp:255
+msgid "The socks server doesn't support login / password authentication"
+msgstr "هذا السوكس لا يدعم التعريف بالهوية لأسم / و كلمة السر"
+
+#: dcpp/Socket.cpp:162 dcpp/Socket.cpp:173 dcpp/Socket.cpp:206
+#: dcpp/Socket.cpp:210 dcpp/Socket.cpp:237 dcpp/Socket.cpp:252
+msgid "The socks server failed establish a connection"
+msgstr "لقد فشل السوكس في عمل الإتصال"
+
+#: dcpp/Socket.cpp:241
+msgid "The socks server requires authentication"
+msgstr "هذا السوكس يحتاج إلى العريف بالهوية"
+
+#: dcpp/ShareManager.cpp:407
+msgid "The temporary download directory cannot be shared"
+msgstr "المجلد الموقت للتحميل لا يمكن استخدامه"
+
+#: dcpp/QueueManager.cpp:465
+msgid "This file is already queued"
+msgstr ""
+
+#: dcpp/Thread.cpp:34 dcpp/Thread.cpp:42
+msgid "Unable to create thread"
+msgstr "عدم القدرة على خلق الوصلة"
+
+#: dcpp/QueueManager.cpp:995
+#, boost-format
+msgid "Unable to open filelist: %1%"
+msgstr ""
+
+#: dcpp/HashManager.cpp:131
+#, fuzzy
+msgid "Unable to read hash data file"
+msgstr "عدم القدرة على خلق الوصلة"
+
+#: dcpp/QueueManager.cpp:327
+#, fuzzy, boost-format
+msgid "Unable to rename %1%: %2%"
+msgstr "عدم القدرة على خلق الوصلة"
+
+#: dcpp/UploadManager.cpp:149
+#, boost-format
+msgid "Unable to send file %1%: %2%"
+msgstr ""
+
+#: dcpp/Socket.cpp:54
+#, c-format, boost-format
+msgid "Unknown error: 0x%1$x"
+msgstr ""
+
+#: dcpp/ShareManager.cpp:426 dcpp/ShareManager.cpp:468
+msgid "Virtual directory name already exists"
+msgstr "اسم مجلد وهمي موجود حاليا"
+
+#: dcpp/QueueManager.cpp:412 dcpp/QueueManager.cpp:436
+msgid "You're trying to download from yourself!"
+msgstr "!أنت تحاول التحميل من عند نفسك"
+
+#: dcpp/SettingsManager.cpp:156
+msgid "downloaded from"
+msgstr ""
+
+#: dcpp/SettingsManager.cpp:157
+msgid "uploaded to"
+msgstr ""
Added: dcplusplus/trunk/dcpp/po/bg.po
===================================================================
--- dcplusplus/trunk/dcpp/po/bg.po (rev 0)
+++ dcplusplus/trunk/dcpp/po/bg.po 2008-03-04 23:19:17 UTC (rev 1024)
@@ -0,0 +1,425 @@
+# Bulgarian translations for the DC++ package.
+# Copyright (C) 2008 The translators
+# This file is distributed under the same license as the DC++ package.
+# <gre...@us...>, 2008.
+#
+msgid ""
+msgstr ""
+"Project-Id-Version: dcpp\n"
+"Report-Msgid-Bugs-To: dcp...@li...\n"
+"POT-Creation-Date: 2008-03-04 23:00+0100\n"
+"Last-Translator: <gre...@us...>\n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=UTF-8\n"
+"Content-Transfer-Encoding: 8bit\n"
+"Plural-Forms: plurals=2; plural=(n != 1);\n"
+
+#: dcpp/Util.cpp:381
+#, c-format, boost-format
+msgid "%'lld B"
+msgstr ""
+
+#: dcpp/Util.cpp:343
+#, c-format, boost-format
+msgid "%.02f GiB"
+msgstr ""
+
+#: dcpp/Util.cpp:339
+#, c-format, boost-format
+msgid "%.02f KiB"
+msgstr ""
+
+#: dcpp/Util.cpp:341
+#, c-format, boost-format
+msgid "%.02f MiB"
+msgstr ""
+
+#: dcpp/Util.cpp:347
+#, c-format, boost-format
+msgid "%.02f PiB"
+msgstr ""
+
+#: dcpp/Util.cpp:345
+#, c-format, boost-format
+msgid "%.02f TiB"
+msgstr ""
+
+#: dcpp/AdcHub.cpp:139
+#, boost-format
+msgid "%1% (%2%) has same CID {%3%} as %4% (%5%), ignoring"
+msgstr ""
+
+#: dcpp/NmdcHub.cpp:281
+#, boost-format
+msgid "%1% (Nick unknown)"
+msgstr ""
+
+#: dcpp/HashManager.cpp:767
+#, boost-format
+msgid ""
+"%1% not shared; calculated CRC32 does not match the one found in SFV file."
+msgstr ""
+
+#: dcpp/QueueManager.cpp:325
+#, boost-format
+msgid "%1% renamed to %2%"
+msgstr ""
+
+#: dcpp/AdcHub.cpp:281
+#, boost-format
+msgid "%1% was kicked by %2%: %3%"
+msgstr ""
+
+#: dcpp/AdcHub.cpp:284
+#, boost-format
+msgid "%1% was kicked: %2%"
+msgstr ""
+
+#: dcpp/DownloadManager.cpp:530
+#, fuzzy, boost-format
+msgid "%1%: File not available"
+msgstr "Файлът не е достъпен."
+
+#: dcpp/Util.cpp:337
+#, c-format, boost-format
+msgid "%d B"
+msgstr ""
+
+#: dcpp/Util.cpp:377
+#, c-format, boost-format
+msgid "%s B"
+msgstr ""
+
+#: dcpp/QueueManager.cpp:532
+msgid "A file of equal or larger size already exists at the target location"
+msgstr ""
+"Файл със същата или по-голяма големина вече съществува в мястото - цел!"
+
+#: dcpp/QueueManager.cpp:475
+msgid "A file with a different size already exists in the queue"
+msgstr "Файл с различна големина вече съществува в опашката."
+
+#: dcpp/QueueManager.cpp:478
+msgid "A file with different tth root already exists in the queue"
+msgstr "Файл с различен TTH root вече съществува в опашката."
+
+#: dcpp/QueueManager.cpp:442
+msgid "A file with the same hash already exists in your share"
+msgstr "Файл със същия хеш вече съществува в споделеното от вас."
+
+#: dcpp/ConnectionManager.cpp:176
+msgid "All download slots taken"
+msgstr "Всички даунлоад-места са заети!"
+
+#: dcpp/DownloadManager.cpp:376
+msgid "CRC32 inconsistency (SFV-Check)"
+msgstr "CRC32 грешка (SFV-Проверка)"
+
+#: dcpp/DownloadManager.cpp:374
+#, fuzzy, boost-format
+msgid "CRC32 inconsistency (SFV-Check) (File: %1%)"
+msgstr "CRC32 грешка (SFV-Проверка)"
+
+#: dcpp/ConnectionManager.cpp:376
+msgid "Certificate not trusted, unable to connect"
+msgstr ""
+
+#: dcpp/Socket.cpp:154 dcpp/ConnectionManager.cpp:182
+#: dcpp/BufferedSocket.cpp:154
+msgid "Connection timeout"
+msgstr "Времето за свързване изтече!"
+
+#: dcpp/DownloadManager.cpp:232
+#, boost-format
+msgid "Could not open target file: %1%"
+msgstr ""
+
+#: dcpp/ShareManager.cpp:418
+msgid "Directory already shared"
+msgstr "Папката вече е споделена!"
+
+#: dcpp/BufferedSocket.cpp:407 dcpp/BufferedSocket.cpp:426
+msgid "Disconnected"
+msgstr "Изключен/Прекъснат"
+
+#: dcpp/UploadManager.cpp:450
+#, boost-format
+msgid "Disconnected user leaving the hub: %1%"
+msgstr ""
+
+#: dcpp/DCPlusPlus.cpp:103
+msgid "Download Queue"
+msgstr "Опашка за сваляните файлове"
+
+#: dcpp/ShareManager.cpp:741
+#, boost-format
+msgid ""
+"Duplicate file will not be shared: %1%%2% (Size: %3% B) Dupe matched "
+"against: %4%%5%"
+msgstr ""
+
+#: dcpp/QueueManager.cpp:545 dcpp/QueueManager.cpp:549
+#, boost-format
+msgid "Duplicate source: %1%"
+msgstr ""
+
+#: dcpp/HashManager.cpp:456
+#, fuzzy, boost-format
+msgid "Error creating hash data file: %1%"
+msgstr "Грешка при разчитането на файла с хешовете!"
+
+#: dcpp/ZUtils.cpp:33 dcpp/ZUtils.cpp:54 dcpp/ZUtils.cpp:76 dcpp/ZUtils.cpp:86
+#: dcpp/BZUtils.cpp:31 dcpp/BZUtils.cpp:52 dcpp/BZUtils.cpp:60
+msgid "Error during compression"
+msgstr "Грешка при компресирането."
+
+#: dcpp/ZUtils.cpp:100 dcpp/ZUtils.cpp:123 dcpp/BZUtils.cpp:72
+#: dcpp/BZUtils.cpp:94 dcpp/BZUtils.cpp:97 dcpp/CryptoManager.cpp:342
+#: dcpp/CryptoManager.cpp:361 dcpp/CryptoManager.cpp:375
+msgid "Error during decompression"
+msgstr "Грешка при декомпресия"
+
+#: dcpp/HashManager.cpp:772
+#, boost-format
+msgid "Error hashing %1%: %2%"
+msgstr ""
+
+#: dcpp/HashManager.cpp:118 dcpp/HashManager.cpp:333
+#, boost-format
+msgid "Error saving hash data: %1%"
+msgstr ""
+
+#: dcpp/CryptoManager.cpp:226 dcpp/CryptoManager.cpp:230
+#: dcpp/CryptoManager.cpp:235 dcpp/CryptoManager.cpp:239
+msgid "Failed to load certificate file"
+msgstr ""
+
+#: dcpp/CryptoManager.cpp:244 dcpp/CryptoManager.cpp:248
+#: dcpp/CryptoManager.cpp:253 dcpp/CryptoManager.cpp:257
+msgid "Failed to load private key"
+msgstr ""
+
+#: dcpp/AdcHub.cpp:206
+msgid "Failed to negotiate base protocol"
+msgstr ""
+
+#: dcpp/Socket.cpp:408
+msgid ""
+"Failed to set up the socks server for UDP relay (check socks address and "
+"port)"
+msgstr ""
+"Грешка при настройването на Socks сървъра за UDP relay (Провери адреса и "
+"порта на сървъра!)"
+
+#: dcpp/ShareManager.cpp:776
+#, fuzzy, boost-format
+msgid "File list refresh failed: %1%"
+msgstr "Опресняването на листата с файлове завърши."
+
+#: dcpp/ShareManager.cpp:820
+msgid "File list refresh finished"
+msgstr "Опресняването на листата с файлове завърши."
+
+#: dcpp/ShareManager.cpp:756
+msgid ""
+"File list refresh in progress, please wait for it to finish before trying to "
+"refresh again"
+msgstr ""
+"В момента тече опресняване на листата с файловете, моля изчакайте преди да "
+"изискате ново опресняване."
+
+#: dcpp/ShareManager.cpp:798
+msgid "File list refresh initiated"
+msgstr "Започва опресняване на листата с файлове."
+
+#: dcpp/DirectoryListing.cpp:102
+msgid "File not available"
+msgstr "Файлът не е достъпен."
+
+#: dcpp/HashManager.cpp:89
+#, boost-format
+msgid "Finished hashing: %1%"
+msgstr ""
+
+#: dcpp/HashManager.cpp:87
+#, boost-format
+msgid "Finished hashing: %1% (%2%/s)"
+msgstr ""
+
+#: dcpp/DownloadManager.cpp:308
+msgid "Full tree does not match TTH root"
+msgstr "Файловото дърво не съвпада с този TTH псевдоним"
+
+#: dcpp/CryptoManager.cpp:219
+msgid "Generated new TLS certificate"
+msgstr ""
+
+#: dcpp/DCPlusPlus.cpp:97
+msgid "Hash database"
+msgstr "База-Данни от хешове"
+
+#: dcpp/HashManager.cpp:677
+msgid "Hash database rebuilt"
+msgstr "Базата-Данни с хешовете построена наново."
+
+#: dcpp/HashManager.cpp:73 dcpp/HashManager.cpp:277
+#, boost-format
+msgid "Hashing failed: %1%"
+msgstr ""
+
+#: dcpp/AdcHub.cpp:212
+msgid ""
+"Hub probably uses an old version of ADC, please encourage the owner to "
+"upgrade"
+msgstr ""
+
+#: dcpp/DownloadManager.cpp:220
+msgid "Invalid size"
+msgstr ""
+
+#: dcpp/QueueManager.cpp:515 dcpp/QueueManager.cpp:523
+msgid ""
+"Invalid target file (missing directory, check default download directory "
+"setting)"
+msgstr ""
+"Невалиден файл-цел (липсваща папка, провери папката за сваляния по "
+"подразбиране)"
+
+#: dcpp/FavoriteManager.cpp:438
+msgid "Kick user(s)"
+msgstr "Изхвърли потребител(и)"
+
+#: dcpp/ConnectionManager.cpp:230
+#, boost-format
+msgid "Listening socket failed (you need to restart %1%): %2%"
+msgstr ""
+
+#: dcpp/BufferedSocket.cpp:261
+msgid "Maximum command length exceeded"
+msgstr ""
+
+#: dcpp/DownloadManager.cpp:280
+msgid "More data was sent than was expected"
+msgstr "Повечето данни бяха изпратени, отколкото се очакваше"
+
+#: dcpp/ShareManager.cpp:403
+msgid "No directory specified"
+msgstr "Не е определена папка"
+
+#: dcpp/DownloadManager.cpp:419
+msgid "No slots available"
+msgstr "Няма слотове на разположение"
+
+#: dcpp/AdcHub.cpp:576
+#, boost-format
+msgid "Not listening for connections - please restart %1%"
+msgstr ""
+
+#: dcpp/Transfer.cpp:63 dcpp/Transfer.cpp:67 dcpp/ClientManager.cpp:115
+#: dcpp/SearchManager.cpp:267 dcpp/SearchManager.cpp:329
+#: dcpp/SearchManager.cpp:331
+msgid "Offline"
+msgstr "Офлайн"
+
+#: dcpp/FavoriteManager.cpp:442
+msgid "Redirect user(s)"
+msgstr "Пренасочи потребител(и)"
+
+#: dcpp/ShareManager.cpp:421
+msgid "Remove all subdirectories before adding this one"
+msgstr "Премахни всички подпапки преди да добавиш тази"
+
+#: dcpp/DownloadManager.cpp:225
+#, fuzzy
+msgid "Response does not match request"
+msgstr "Файловото дърво не съвпада с този TTH псевдоним"
+
+#: dcpp/DCPlusPlus.cpp:100
+msgid "Shared Files"
+msgstr "Споделени файлове"
+
+#: dcpp/Socket.cpp:269 dcpp/Socket.cpp:273
+msgid "Socks server authentication failed (bad login / password?)"
+msgstr "Грешка при свързването със Socks сървъра. (грешни име/парола?)"
+
+#: dcpp/CryptoManager.cpp:221
+#, boost-format
+msgid "TLS disabled, failed to generate certificate: %1%"
+msgstr ""
+
+#: dcpp/CryptoManager.cpp:211
+msgid "TLS disabled, no certificate file set"
+msgstr ""
+
+#: dcpp/QueueManager.cpp:510 dcpp/QueueManager.cpp:519
+msgid "Target filename too long"
+msgstr "Прекалено дълго име на файла-цел"
+
+#: dcpp/QueueManager.cpp:798
+msgid "Target removed"
+msgstr ""
+
+#: dcpp/Socket.cpp:255
+msgid "The socks server doesn't support login / password authentication"
+msgstr "Socks сървъра не поддържа автентикация с име и парола."
+
+#: dcpp/Socket.cpp:162 dcpp/Socket.cpp:173 dcpp/Socket.cpp:206
+#: dcpp/Socket.cpp:210 dcpp/Socket.cpp:237 dcpp/Socket.cpp:252
+msgid "The socks server failed establish a connection"
+msgstr "Socks сървъра не можа да установи връзка."
+
+#: dcpp/Socket.cpp:241
+msgid "The socks server requires authentication"
+msgstr "Socks сървъра изисква автентикация (име и парола)."
+
+#: dcpp/ShareManager.cpp:407
+msgid "The temporary download directory cannot be shared"
+msgstr "Временната директория не може да бъде споделяна!"
+
+#: dcpp/QueueManager.cpp:465
+msgid "This file is already queued"
+msgstr ""
+
+#: dcpp/Thread.cpp:34 dcpp/Thread.cpp:42
+msgid "Unable to create thread"
+msgstr "Грешка при thread-създаването"
+
+#: dcpp/QueueManager.cpp:995
+#, boost-format
+msgid "Unable to open filelist: %1%"
+msgstr ""
+
+#: dcpp/HashManager.cpp:131
+msgid "Unable to read hash data file"
+msgstr "Грешка при разчитането на файла с хешовете!"
+
+#: dcpp/QueueManager.cpp:327
+#, fuzzy, boost-format
+msgid "Unable to rename %1%: %2%"
+msgstr "Грешка при thread-създаването"
+
+#: dcpp/UploadManager.cpp:149
+#, boost-format
+msgid "Unable to send file %1%: %2%"
+msgstr ""
+
+#: dcpp/Socket.cpp:54
+#, c-format, boost-format
+msgid "Unknown error: 0x%1$x"
+msgstr ""
+
+#: dcpp/ShareManager.cpp:426 dcpp/ShareManager.cpp:468
+msgid "Virtual directory name already exists"
+msgstr "Съществува такова име на вирт. папка"
+
+#: dcpp/QueueManager.cpp:412 dcpp/QueueManager.cpp:436
+msgid "You're trying to download from yourself!"
+msgstr "Пробваш се да сваляш от самия себе си файлове!"
+
+#: dcpp/SettingsManager.cpp:156
+msgid "downloaded from"
+msgstr ""
+
+#: dcpp/SettingsManager.cpp:157
+msgid "uploaded to"
+msgstr ""
Added: dcplusplus/trunk/dcpp/po/bs.po
===================================================================
--- dcplusplus/trunk/dcpp/po/bs.po (rev 0)
+++ dcplusplus/trunk/dcpp/po/bs.po 2008-03-04 23:19:17 UTC (rev 1024)
@@ -0,0 +1,423 @@
+# Bosnian translations for the DC++ package.
+# Copyright (C) 2008 The translators
+# This file is distributed under the same license as the DC++ package.
+# <mi...@us...>, 2008.
+#
+msgid ""
+msgstr ""
+"Project-Id-Version: dcpp\n"
+"Report-Msgid-Bugs-To: dcp...@li...\n"
+"POT-Creation-Date: 2008-03-04 23:00+0100\n"
+"Last-Translator: <mi...@us...>\n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=UTF-8\n"
+...
[truncated message content] |
|
From: <arn...@us...> - 2008-03-05 21:23:09
|
Revision: 1026
http://dcplusplus.svn.sourceforge.net/dcplusplus/?rev=1026&view=rev
Author: arnetheduck
Date: 2008-03-05 13:23:05 -0800 (Wed, 05 Mar 2008)
Log Message:
-----------
Patches
Modified Paths:
--------------
dcplusplus/trunk/changelog.txt
dcplusplus/trunk/dcpp/File.cpp
dcplusplus/trunk/dcpp/Util.cpp
dcplusplus/trunk/win32/AboutDlg.cpp
Modified: dcplusplus/trunk/changelog.txt
===================================================================
--- dcplusplus/trunk/changelog.txt 2008-03-04 23:26:14 UTC (rev 1025)
+++ dcplusplus/trunk/changelog.txt 2008-03-05 21:23:05 UTC (rev 1026)
@@ -40,8 +40,8 @@
* [L#195209] Fixed tabbing in hub windows (poy)
* [L#195209] Fixed Ctrl+F that opens favorite hubs (poy)
* [L#194696] Fixed small memory leak
+* Some unix compile fixes (thanks pavel andreev and yakov suraev)
-
-- 0.704 2007-12-14 --
* Hub lists added to utilize Coral's distributed network (ullner)
* Use system header arrows on common controls 6+ (thanks poy)
Modified: dcplusplus/trunk/dcpp/File.cpp
===================================================================
--- dcplusplus/trunk/dcpp/File.cpp 2008-03-04 23:26:14 UTC (rev 1025)
+++ dcplusplus/trunk/dcpp/File.cpp 2008-03-05 21:23:05 UTC (rev 1026)
@@ -225,7 +225,7 @@
throw FileException("Invalid file type");
}
- h = open(fileName.c_str(), m, S_IRUSR | S_IWUSR | S_IRGRP | S_IWGRP | S_IROTH | S_IWOTH);
+ h = open(filename.c_str(), m, S_IRUSR | S_IWUSR | S_IRGRP | S_IWGRP | S_IROTH | S_IWOTH);
if(h == -1)
throw FileException("Could not open file");
}
@@ -350,7 +350,7 @@
// This doesn't assume all bytes are written in one write call, it is a bit safer
void File::copyFile(const string& source, const string& target) throw(FileException) {
const size_t BUF_SIZE = 64 * 1024;
- boost::scoped_array<char> buffer(BUF_SIZE);
+ boost::scoped_array<char> buffer(new char[BUF_SIZE]);
size_t count = BUF_SIZE;
File src(source, File::READ, 0);
File dst(target, File::WRITE, File::CREATE | File::TRUNCATE);
Modified: dcplusplus/trunk/dcpp/Util.cpp
===================================================================
--- dcplusplus/trunk/dcpp/Util.cpp 2008-03-04 23:26:14 UTC (rev 1025)
+++ dcplusplus/trunk/dcpp/Util.cpp 2008-03-05 21:23:05 UTC (rev 1026)
@@ -379,7 +379,7 @@
#else
char buf[128];
snprintf(buf, sizeof(buf), _("%'lld B"), (long long int)aBytes);
- return string(buf)
+ return string(buf);
#endif
}
@@ -714,14 +714,17 @@
#else
// will this give wide representations for %a and %A?
// surely win32 can't have a leg up on linux/unixen in this area. - Todd
- AutoArray<char> buf(bufsize);
+ string buf(bufsize, 0);
- while(!strftime(buf, bufsize-1, msg.c_str(), loc)) {
+ buf.resize(strftime(&buf[0], bufsize-1, msg.c_str(), loc));
+
+ while(buf.empty()) {
bufsize+=64;
- buf = new char[bufsize];
+ buf.resize(bufsize);
+ buf.resize(strftime(&buf[0], bufsize-1, msg.c_str(), loc));
}
- return Text::toUtf8(string(buf));
+ return Text::toUtf8(buf);
#endif
}
return Util::emptyString;
Modified: dcplusplus/trunk/win32/AboutDlg.cpp
===================================================================
--- dcplusplus/trunk/win32/AboutDlg.cpp 2008-03-04 23:26:14 UTC (rev 1025)
+++ dcplusplus/trunk/win32/AboutDlg.cpp 2008-03-05 21:23:05 UTC (rev 1026)
@@ -41,7 +41,7 @@
"bsod, sulan, jonathan stone, tim burton, izzzo, guitarm, paka, nils maier, jens oknelid, yoji, "
"krzysztof tyszecki, poison, mikejj, pur, bigmuscle, martin, jove, bart vullings, "
"steven sheehy, tobias nygren, poy, dorian, stephan hohe, mafa_45, mikael eman, james ross,"
-"stanislav maslovski, david grundberg. "
+"stanislav maslovski, david grundberg, pavel andreev, yakov suraev. "
"Keep it coming!";
AboutDlg::AboutDlg(SmartWin::Widget* parent) : WidgetFactory<SmartWin::WidgetModalDialog>(parent) {
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <arn...@us...> - 2008-03-06 18:14:10
|
Revision: 1027
http://dcplusplus.svn.sourceforge.net/dcplusplus/?rev=1027&view=rev
Author: arnetheduck
Date: 2008-03-06 10:13:47 -0800 (Thu, 06 Mar 2008)
Log Message:
-----------
Fix empty pm crash
Modified Paths:
--------------
dcplusplus/trunk/changelog.txt
dcplusplus/trunk/dcpp/NmdcHub.cpp
Modified: dcplusplus/trunk/changelog.txt
===================================================================
--- dcplusplus/trunk/changelog.txt 2008-03-05 21:23:05 UTC (rev 1026)
+++ dcplusplus/trunk/changelog.txt 2008-03-06 18:13:47 UTC (rev 1027)
@@ -41,6 +41,7 @@
* [L#195209] Fixed Ctrl+F that opens favorite hubs (poy)
* [L#194696] Fixed small memory leak
* Some unix compile fixes (thanks pavel andreev and yakov suraev)
+* [L#199192] [NMDC] Fixed crash on empty private message
-- 0.704 2007-12-14 --
* Hub lists added to utilize Coral's distributed network (ullner)
Modified: dcplusplus/trunk/dcpp/NmdcHub.cpp
===================================================================
--- dcplusplus/trunk/dcpp/NmdcHub.cpp 2008-03-05 21:23:05 UTC (rev 1026)
+++ dcplusplus/trunk/dcpp/NmdcHub.cpp 2008-03-06 18:13:47 UTC (rev 1027)
@@ -690,10 +690,14 @@
if(fromNick.empty())
return;
+ if(param.size() < j + 2) {
+ return;
+ }
+ string msg = param.substr(j + 2);
+
OnlineUser* replyTo = findUser(rtNick);
OnlineUser* from = findUser(fromNick);
- string msg = param.substr(j + 2);
if(replyTo == NULL || from == NULL) {
if(replyTo == 0) {
// Assume it's from the hub
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <zou...@us...> - 2008-03-07 00:20:21
|
Revision: 1029
http://dcplusplus.svn.sourceforge.net/dcplusplus/?rev=1029&view=rev
Author: zouzou123gen
Date: 2008-03-06 16:20:14 -0800 (Thu, 06 Mar 2008)
Log Message:
-----------
fix DL queue crash, don't sub-class scrollbar menus
Modified Paths:
--------------
dcplusplus/trunk/changelog.txt
dcplusplus/trunk/win32/QueueFrame.cpp
dcplusplus/trunk/win32/QueueFrame.h
dcplusplus/trunk/win32/WidgetTextBox.cpp
Modified: dcplusplus/trunk/changelog.txt
===================================================================
--- dcplusplus/trunk/changelog.txt 2008-03-06 19:43:56 UTC (rev 1028)
+++ dcplusplus/trunk/changelog.txt 2008-03-07 00:20:14 UTC (rev 1029)
@@ -42,6 +42,7 @@
* [L#194696] Fixed small memory leak
* Some unix compile fixes (thanks pavel andreev and yakov suraev)
* [L#199192] [NMDC] Fixed crash on empty private message
+* [L#198416] Fixed crash when closing the download queue (poy)
-- 0.704 2007-12-14 --
* Hub lists added to utilize Coral's distributed network (ullner)
Modified: dcplusplus/trunk/win32/QueueFrame.cpp
===================================================================
--- dcplusplus/trunk/win32/QueueFrame.cpp 2008-03-06 19:43:56 UTC (rev 1028)
+++ dcplusplus/trunk/win32/QueueFrame.cpp 2008-03-07 00:20:14 UTC (rev 1029)
@@ -70,17 +70,20 @@
{
dirs = SmartWin::WidgetCreator<WidgetDirs>::create(this, WinUtil::Seeds::treeView);
addWidget(dirs);
+ paned->setFirst(dirs);
+
dirs->setColor(WinUtil::textColor, WinUtil::bgColor);
dirs->setNormalImageList(WinUtil::fileImages);
+
dirs->onSelectionChanged(std::tr1::bind(&QueueFrame::updateFiles, this));
dirs->onKeyDown(std::tr1::bind(&QueueFrame::handleKeyDownDirs, this, _1));
dirs->onContextMenu(std::tr1::bind(&QueueFrame::handleDirsContextMenu, this, _1));
- paned->setFirst(dirs);
}
{
files = SmartWin::WidgetCreator<WidgetFiles>::create(this, WinUtil::Seeds::listView);
- addWidget(files);
+ addWidget(files, true);
+ paned->setSecond(files);
files->setSmallImageList(WinUtil::fileImages);
files->createColumns(WinUtil::getStrings(columnNames));
@@ -92,8 +95,6 @@
files->onKeyDown(std::tr1::bind(&QueueFrame::handleKeyDownFiles, this, _1));
files->onSelectionChanged(std::tr1::bind(&QueueFrame::updateStatus, this));
files->onContextMenu(std::tr1::bind(&QueueFrame::handleFilesContextMenu, this, _1));
-
- paned->setSecond(files);
}
{
@@ -111,7 +112,7 @@
QueueManager::getInstance()->unlockQueue();
QueueManager::getInstance()->addListener(this);
- onSpeaker(std::tr1::bind(&QueueFrame::handleSpeaker, this, _1, _2));
+ onSpeaker(std::tr1::bind(&QueueFrame::handleSpeaker, this));
updateStatus();
layout();
@@ -121,7 +122,7 @@
}
-HRESULT QueueFrame::handleSpeaker(WPARAM, LPARAM) {
+LRESULT QueueFrame::handleSpeaker() {
TaskQueue::List t;
tasks.get(t);
Modified: dcplusplus/trunk/win32/QueueFrame.h
===================================================================
--- dcplusplus/trunk/win32/QueueFrame.h 2008-03-06 19:43:56 UTC (rev 1028)
+++ dcplusplus/trunk/win32/QueueFrame.h 2008-03-07 00:20:14 UTC (rev 1029)
@@ -27,12 +27,10 @@
#include <dcpp/FastAlloc.h>
#include <dcpp/QueueManagerListener.h>
#include <dcpp/QueueItem.h>
-#include <dcpp/ClientListener.h>
#include "resource.h"
-class QueueFrame :
- public StaticFrame<QueueFrame>,
- private ClientListener,
+class QueueFrame :
+ public StaticFrame<QueueFrame>,
private QueueManagerListener
{
public:
@@ -277,12 +275,12 @@
bool addUsers(const WidgetMenuPtr& menu, unsigned int startId, void (QueueFrame::*handler)(const UserPtr&), const QueueItem::SourceList& sources, bool offline);
void layout();
- HRESULT handleSpeaker(WPARAM wParam, LPARAM lParam);
+
bool preClosing();
void postClosing();
void handleShowTreeClicked();
-
+ LRESULT handleSpeaker();
void handleMove();
void handleRemove();
void handlePriority(unsigned id);
Modified: dcplusplus/trunk/win32/WidgetTextBox.cpp
===================================================================
--- dcplusplus/trunk/win32/WidgetTextBox.cpp 2008-03-06 19:43:56 UTC (rev 1028)
+++ dcplusplus/trunk/win32/WidgetTextBox.cpp 2008-03-07 00:20:14 UTC (rev 1029)
@@ -25,6 +25,12 @@
WidgetTextBox::WidgetTextBox( SmartWin::Widget * parent ) : BaseType(parent), menuOpened(false) {
this->onLeftMouseDblClick(std::tr1::bind(&WidgetTextBox::handleLeftDblClick, this, _1));
+ /*
+ * unlike usual controls, the edit control doesn't send WM_INITMENUPOPUP when its standard
+ * menu is being opened. however, we can catch WM_ENTERIDLE and sub-class the menu then.
+ *
+ * method described by Jeff Partch in http://groups.google.com/group/microsoft.public.vc.mfc/msg/5e07dc60be3d3baa
+ */
this->onRaw(std::tr1::bind(&WidgetTextBox::handleEnterIdle, this, _1, _2), SmartWin::Message(WM_ENTERIDLE));
this->onRaw(std::tr1::bind(&WidgetTextBox::handleMenuSelect, this, _1, _2), SmartWin::Message(WM_MENUSELECT));
}
@@ -35,8 +41,27 @@
LRESULT WidgetTextBox::handleEnterIdle(WPARAM wParam, LPARAM lParam) {
if(wParam == MSGF_MENU && !menuOpened) {
- menu = SmartWin::WidgetCreator<SmartWin::WidgetMenu>::attach(this, reinterpret_cast<HMENU>(::SendMessage(reinterpret_cast<HWND>(lParam), MN_GETHMENU, 0, 0)), WinUtil::Seeds::menu);
- menuOpened = true;
+ GUITHREADINFO gti = { sizeof(gti) };
+ if(::GetGUIThreadInfo(NULL, >i) && (gti.flags & GUI_POPUPMENUMODE) && (gti.hwndMenuOwner == handle())) {
+ HMENU hMenu = reinterpret_cast<HMENU>(::SendMessage(reinterpret_cast<HWND>(lParam), MN_GETHMENU, 0, 0));
+ if(!hMenu)
+ return 0;
+
+ menuOpened = true;
+
+ {
+ // make sure we're not sub-classing the scrollbar context menu...
+ DWORD messagePos = ::GetMessagePos();
+ POINT pt = { GET_X_LPARAM(messagePos), GET_Y_LPARAM(messagePos) };
+ SCROLLBARINFO sbi = { sizeof(sbi) };
+ if(::GetScrollBarInfo(handle(), OBJID_HSCROLL, &sbi) && ::PtInRect(&sbi.rcScrollBar, pt))
+ return 0;
+ if(::GetScrollBarInfo(handle(), OBJID_VSCROLL, &sbi) && ::PtInRect(&sbi.rcScrollBar, pt))
+ return 0;
+ }
+
+ menu = SmartWin::WidgetCreator<SmartWin::WidgetMenu>::attach(this, hMenu, WinUtil::Seeds::menu);
+ }
}
return 0;
}
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <arn...@us...> - 2008-03-07 23:02:07
|
Revision: 1030
http://dcplusplus.svn.sourceforge.net/dcplusplus/?rev=1030&view=rev
Author: arnetheduck
Date: 2008-03-07 15:01:59 -0800 (Fri, 07 Mar 2008)
Log Message:
-----------
Clean up socket thread handling, hopefully fixing network crash
Modified Paths:
--------------
dcplusplus/trunk/dcpp/AdcHub.cpp
dcplusplus/trunk/dcpp/AdcHub.h
dcplusplus/trunk/dcpp/BufferedSocket.cpp
dcplusplus/trunk/dcpp/BufferedSocket.h
dcplusplus/trunk/dcpp/Client.cpp
dcplusplus/trunk/dcpp/Client.h
dcplusplus/trunk/dcpp/ClientManager.cpp
dcplusplus/trunk/dcpp/ClientManager.h
dcplusplus/trunk/dcpp/NmdcHub.cpp
dcplusplus/trunk/dcpp/NmdcHub.h
dcplusplus/trunk/dcpp/Speaker.h
dcplusplus/trunk/dcpp/Thread.h
dcplusplus/trunk/dcpp/stdinc.h
dcplusplus/trunk/win32/AspectStatus.h
dcplusplus/trunk/win32/DirectoryListingFrame.cpp
dcplusplus/trunk/win32/TypedTreeView.h
dcplusplus/trunk/win32/UsersFrame.cpp
dcplusplus/trunk/win32/WinUtil.cpp
Modified: dcplusplus/trunk/dcpp/AdcHub.cpp
===================================================================
--- dcplusplus/trunk/dcpp/AdcHub.cpp 2008-03-07 00:20:14 UTC (rev 1029)
+++ dcplusplus/trunk/dcpp/AdcHub.cpp 2008-03-07 23:01:59 UTC (rev 1030)
@@ -204,7 +204,7 @@
if(!baseOk) {
fire(ClientListener::StatusMessage(), this, _("Failed to negotiate base protocol"));
- socket->disconnect(false);
+ disconnect(false);
return;
} else if(!tigrOk) {
oldPassword = true;
@@ -441,6 +441,7 @@
udp.writeTo(ip, port, command);
} catch(const SocketException& e) {
dcdebug("AdcHub::sendUDP: write failed: %s\n", e.getError().c_str());
+ udp.close();
}
}
Modified: dcplusplus/trunk/dcpp/AdcHub.h
===================================================================
--- dcplusplus/trunk/dcpp/AdcHub.h 2008-03-07 00:20:14 UTC (rev 1029)
+++ dcplusplus/trunk/dcpp/AdcHub.h 2008-03-07 23:01:59 UTC (rev 1030)
@@ -21,8 +21,7 @@
#include "Client.h"
#include "AdcCommand.h"
-#include "TimerManager.h"
-#include "User.h"
+#include "Socket.h"
namespace dcpp {
Modified: dcplusplus/trunk/dcpp/BufferedSocket.cpp
===================================================================
--- dcplusplus/trunk/dcpp/BufferedSocket.cpp 2008-03-07 00:20:14 UTC (rev 1029)
+++ dcplusplus/trunk/dcpp/BufferedSocket.cpp 2008-03-07 23:01:59 UTC (rev 1030)
@@ -34,18 +34,18 @@
// Polling is used for tasks...should be fixed...
#define POLL_TIMEOUT 250
-BufferedSocket::BufferedSocket(char aSeparator) throw() :
-separator(aSeparator), mode(MODE_LINE), filterIn(NULL),
-dataBytes(0), rollback(0), failed(false), sock(0), disconnecting(false)
+BufferedSocket::BufferedSocket(char aSeparator) throw(ThreadException) :
+separator(aSeparator), mode(MODE_LINE), dataBytes(0), rollback(0), disconnecting(false),
+state(STARTING)
{
+ start();
+
Thread::safeInc(sockets);
}
volatile long BufferedSocket::sockets = 0;
BufferedSocket::~BufferedSocket() throw() {
- delete sock;
- delete filterIn;
Thread::safeDec(sockets);
}
@@ -55,89 +55,66 @@
return;
}
- if (mode == MODE_ZPIPE) {
- // should not happen!
- if (filterIn) {
- delete filterIn;
- filterIn = NULL;
- }
- }
-
- mode = aMode;
switch (aMode) {
case MODE_LINE:
rollback = aRollback;
break;
case MODE_ZPIPE:
- filterIn = new UnZFilter;
+ filterIn = std::auto_ptr<UnZFilter>(new UnZFilter);
break;
case MODE_DATA:
break;
}
+ mode = aMode;
}
-void BufferedSocket::accept(const Socket& srv, bool secure, bool allowUntrusted) throw(SocketException, ThreadException) {
- dcassert(!sock);
- try {
- dcdebug("BufferedSocket::accept() %p\n", (void*)this);
- sock = secure ? CryptoManager::getInstance()->getServerSocket(allowUntrusted) : new Socket;
+void BufferedSocket::setSocket(std::auto_ptr<Socket> s) {
+ dcassert(!sock.get());
+ if(SETTING(SOCKET_IN_BUFFER) > 0)
+ s->setSocketOpt(SO_RCVBUF, SETTING(SOCKET_IN_BUFFER));
+ if(SETTING(SOCKET_OUT_BUFFER) > 0)
+ s->setSocketOpt(SO_SNDBUF, SETTING(SOCKET_OUT_BUFFER));
+ s->setBlocking(false);
- sock->accept(srv);
- if(SETTING(SOCKET_IN_BUFFER) > 0)
- sock->setSocketOpt(SO_RCVBUF, SETTING(SOCKET_IN_BUFFER));
- if(SETTING(SOCKET_OUT_BUFFER) > 0)
- sock->setSocketOpt(SO_SNDBUF, SETTING(SOCKET_OUT_BUFFER));
- sock->setBlocking(false);
+ inbuf.resize(s->getSocketOptInt(SO_RCVBUF));
+
+ sock = s;
+}
- inbuf.resize(sock->getSocketOptInt(SO_RCVBUF));
+void BufferedSocket::accept(const Socket& srv, bool secure, bool allowUntrusted) throw(SocketException) {
+ dcdebug("BufferedSocket::accept() %p\n", (void*)this);
+
+ std::auto_ptr<Socket> s(secure ? CryptoManager::getInstance()->getServerSocket(allowUntrusted) : new Socket);
- // This lock prevents the shutdown task from being added and executed before we're done initializing the socket
- Lock l(cs);
- start();
- addTask(ACCEPTED, 0);
- } catch(...) {
- delete sock;
- sock = 0;
- throw;
- }
-
+ s->accept(srv);
+
+ setSocket(s);
+
+ Lock l(cs);
+ addTask(ACCEPTED, 0);
}
-void BufferedSocket::connect(const string& aAddress, uint16_t aPort, bool secure, bool allowUntrusted, bool proxy) throw(SocketException, ThreadException) {
- dcassert(!sock);
+void BufferedSocket::connect(const string& aAddress, uint16_t aPort, bool secure, bool allowUntrusted, bool proxy) throw(SocketException) {
+ dcdebug("BufferedSocket::connect() %p\n", (void*)this);
+ std::auto_ptr<Socket> s(secure ? CryptoManager::getInstance()->getClientSocket(allowUntrusted) : new Socket);
- try {
- dcdebug("BufferedSocket::connect() %p\n", (void*)this);
- sock = secure ? CryptoManager::getInstance()->getClientSocket(allowUntrusted) : new Socket;
-
- sock->create();
- sock->bind(0, SETTING(BIND_ADDRESS));
- if(SETTING(SOCKET_IN_BUFFER) >= 1024)
- sock->setSocketOpt(SO_RCVBUF, SETTING(SOCKET_IN_BUFFER));
- if(SETTING(SOCKET_OUT_BUFFER) >= 1024)
- sock->setSocketOpt(SO_SNDBUF, SETTING(SOCKET_OUT_BUFFER));
- sock->setBlocking(false);
-
- inbuf.resize(sock->getSocketOptInt(SO_RCVBUF));
-
- Lock l(cs);
- start();
- addTask(CONNECT, new ConnectInfo(aAddress, aPort, proxy && (SETTING(OUTGOING_CONNECTIONS) == SettingsManager::OUTGOING_SOCKS5)));
- } catch(...) {
- delete sock;
- sock = 0;
- throw;
- }
-
+ s->create();
+ s->bind(0, SETTING(BIND_ADDRESS));
+
+ setSocket(s);
+
+ Lock l(cs);
+ addTask(CONNECT, new ConnectInfo(aAddress, aPort, proxy && (SETTING(OUTGOING_CONNECTIONS) == SettingsManager::OUTGOING_SOCKS5)));
}
#define CONNECT_TIMEOUT 30000
void BufferedSocket::threadConnect(const string& aAddr, uint16_t aPort, bool proxy) throw(SocketException) {
+ dcassert(state == STARTING);
+
dcdebug("threadConnect %s:%d\n", aAddr.c_str(), (int)aPort);
- dcassert(sock);
- if(!sock)
- return;
fire(BufferedSocketListener::Connecting());
+
+ state = RUNNING;
uint64_t startTime = GET_TICK();
if(proxy) {
@@ -159,9 +136,9 @@
}
void BufferedSocket::threadRead() throw(SocketException) {
- dcassert(sock);
- if(!sock)
+ if(state != RUNNING)
return;
+
int left = sock->read(&inbuf[0], (int)inbuf.size());
if(left == -1) {
// EWOULDBLOCK, no data received...
@@ -177,8 +154,7 @@
while (left > 0) {
switch (mode) {
- case MODE_ZPIPE:
- if(filterIn) {
+ case MODE_ZPIPE: {
const int BUF_SIZE = 1024;
// Special to autodetect nmdc connections...
string::size_type pos = 0;
@@ -263,9 +239,11 @@
}
void BufferedSocket::threadSendFile(InputStream* file) throw(Exception) {
- dcassert(sock);
- if(!sock || disconnecting)
+ if(state != RUNNING)
return;
+
+ if(disconnecting)
+ return;
dcassert(file != NULL);
size_t sockSize = (size_t)sock->getSocketOptInt(SO_SNDBUF);
size_t bufSize = max(sockSize, (size_t)64*1024);
@@ -347,8 +325,7 @@
}
void BufferedSocket::write(const char* aBuf, size_t aLen) throw() {
- dcassert(sock);
- if(!sock)
+ if(!sock.get())
return;
Lock l(cs);
if(writeBuf.empty())
@@ -358,9 +335,9 @@
}
void BufferedSocket::threadSendData() {
- dcassert(sock);
- if(!sock)
+ if(state != RUNNING)
return;
+
{
Lock l(cs);
if(writeBuf.empty())
@@ -394,59 +371,46 @@
}
bool BufferedSocket::checkEvents() {
- while(isConnected() ? taskSem.wait(0) : taskSem.wait()) {
- pair<Tasks, TaskData*> p;
+ while(state == RUNNING ? taskSem.wait(0) : taskSem.wait()) {
+ pair<Tasks, std::tr1::shared_ptr<TaskData> > p;
{
Lock l(cs);
dcassert(tasks.size() > 0);
p = tasks.front();
tasks.erase(tasks.begin());
}
- if(failed && p.first != SHUTDOWN) {
- dcdebug("BufferedSocket: New command when already failed: %d\n", p.first);
- fail(_("Disconnected"));
- delete p.second;
- continue;
+
+ if(p.first == SHUTDOWN) {
+ return false;
+ } else if(p.first == UPDATED) {
+ fire(BufferedSocketListener::Updated());
}
-
- try {
- switch(p.first) {
- case SEND_DATA:
- threadSendData(); break;
- case SEND_FILE:
- threadSendFile(((SendFileInfo*)p.second)->stream); break;
- case CONNECT:
- {
- ConnectInfo* ci = (ConnectInfo*)p.second;
- threadConnect(ci->addr, ci->port, ci->proxy);
- break;
- }
- case DISCONNECT:
- if(isConnected())
- fail(_("Disconnected"));
- break;
- case SHUTDOWN:
- return false;
- case ACCEPTED:
- break;
- case UPDATED:
- fire(BufferedSocketListener::Updated());
- break;
+
+ if(state == STARTING) {
+ if(p.first == CONNECT) {
+ ConnectInfo* ci = static_cast<ConnectInfo*>(p.second.get());
+ threadConnect(ci->addr, ci->port, ci->proxy);
+ } else if(p.first == ACCEPTED) {
+ state = RUNNING;
+ } else {
+ dcdebug("%d unexpected in STARTING state", p.first);
}
- } catch(...) {
- delete p.second;
- throw;
+ } else if(state == RUNNING) {
+ if(p.first == SEND_DATA) {
+ threadSendData();
+ } else if(p.first == SEND_FILE) {
+ threadSendFile(static_cast<SendFileInfo*>(p.second.get())->stream); break;
+ } else if(p.first == DISCONNECT) {
+ fail(_("Disconnected"));
+ } else {
+ dcdebug("%d unexpected in RUNNING state", p.first);
+ }
}
- delete p.second;
}
return true;
}
void BufferedSocket::checkSocket() {
- dcassert(sock);
- if(!sock)
- return;
-
int waitFor = sock->wait(POLL_TIMEOUT, Socket::WAIT_READ);
if(waitFor & Socket::WAIT_READ) {
@@ -462,9 +426,12 @@
dcdebug("BufferedSocket::run() start %p\n", (void*)this);
while(true) {
try {
- if(!checkEvents())
+ if(!checkEvents()) {
break;
- checkSocket();
+ }
+ if(state == RUNNING) {
+ checkSocket();
+ }
} catch(const Exception& e) {
fail(e.getError());
}
@@ -475,24 +442,23 @@
}
void BufferedSocket::fail(const string& aError) {
- if(sock) {
- sock->disconnect();
- }
- if(!failed) {
- failed = true;
+ sock->disconnect();
+
+ if(state == RUNNING) {
+ state = FAILED;
fire(BufferedSocketListener::Failed(), aError);
}
}
void BufferedSocket::shutdown() {
- if(sock) {
- Lock l(cs);
- disconnecting = true;
- addTask(SHUTDOWN, 0);
- } else {
- // Socket thread not running yet, disconnect...
- delete this;
- }
+ Lock l(cs);
+ disconnecting = true;
+ addTask(SHUTDOWN, 0);
}
+void BufferedSocket::addTask(Tasks task, TaskData* data) {
+ dcassert(task == SHUTDOWN || sock.get());
+ tasks.push_back(make_pair(task, data)); taskSem.signal();
+}
+
} // namespace dcpp
Modified: dcplusplus/trunk/dcpp/BufferedSocket.h
===================================================================
--- dcplusplus/trunk/dcpp/BufferedSocket.h 2008-03-07 00:20:14 UTC (rev 1029)
+++ dcplusplus/trunk/dcpp/BufferedSocket.h 2008-03-07 23:01:59 UTC (rev 1030)
@@ -29,8 +29,7 @@
namespace dcpp {
-class BufferedSocket : public Speaker<BufferedSocketListener>, public Thread
-{
+class BufferedSocket : public Speaker<BufferedSocketListener>, private Thread {
public:
enum Modes {
MODE_LINE,
@@ -43,7 +42,7 @@
* @param sep Line separator
* @return An unconnected socket
*/
- static BufferedSocket* getSocket(char sep) throw() {
+ static BufferedSocket* getSocket(char sep) throw(ThreadException) {
return new BufferedSocket(sep);
}
@@ -57,8 +56,8 @@
Thread::sleep(100);
}
- void accept(const Socket& srv, bool secure, bool allowUntrusted) throw(SocketException, ThreadException);
- void connect(const string& aAddress, uint16_t aPort, bool secure, bool allowUntrusted, bool proxy) throw(SocketException, ThreadException);
+ void accept(const Socket& srv, bool secure, bool allowUntrusted) throw(SocketException);
+ void connect(const string& aAddress, uint16_t aPort, bool secure, bool allowUntrusted, bool proxy) throw(SocketException);
/** Sets data mode for aBytes bytes. Must be called within onLine. */
void setDataMode(int64_t aBytes = -1) { mode = MODE_DATA; dataBytes = aBytes; }
@@ -70,12 +69,12 @@
void setLineMode(size_t aRollback) { setMode (MODE_LINE, aRollback);}
void setMode(Modes mode, size_t aRollback = 0);
Modes getMode() const { return mode; }
- const string& getIp() const { return sock ? sock->getIp() : Util::emptyString; }
- bool isConnected() const { return sock && sock->isConnected(); }
+ const string& getIp() const { return sock->getIp(); }
+ bool isConnected() const { return sock->isConnected(); }
- bool isSecure() const { return sock && sock->isSecure(); }
- bool isTrusted() const { return sock && sock->isTrusted(); }
- std::string getCipherName() const { return sock ? sock->getCipherName() : Util::emptyString; }
+ bool isSecure() const { return sock->isSecure(); }
+ bool isTrusted() const { return sock->isTrusted(); }
+ std::string getCipherName() const { return sock->getCipherName(); }
void write(const string& aData) { write(aData.data(), aData.length()); }
void write(const char* aBuf, size_t aLen) throw();
@@ -87,7 +86,7 @@
void disconnect(bool graceless = false) throw() { Lock l(cs); if(graceless) disconnecting = true; addTask(DISCONNECT, 0); }
- string getLocalIp() const { return sock ? sock->getLocalIp() : Util::getLocalIp(); }
+ string getLocalIp() const { return sock->getLocalIp(); }
GETSET(char, separator, Separator)
private:
@@ -100,6 +99,12 @@
ACCEPTED,
UPDATED
};
+
+ enum State {
+ STARTING, // Waiting for CONNECT/ACCEPTED/SHUTDOWN
+ RUNNING,
+ FAILED
+ };
struct TaskData {
virtual ~TaskData() { }
@@ -115,30 +120,26 @@
InputStream* stream;
};
- BufferedSocket(char aSeparator) throw();
+ BufferedSocket(char aSeparator) throw(ThreadException);
- // Dummy...
- BufferedSocket(const BufferedSocket&);
- BufferedSocket& operator=(const BufferedSocket&);
-
virtual ~BufferedSocket() throw();
CriticalSection cs;
Semaphore taskSem;
- vector<pair<Tasks, TaskData*> > tasks;
+ deque<pair<Tasks, std::tr1::shared_ptr<TaskData> > > tasks;
Modes mode;
- UnZFilter *filterIn;
+ std::auto_ptr<UnZFilter> filterIn;
int64_t dataBytes;
size_t rollback;
- bool failed;
string line;
ByteVector inbuf;
ByteVector writeBuf;
ByteVector sendBuf;
- Socket* sock;
+ std::auto_ptr<Socket> sock;
+ State state;
bool disconnecting;
virtual int run();
@@ -155,8 +156,9 @@
bool checkEvents();
void checkSocket();
+ void setSocket(std::auto_ptr<Socket> s);
void shutdown();
- void addTask(Tasks task, TaskData* data) { tasks.push_back(make_pair(task, data)); taskSem.signal(); }
+ void addTask(Tasks task, TaskData* data);
};
} // namespace dcpp
Modified: dcplusplus/trunk/dcpp/Client.cpp
===================================================================
--- dcplusplus/trunk/dcpp/Client.cpp 2008-03-07 00:20:14 UTC (rev 1029)
+++ dcplusplus/trunk/dcpp/Client.cpp 2008-03-07 23:01:59 UTC (rev 1030)
@@ -34,7 +34,7 @@
Client::Client(const string& hubURL, char separator_, bool secure_) :
myIdentity(ClientManager::getInstance()->getMe(), 0),
reconnDelay(120), lastActivity(GET_TICK()), registered(false), autoReconnect(false),
- encoding(Text::systemCharset), state(STATE_DISCONNECTED), socket(0),
+ encoding(Text::systemCharset), state(STATE_DISCONNECTED), sock(0),
hubUrl(hubURL), port(0), separator(separator_),
secure(secure_), countType(COUNT_UNCOUNTED)
{
@@ -45,7 +45,7 @@
}
Client::~Client() throw() {
- dcassert(!socket);
+ dcassert(!sock);
// In case we were deleted before we Failed
FavoriteManager::getInstance()->removeUserCommand(getHubUrl());
@@ -60,10 +60,9 @@
}
void Client::shutdown() {
-
- if(socket) {
- BufferedSocket::putSocket(socket);
- socket = 0;
+ if(sock) {
+ BufferedSocket::putSocket(sock);
+ sock = 0;
}
}
@@ -90,8 +89,8 @@
}
void Client::connect() {
- if(socket)
- BufferedSocket::putSocket(socket);
+ if(sock)
+ BufferedSocket::putSocket(sock);
setAutoReconnect(true);
setReconnDelay(120 + Util::rand(0, 60));
@@ -101,13 +100,13 @@
setHubIdentity(Identity());
try {
- socket = BufferedSocket::getSocket(separator);
- socket->addListener(this);
- socket->connect(address, port, secure, BOOLSETTING(ALLOW_UNTRUSTED_HUBS), true);
+ sock = BufferedSocket::getSocket(separator);
+ sock->addListener(this);
+ sock->connect(address, port, secure, BOOLSETTING(ALLOW_UNTRUSTED_HUBS), true);
} catch(const Exception& e) {
- if(socket) {
- BufferedSocket::putSocket(socket);
- socket = 0;
+ if(sock) {
+ BufferedSocket::putSocket(sock);
+ sock = 0;
}
fire(ClientListener::Failed(), this, e.getError());
}
@@ -115,9 +114,18 @@
state = STATE_CONNECTING;
}
+void Client::send(const char* aMessage, size_t aLen) {
+ dcassert(sock);
+ if(!sock)
+ return;
+ updateActivity();
+ sock->write(aMessage, aLen);
+}
+
void Client::on(Connected) throw() {
updateActivity();
- ip = socket->getIp();
+ ip = sock->getIp();
+ localIp = sock->getLocalIp();
fire(ClientListener::Connected(), this);
state = STATE_PROTOCOL;
}
@@ -125,13 +133,13 @@
void Client::on(Failed, const string& aLine) throw() {
state = STATE_DISCONNECTED;
FavoriteManager::getInstance()->removeUserCommand(getHubUrl());
- socket->removeListener(this);
+ sock->removeListener(this);
fire(ClientListener::Failed(), this, aLine);
}
void Client::disconnect(bool graceLess) {
- if(socket)
- socket->disconnect(graceLess);
+ if(sock)
+ sock->disconnect(graceLess);
}
void Client::updateCounts(bool aRemove) {
@@ -169,14 +177,12 @@
if(!SETTING(EXTERNAL_IP).empty()) {
return Socket::resolve(SETTING(EXTERNAL_IP));
}
+
+ if(localIp.empty()) {
+ return Util::getLocalIp();
+ }
- string lip;
- if(socket)
- lip = socket->getLocalIp();
-
- if(lip.empty())
- return Util::getLocalIp();
- return lip;
+ return localIp;
}
void Client::on(Line, const string& /*aLine*/) throw() {
Modified: dcplusplus/trunk/dcpp/Client.h
===================================================================
--- dcplusplus/trunk/dcpp/Client.h 2008-03-07 00:20:14 UTC (rev 1029)
+++ dcplusplus/trunk/dcpp/Client.h 2008-03-07 23:01:59 UTC (rev 1030)
@@ -16,12 +16,14 @@
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/
-#if !defined(CLIENT_H)
-#define CLIENT_H
+#ifndef DCPLUSPLUS_DCPP_CLIENT_H
+#define DCPLUSPLUS_DCPP_CLIENT_H
+#include "forward.h"
+
#include "User.h"
-#include "BufferedSocket.h"
-#include "SettingsManager.h"
+#include "Speaker.h"
+#include "BufferedSocketListener.h"
#include "TimerManager.h"
#include "ClientListener.h"
@@ -52,7 +54,7 @@
virtual string escape(string const& str) const { return str; }
- bool isConnected() const { return socket && socket->isConnected(); }
+ bool isConnected() const { return state != STATE_DISCONNECTED; }
bool isOp() const { return getMyIdentity().isOp(); }
uint16_t getPort() const { return port; }
@@ -80,13 +82,7 @@
void shutdown();
void send(const string& aMessage) { send(aMessage.c_str(), aMessage.length()); }
- void send(const char* aMessage, size_t aLen) {
- dcassert(socket);
- if(!socket)
- return;
- updateActivity();
- socket->write(aMessage, aLen);
- }
+ void send(const char* aMessage, size_t aLen);
string getMyNick() const { return getMyIdentity().getNick(); }
string getHubName() const { return getHubIdentity().getNick().empty() ? getHubUrl() : getHubIdentity().getNick(); }
@@ -129,7 +125,7 @@
STATE_DISCONNECTED, ///< Nothing in particular
} state;
- BufferedSocket* socket;
+ BufferedSocket* sock;
static Counts counts;
Counts lastCounts;
@@ -165,6 +161,7 @@
string hubUrl;
string address;
string ip;
+ string localIp;
uint16_t port;
char separator;
bool secure;
Modified: dcplusplus/trunk/dcpp/ClientManager.cpp
===================================================================
--- dcplusplus/trunk/dcpp/ClientManager.cpp 2008-03-07 00:20:14 UTC (rev 1029)
+++ dcplusplus/trunk/dcpp/ClientManager.cpp 2008-03-07 23:01:59 UTC (rev 1030)
@@ -55,8 +55,6 @@
}
void ClientManager::putClient(Client* aClient) {
- aClient->shutdown();
-
fire(ClientManagerListener::ClientDisconnected(), aClient);
aClient->removeListeners();
@@ -64,6 +62,7 @@
Lock l(cs);
clients.remove(aClient);
}
+ aClient->shutdown();
delete aClient;
}
Modified: dcplusplus/trunk/dcpp/ClientManager.h
===================================================================
--- dcplusplus/trunk/dcpp/ClientManager.h 2008-03-07 00:20:14 UTC (rev 1029)
+++ dcplusplus/trunk/dcpp/ClientManager.h 2008-03-07 23:01:59 UTC (rev 1030)
@@ -25,6 +25,7 @@
#include "Singleton.h"
#include "SettingsManager.h"
#include "User.h"
+#include "Socket.h"
#include "ClientManagerListener.h"
Modified: dcplusplus/trunk/dcpp/NmdcHub.cpp
===================================================================
--- dcplusplus/trunk/dcpp/NmdcHub.cpp 2008-03-07 00:20:14 UTC (rev 1029)
+++ dcplusplus/trunk/dcpp/NmdcHub.cpp 2008-03-07 23:01:59 UTC (rev 1030)
@@ -578,12 +578,12 @@
fire(ClientListener::UserUpdated(), this, u);
}
} else if(cmd == "$ForceMove") {
- socket->disconnect(false);
+ disconnect(false);
fire(ClientListener::Redirect(), this, param);
} else if(cmd == "$HubIsFull") {
fire(ClientListener::HubFull(), this);
} else if(cmd == "$ValidateDenide") { // Mind the spelling...
- socket->disconnect(false);
+ disconnect(false);
fire(ClientListener::NickTaken(), this);
} else if(cmd == "$UserIP") {
if(!param.empty()) {
@@ -729,7 +729,7 @@
} else if(cmd == "$BadPass") {
setPassword(Util::emptyString);
} else if(cmd == "$ZOn") {
- socket->setMode(BufferedSocket::MODE_ZPIPE);
+ sock->setMode(BufferedSocket::MODE_ZPIPE);
} else {
dcassert(cmd[0] == '$');
dcdebug("NmdcHub::onLine Unknown command %s\n", aLine.c_str());
Modified: dcplusplus/trunk/dcpp/NmdcHub.h
===================================================================
--- dcplusplus/trunk/dcpp/NmdcHub.h 2008-03-07 00:20:14 UTC (rev 1029)
+++ dcplusplus/trunk/dcpp/NmdcHub.h 2008-03-07 23:01:59 UTC (rev 1030)
@@ -16,13 +16,13 @@
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/
-#if !defined(NMDC_HUB_H)
-#define NMDC_HUB_H
+#ifndef DCPLUSPLUS_DCPP_NMDC_HUB_H
+#define DCPLUSPLUS_DCPP_NMDC_HUB_H
#include "TimerManager.h"
#include "SettingsManager.h"
-#include "User.h"
+#include "forward.h"
#include "CriticalSection.h"
#include "Text.h"
#include "Client.h"
Modified: dcplusplus/trunk/dcpp/Speaker.h
===================================================================
--- dcplusplus/trunk/dcpp/Speaker.h 2008-03-07 00:20:14 UTC (rev 1029)
+++ dcplusplus/trunk/dcpp/Speaker.h 2008-03-07 23:01:59 UTC (rev 1030)
@@ -16,8 +16,8 @@
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/
-#if !defined(SPEAKER_H)
-#define SPEAKER_H
+#ifndef DCPLUSPLUS_DCPP_SPEAKER_H
+#define DCPLUSPLUS_DCPP_SPEAKER_H
#include "CriticalSection.h"
Modified: dcplusplus/trunk/dcpp/Thread.h
===================================================================
--- dcplusplus/trunk/dcpp/Thread.h 2008-03-07 00:20:14 UTC (rev 1029)
+++ dcplusplus/trunk/dcpp/Thread.h 2008-03-07 23:01:59 UTC (rev 1030)
@@ -16,8 +16,8 @@
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/
-#if !defined(THREAD_H)
-#define THREAD_H
+#ifndef DCPLUSPLUS_DCPP_THREAD_H
+#define DCPLUSPLUS_DCPP_THREAD_H
#ifndef _WIN32
#include <pthread.h>
@@ -31,7 +31,7 @@
STANDARD_EXCEPTION(ThreadException);
-class Thread
+class Thread : private boost::noncopyable
{
public:
#ifdef _WIN32
@@ -124,10 +124,6 @@
protected:
virtual int run() = 0;
-private:
- Thread(const Thread&);
- Thread& operator=(const Thread&);
-
#ifdef _WIN32
HANDLE threadHandle;
DWORD threadId;
Modified: dcplusplus/trunk/dcpp/stdinc.h
===================================================================
--- dcplusplus/trunk/dcpp/stdinc.h 2008-03-07 00:20:14 UTC (rev 1029)
+++ dcplusplus/trunk/dcpp/stdinc.h 2008-03-07 23:01:59 UTC (rev 1030)
@@ -121,6 +121,7 @@
#include <boost/format.hpp>
#include <boost/scoped_array.hpp>
+#include <boost/noncopyable.hpp>
#ifdef _STLPORT_VERSION
Modified: dcplusplus/trunk/win32/AspectStatus.h
===================================================================
--- dcplusplus/trunk/win32/AspectStatus.h 2008-03-07 00:20:14 UTC (rev 1029)
+++ dcplusplus/trunk/win32/AspectStatus.h 2008-03-07 23:01:59 UTC (rev 1030)
@@ -81,10 +81,10 @@
}
void mapWidget(int s, SmartWin::Widget* widget) {
- RECT sr;
- ::SendMessage(status->handle(), SB_GETRECT, s, reinterpret_cast<LPARAM>(&sr));
- ::MapWindowPoints(status->handle(), static_cast<WidgetType*>(this)->handle(), (POINT*)&sr, 2);
- ::MoveWindow(widget->handle(), sr.left, sr.top, sr.right - sr.left, sr.bottom - sr.top, TRUE);
+ POINT p[2];
+ ::SendMessage(status->handle(), SB_GETRECT, s, reinterpret_cast<LPARAM>(p));
+ ::MapWindowPoints(status->handle(), static_cast<WidgetType*>(this)->handle(), (POINT*)p, 2);
+ ::MoveWindow(widget->handle(), p[0].x, p[0].y, p[1].x - p[0].x, p[1].y - p[0].y, TRUE);
}
WidgetStatusBarSectionsPtr status;
Modified: dcplusplus/trunk/win32/DirectoryListingFrame.cpp
===================================================================
--- dcplusplus/trunk/win32/DirectoryListingFrame.cpp 2008-03-07 00:20:14 UTC (rev 1029)
+++ dcplusplus/trunk/win32/DirectoryListingFrame.cpp 2008-03-07 23:01:59 UTC (rev 1030)
@@ -762,7 +762,7 @@
changeDir(dir);
// Check file names in list pane
- for(int i=0; i<files->size(); i++) {
+ for(size_t i = 0; i < files->size(); i++) {
ItemInfo* ii = files->getData(i);
if(ii->type == ItemInfo::FILE) {
if(str.match(ii->file->getName())) {
Modified: dcplusplus/trunk/win32/TypedTreeView.h
===================================================================
--- dcplusplus/trunk/win32/TypedTreeView.h 2008-03-07 00:20:14 UTC (rev 1029)
+++ dcplusplus/trunk/win32/TypedTreeView.h 2008-03-07 23:01:59 UTC (rev 1030)
@@ -76,7 +76,7 @@
ContentType* content = reinterpret_cast<ContentType*>(nm->item.lParam);
const tstring& text = content->getText();
_tcsncpy(nm->item.pszText, text.data(), std::min(text.size(), (size_t)nm->item.cchTextMax));
- if(text.size() < nm->item.cchTextMax) {
+ if(text.size() < static_cast<size_t>(nm->item.cchTextMax)) {
nm->item.pszText[text.size()] = 0;
}
}
Modified: dcplusplus/trunk/win32/UsersFrame.cpp
===================================================================
--- dcplusplus/trunk/win32/UsersFrame.cpp 2008-03-07 00:20:14 UTC (rev 1029)
+++ dcplusplus/trunk/win32/UsersFrame.cpp 2008-03-07 23:01:59 UTC (rev 1030)
@@ -117,7 +117,7 @@
}
void UsersFrame::updateUser(const UserPtr& aUser) {
- for(int i = 0; i < users->size(); ++i) {
+ for(size_t i = 0; i < users->size(); ++i) {
UserInfo *ui = users->getData(i);
if(ui->user == aUser) {
ui->columns[COLUMN_SEEN] = aUser->isOnline() ? T_("Online") : Text::toT(Util::formatTime("%Y-%m-%d %H:%M", FavoriteManager::getInstance()->getLastSeen(aUser)));
@@ -127,7 +127,7 @@
}
void UsersFrame::removeUser(const FavoriteUser& aUser) {
- for(int i = 0; i < users->size(); ++i) {
+ for(size_t i = 0; i < users->size(); ++i) {
UserInfo *ui = users->getData(i);
if(ui->user == aUser.getUser()) {
users->erase(i);
Modified: dcplusplus/trunk/win32/WinUtil.cpp
===================================================================
--- dcplusplus/trunk/win32/WinUtil.cpp 2008-03-07 00:20:14 UTC (rev 1029)
+++ dcplusplus/trunk/win32/WinUtil.cpp 2008-03-07 23:01:59 UTC (rev 1030)
@@ -120,7 +120,7 @@
}
// Const so that noone else will change them after they've been initialized
- SmartWin::WidgetButton::Seed& xbutton = const_cast<SmartWin::WidgetButton::Seed&>(Seeds::button);
+ //SmartWin::WidgetButton::Seed& xbutton = const_cast<SmartWin::WidgetButton::Seed&>(Seeds::button);
SmartWin::WidgetComboBox::Seed& xcomboBoxEdit = const_cast<SmartWin::WidgetComboBox::Seed&>(Seeds::comboBoxEdit);
SmartWin::WidgetComboBox::Seed& xcomboBoxStatic = const_cast<SmartWin::WidgetComboBox::Seed&>(Seeds::comboBoxStatic);
SmartWin::WidgetListView::Seed& xlistView = const_cast<SmartWin::WidgetListView::Seed&>(Seeds::listView);
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <zou...@us...> - 2008-03-10 05:59:19
|
Revision: 1033
http://dcplusplus.svn.sourceforge.net/dcplusplus/?rev=1033&view=rev
Author: zouzou123gen
Date: 2008-03-09 06:59:38 -0700 (Sun, 09 Mar 2008)
Log Message:
-----------
2 more translatable strings
Modified Paths:
--------------
dcplusplus/trunk/dcpp/BufferedSocket.cpp
dcplusplus/trunk/win32/CommandDlg.cpp
dcplusplus/trunk/win32/CommandDlg.h
Modified: dcplusplus/trunk/dcpp/BufferedSocket.cpp
===================================================================
--- dcplusplus/trunk/dcpp/BufferedSocket.cpp 2008-03-08 09:44:38 UTC (rev 1032)
+++ dcplusplus/trunk/dcpp/BufferedSocket.cpp 2008-03-09 13:59:38 UTC (rev 1033)
@@ -145,7 +145,7 @@
return;
} else if(left == 0) {
// This socket has been closed...
- throw SocketException(("Connection closed"));
+ throw SocketException(_("Connection closed"));
}
string::size_type pos = 0;
// always uncompressed data
Modified: dcplusplus/trunk/win32/CommandDlg.cpp
===================================================================
--- dcplusplus/trunk/win32/CommandDlg.cpp 2008-03-08 09:44:38 UTC (rev 1032)
+++ dcplusplus/trunk/win32/CommandDlg.cpp 2008-03-09 13:59:38 UTC (rev 1033)
@@ -52,7 +52,7 @@
{
onInitDialog(std::tr1::bind(&CommandDlg::handleInitDialog, this));
onFocus(std::tr1::bind(&CommandDlg::handleFocus, this));
- onRaw(std::tr1::bind(&CommandDlg::handleHelp, this, _1, _2), SmartWin::Message(WM_HELP));
+ onRaw(std::tr1::bind(&CommandDlg::handleHelp, this), SmartWin::Message(WM_HELP));
}
CommandDlg::~CommandDlg() {
@@ -200,7 +200,7 @@
void CommandDlg::handleOKClicked() {
name = nameBox->getText();
if((type != 0) && (name.empty() || commandBox->getText().empty())) {
- createMessageBox().show(_T("Name and command must not be empty"), _T(APPNAME) _T(" ") _T(VERSIONSTRING), WidgetMessageBox::BOX_OK, WidgetMessageBox::BOX_ICONEXCLAMATION);
+ createMessageBox().show(T_("Name and command must not be empty"), _T(APPNAME) _T(" ") _T(VERSIONSTRING), WidgetMessageBox::BOX_OK, WidgetMessageBox::BOX_ICONEXCLAMATION);
return;
}
@@ -274,7 +274,7 @@
}
}
-LRESULT CommandDlg::handleHelp(WPARAM wParam, LPARAM lParam) {
+LRESULT CommandDlg::handleHelp() {
HtmlHelp(handle(), WinUtil::getHelpFile().c_str(), HH_HELP_CONTEXT, IDD_UCPAGE);
return 0;
}
Modified: dcplusplus/trunk/win32/CommandDlg.h
===================================================================
--- dcplusplus/trunk/win32/CommandDlg.h 2008-03-08 09:44:38 UTC (rev 1032)
+++ dcplusplus/trunk/win32/CommandDlg.h 2008-03-09 13:59:38 UTC (rev 1033)
@@ -36,8 +36,6 @@
tstring getCommand() { return command; }
tstring getHub() { return hub; }
- LRESULT handleHelp(WPARAM wParam, LPARAM lParam);
-
private:
WidgetRadioButtonPtr separator;
WidgetRadioButtonPtr raw;
@@ -63,8 +61,8 @@
bool handleInitDialog();
void handleFocus();
+ LRESULT handleHelp();
void handleTypeChanged();
-
void handleOKClicked();
void handleHelpClicked();
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <arn...@us...> - 2008-03-12 21:41:14
|
Revision: 1036
http://dcplusplus.svn.sourceforge.net/dcplusplus/?rev=1036&view=rev
Author: arnetheduck
Date: 2008-03-12 14:40:53 -0700 (Wed, 12 Mar 2008)
Log Message:
-----------
Rename to simplified chinese locale
Modified Paths:
--------------
dcplusplus/trunk/DCPlusPlus.nsi
dcplusplus/trunk/release.sh
Added Paths:
-----------
dcplusplus/trunk/dcpp/po/zh_CN.po
dcplusplus/trunk/mingwm10.dll
dcplusplus/trunk/win32/po/zh_CN.po
Removed Paths:
-------------
dcplusplus/trunk/dcpp/po/zh.po
dcplusplus/trunk/win32/po/zh.po
Modified: dcplusplus/trunk/DCPlusPlus.nsi
===================================================================
--- dcplusplus/trunk/DCPlusPlus.nsi 2008-03-12 20:53:16 UTC (rev 1035)
+++ dcplusplus/trunk/DCPlusPlus.nsi 2008-03-12 21:40:53 UTC (rev 1036)
@@ -62,6 +62,7 @@
File "License.txt"
File "LICENSE-GeoIP.txt"
File "LICENSE-OpenSSL.txt"
+ File "mingwm10.dll"
File "magnet.exe"
; Remove opencow just in case we're upgrading
Delete "$INSTDIR\opencow.dll"
Deleted: dcplusplus/trunk/dcpp/po/zh.po
===================================================================
--- dcplusplus/trunk/dcpp/po/zh.po 2008-03-12 20:53:16 UTC (rev 1035)
+++ dcplusplus/trunk/dcpp/po/zh.po 2008-03-12 21:40:53 UTC (rev 1036)
@@ -1,419 +0,0 @@
-# Chinese translations for the DC++ package.
-# Copyright (C) 2008 The translators
-# This file is distributed under the same license as the DC++ package.
-# <fen...@us...>, 2008.
-#
-msgid ""
-msgstr ""
-"Project-Id-Version: dcpp\n"
-"Report-Msgid-Bugs-To: dcp...@li...\n"
-"POT-Creation-Date: 2008-03-04 23:00+0100\n"
-"Last-Translator: <fen...@us...>\n"
-"MIME-Version: 1.0\n"
-"Content-Type: text/plain; charset=UTF-8\n"
-"Content-Transfer-Encoding: 8bit\n"
-"Plural-Forms: plurals=2; plural=(n != 1);\n"
-
-#: dcpp/Util.cpp:381
-#, c-format, boost-format
-msgid "%'lld B"
-msgstr ""
-
-#: dcpp/Util.cpp:343
-#, c-format, boost-format
-msgid "%.02f GiB"
-msgstr ""
-
-#: dcpp/Util.cpp:339
-#, c-format, boost-format
-msgid "%.02f KiB"
-msgstr ""
-
-#: dcpp/Util.cpp:341
-#, c-format, boost-format
-msgid "%.02f MiB"
-msgstr ""
-
-#: dcpp/Util.cpp:347
-#, c-format, boost-format
-msgid "%.02f PiB"
-msgstr ""
-
-#: dcpp/Util.cpp:345
-#, c-format, boost-format
-msgid "%.02f TiB"
-msgstr ""
-
-#: dcpp/AdcHub.cpp:139
-#, boost-format
-msgid "%1% (%2%) has same CID {%3%} as %4% (%5%), ignoring"
-msgstr ""
-
-#: dcpp/NmdcHub.cpp:281
-#, boost-format
-msgid "%1% (Nick unknown)"
-msgstr ""
-
-#: dcpp/HashManager.cpp:767
-#, boost-format
-msgid ""
-"%1% not shared; calculated CRC32 does not match the one found in SFV file."
-msgstr ""
-
-#: dcpp/QueueManager.cpp:325
-#, boost-format
-msgid "%1% renamed to %2%"
-msgstr ""
-
-#: dcpp/AdcHub.cpp:281
-#, boost-format
-msgid "%1% was kicked by %2%: %3%"
-msgstr ""
-
-#: dcpp/AdcHub.cpp:284
-#, boost-format
-msgid "%1% was kicked: %2%"
-msgstr ""
-
-#: dcpp/DownloadManager.cpp:530
-#, fuzzy, boost-format
-msgid "%1%: File not available"
-msgstr "文件不存在"
-
-#: dcpp/Util.cpp:337
-#, c-format, boost-format
-msgid "%d B"
-msgstr ""
-
-#: dcpp/Util.cpp:377
-#, c-format, boost-format
-msgid "%s B"
-msgstr ""
-
-#: dcpp/QueueManager.cpp:532
-msgid "A file of equal or larger size already exists at the target location"
-msgstr "一个相等或更大的文件已经存在于下载目录中"
-
-#: dcpp/QueueManager.cpp:475
-msgid "A file with a different size already exists in the queue"
-msgstr "存在大小不同的同名文件"
-
-#: dcpp/QueueManager.cpp:478
-msgid "A file with different tth root already exists in the queue"
-msgstr "队列中已经有一个不同 tth root 的文件"
-
-#: dcpp/QueueManager.cpp:442
-msgid "A file with the same hash already exists in your share"
-msgstr "在你的共享中已经有一个相同hash值的文件了"
-
-#: dcpp/ConnectionManager.cpp:176
-msgid "All download slots taken"
-msgstr "对方所有上传通道都已被占用"
-
-#: dcpp/DownloadManager.cpp:376
-msgid "CRC32 inconsistency (SFV-Check)"
-msgstr "CRC32 出错(SFV-Check)"
-
-#: dcpp/DownloadManager.cpp:374
-#, fuzzy, boost-format
-msgid "CRC32 inconsistency (SFV-Check) (File: %1%)"
-msgstr "CRC32 出错(SFV-Check)"
-
-#: dcpp/ConnectionManager.cpp:376
-msgid "Certificate not trusted, unable to connect"
-msgstr ""
-
-#: dcpp/Socket.cpp:154 dcpp/ConnectionManager.cpp:182
-#: dcpp/BufferedSocket.cpp:154
-msgid "Connection timeout"
-msgstr "连接超时"
-
-#: dcpp/DownloadManager.cpp:232
-#, boost-format
-msgid "Could not open target file: %1%"
-msgstr ""
-
-#: dcpp/ShareManager.cpp:418
-msgid "Directory already shared"
-msgstr "目录已经共享"
-
-#: dcpp/BufferedSocket.cpp:407 dcpp/BufferedSocket.cpp:426
-msgid "Disconnected"
-msgstr "连接中断"
-
-#: dcpp/UploadManager.cpp:450
-#, boost-format
-msgid "Disconnected user leaving the hub: %1%"
-msgstr ""
-
-#: dcpp/DCPlusPlus.cpp:103
-msgid "Download Queue"
-msgstr "下载队列"
-
-#: dcpp/ShareManager.cpp:741
-#, boost-format
-msgid ""
-"Duplicate file will not be shared: %1%%2% (Size: %3% B) Dupe matched "
-"against: %4%%5%"
-msgstr ""
-
-#: dcpp/QueueManager.cpp:545 dcpp/QueueManager.cpp:549
-#, boost-format
-msgid "Duplicate source: %1%"
-msgstr ""
-
-#: dcpp/HashManager.cpp:456
-#, boost-format
-msgid "Error creating hash data file: %1%"
-msgstr ""
-
-#: dcpp/ZUtils.cpp:33 dcpp/ZUtils.cpp:54 dcpp/ZUtils.cpp:76 dcpp/ZUtils.cpp:86
-#: dcpp/BZUtils.cpp:31 dcpp/BZUtils.cpp:52 dcpp/BZUtils.cpp:60
-msgid "Error during compression"
-msgstr "压缩过程发生错误"
-
-#: dcpp/ZUtils.cpp:100 dcpp/ZUtils.cpp:123 dcpp/BZUtils.cpp:72
-#: dcpp/BZUtils.cpp:94 dcpp/BZUtils.cpp:97 dcpp/CryptoManager.cpp:342
-#: dcpp/CryptoManager.cpp:361 dcpp/CryptoManager.cpp:375
-msgid "Error during decompression"
-msgstr "解压缩出错"
-
-#: dcpp/HashManager.cpp:772
-#, boost-format
-msgid "Error hashing %1%: %2%"
-msgstr ""
-
-#: dcpp/HashManager.cpp:118 dcpp/HashManager.cpp:333
-#, boost-format
-msgid "Error saving hash data: %1%"
-msgstr ""
-
-#: dcpp/CryptoManager.cpp:226 dcpp/CryptoManager.cpp:230
-#: dcpp/CryptoManager.cpp:235 dcpp/CryptoManager.cpp:239
-msgid "Failed to load certificate file"
-msgstr ""
-
-#: dcpp/CryptoManager.cpp:244 dcpp/CryptoManager.cpp:248
-#: dcpp/CryptoManager.cpp:253 dcpp/CryptoManager.cpp:257
-msgid "Failed to load private key"
-msgstr ""
-
-#: dcpp/AdcHub.cpp:206
-msgid "Failed to negotiate base protocol"
-msgstr ""
-
-#: dcpp/Socket.cpp:408
-msgid ""
-"Failed to set up the socks server for UDP relay (check socks address and "
-"port)"
-msgstr "socks服务器UDP回应失败(检查socks服务器的地址和端口)"
-
-#: dcpp/ShareManager.cpp:776
-#, fuzzy, boost-format
-msgid "File list refresh failed: %1%"
-msgstr "文件列表已更新"
-
-#: dcpp/ShareManager.cpp:820
-msgid "File list refresh finished"
-msgstr "文件列表已更新"
-
-#: dcpp/ShareManager.cpp:756
-msgid ""
-"File list refresh in progress, please wait for it to finish before trying to "
-"refresh again"
-msgstr ""
-
-#: dcpp/ShareManager.cpp:798
-msgid "File list refresh initiated"
-msgstr "文件列表刷新已开始"
-
-#: dcpp/DirectoryListing.cpp:102
-msgid "File not available"
-msgstr "文件不存在"
-
-#: dcpp/HashManager.cpp:89
-#, boost-format
-msgid "Finished hashing: %1%"
-msgstr ""
-
-#: dcpp/HashManager.cpp:87
-#, boost-format
-msgid "Finished hashing: %1% (%2%/s)"
-msgstr ""
-
-#: dcpp/DownloadManager.cpp:308
-msgid "Full tree does not match TTH root"
-msgstr "已下载的“树”不匹配于 TTH root"
-
-#: dcpp/CryptoManager.cpp:219
-msgid "Generated new TLS certificate"
-msgstr ""
-
-#: dcpp/DCPlusPlus.cpp:97
-msgid "Hash database"
-msgstr "Hash 数据库"
-
-#: dcpp/HashManager.cpp:677
-msgid "Hash database rebuilt"
-msgstr "Hash 数据库已重建"
-
-#: dcpp/HashManager.cpp:73 dcpp/HashManager.cpp:277
-#, boost-format
-msgid "Hashing failed: %1%"
-msgstr ""
-
-#: dcpp/AdcHub.cpp:212
-msgid ""
-"Hub probably uses an old version of ADC, please encourage the owner to "
-"upgrade"
-msgstr ""
-
-#: dcpp/DownloadManager.cpp:220
-msgid "Invalid size"
-msgstr ""
-
-#: dcpp/QueueManager.cpp:515 dcpp/QueueManager.cpp:523
-msgid ""
-"Invalid target file (missing directory, check default download directory "
-"setting)"
-msgstr "目标文件无法访问(目录已被删除, 请检查缺省的下载地址设置)"
-
-#: dcpp/FavoriteManager.cpp:438
-msgid "Kick user(s)"
-msgstr "踢出该用户"
-
-#: dcpp/ConnectionManager.cpp:230
-#, boost-format
-msgid "Listening socket failed (you need to restart %1%): %2%"
-msgstr ""
-
-#: dcpp/BufferedSocket.cpp:261
-msgid "Maximum command length exceeded"
-msgstr ""
-
-#: dcpp/DownloadManager.cpp:280
-msgid "More data was sent than was expected"
-msgstr "发送了比预期更多的数据量"
-
-#: dcpp/ShareManager.cpp:403
-msgid "No directory specified"
-msgstr "没有指定目录"
-
-#: dcpp/DownloadManager.cpp:419
-msgid "No slots available"
-msgstr "对方上传通道都已经满了"
-
-#: dcpp/AdcHub.cpp:576
-#, boost-format
-msgid "Not listening for connections - please restart %1%"
-msgstr ""
-
-#: dcpp/Transfer.cpp:63 dcpp/Transfer.cpp:67 dcpp/ClientManager.cpp:115
-#: dcpp/SearchManager.cpp:267 dcpp/SearchManager.cpp:329
-#: dcpp/SearchManager.cpp:331
-msgid "Offline"
-msgstr "离线"
-
-#: dcpp/FavoriteManager.cpp:442
-msgid "Redirect user(s)"
-msgstr "重定向用户"
-
-#: dcpp/ShareManager.cpp:421
-msgid "Remove all subdirectories before adding this one"
-msgstr "增加前先删除所有子文件夹"
-
-#: dcpp/DownloadManager.cpp:225
-#, fuzzy
-msgid "Response does not match request"
-msgstr "已下载的“树”不匹配于 TTH root"
-
-#: dcpp/DCPlusPlus.cpp:100
-msgid "Shared Files"
-msgstr "共享文件"
-
-#: dcpp/Socket.cpp:269 dcpp/Socket.cpp:273
-msgid "Socks server authentication failed (bad login / password?)"
-msgstr "Socks代理鉴权失败 (用户名/密码错误?)"
-
-#: dcpp/CryptoManager.cpp:221
-#, boost-format
-msgid "TLS disabled, failed to generate certificate: %1%"
-msgstr ""
-
-#: dcpp/CryptoManager.cpp:211
-msgid "TLS disabled, no certificate file set"
-msgstr ""
-
-#: dcpp/QueueManager.cpp:510 dcpp/QueueManager.cpp:519
-msgid "Target filename too long"
-msgstr "目标文件名太长"
-
-#: dcpp/QueueManager.cpp:798
-msgid "Target removed"
-msgstr ""
-
-#: dcpp/Socket.cpp:255
-msgid "The socks server doesn't support login / password authentication"
-msgstr "Socks代理不支持「用户/密码」验证"
-
-#: dcpp/Socket.cpp:162 dcpp/Socket.cpp:173 dcpp/Socket.cpp:206
-#: dcpp/Socket.cpp:210 dcpp/Socket.cpp:237 dcpp/Socket.cpp:252
-msgid "The socks server failed establish a connection"
-msgstr "Socks代理连接失败"
-
-#: dcpp/Socket.cpp:241
-msgid "The socks server requires authentication"
-msgstr "Socks代理需要「用户/密码」验证"
-
-#: dcpp/ShareManager.cpp:407
-msgid "The temporary download directory cannot be shared"
-msgstr "不能共享下载的临时文件目录"
-
-#: dcpp/QueueManager.cpp:465
-msgid "This file is already queued"
-msgstr ""
-
-#: dcpp/Thread.cpp:34 dcpp/Thread.cpp:42
-msgid "Unable to create thread"
-msgstr "不能建立线程"
-
-#: dcpp/QueueManager.cpp:995
-#, boost-format
-msgid "Unable to open filelist: %1%"
-msgstr ""
-
-#: dcpp/HashManager.cpp:131
-#, fuzzy
-msgid "Unable to read hash data file"
-msgstr "不能建立线程"
-
-#: dcpp/QueueManager.cpp:327
-#, fuzzy, boost-format
-msgid "Unable to rename %1%: %2%"
-msgstr "不能建立线程"
-
-#: dcpp/UploadManager.cpp:149
-#, boost-format
-msgid "Unable to send file %1%: %2%"
-msgstr ""
-
-#: dcpp/Socket.cpp:54
-#, c-format, boost-format
-msgid "Unknown error: 0x%1$x"
-msgstr ""
-
-#: dcpp/ShareManager.cpp:426 dcpp/ShareManager.cpp:468
-msgid "Virtual directory name already exists"
-msgstr "要虚拟的名字已经存在了(不允许重复)"
-
-#: dcpp/QueueManager.cpp:412 dcpp/QueueManager.cpp:436
-msgid "You're trying to download from yourself!"
-msgstr "不能下载自己!"
-
-#: dcpp/SettingsManager.cpp:156
-msgid "downloaded from"
-msgstr ""
-
-#: dcpp/SettingsManager.cpp:157
-msgid "uploaded to"
-msgstr ""
Copied: dcplusplus/trunk/dcpp/po/zh_CN.po (from rev 1033, dcplusplus/trunk/dcpp/po/zh.po)
===================================================================
--- dcplusplus/trunk/dcpp/po/zh_CN.po (rev 0)
+++ dcplusplus/trunk/dcpp/po/zh_CN.po 2008-03-12 21:40:53 UTC (rev 1036)
@@ -0,0 +1,419 @@
+# Chinese translations for the DC++ package.
+# Copyright (C) 2008 The translators
+# This file is distributed under the same license as the DC++ package.
+# <fen...@us...>, 2008.
+#
+msgid ""
+msgstr ""
+"Project-Id-Version: dcpp\n"
+"Report-Msgid-Bugs-To: dcp...@li...\n"
+"POT-Creation-Date: 2008-03-04 23:00+0100\n"
+"Last-Translator: <fen...@us...>\n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=UTF-8\n"
+"Content-Transfer-Encoding: 8bit\n"
+"Plural-Forms: plurals=2; plural=(n != 1);\n"
+
+#: dcpp/Util.cpp:381
+#, c-format, boost-format
+msgid "%'lld B"
+msgstr ""
+
+#: dcpp/Util.cpp:343
+#, c-format, boost-format
+msgid "%.02f GiB"
+msgstr ""
+
+#: dcpp/Util.cpp:339
+#, c-format, boost-format
+msgid "%.02f KiB"
+msgstr ""
+
+#: dcpp/Util.cpp:341
+#, c-format, boost-format
+msgid "%.02f MiB"
+msgstr ""
+
+#: dcpp/Util.cpp:347
+#, c-format, boost-format
+msgid "%.02f PiB"
+msgstr ""
+
+#: dcpp/Util.cpp:345
+#, c-format, boost-format
+msgid "%.02f TiB"
+msgstr ""
+
+#: dcpp/AdcHub.cpp:139
+#, boost-format
+msgid "%1% (%2%) has same CID {%3%} as %4% (%5%), ignoring"
+msgstr ""
+
+#: dcpp/NmdcHub.cpp:281
+#, boost-format
+msgid "%1% (Nick unknown)"
+msgstr ""
+
+#: dcpp/HashManager.cpp:767
+#, boost-format
+msgid ""
+"%1% not shared; calculated CRC32 does not match the one found in SFV file."
+msgstr ""
+
+#: dcpp/QueueManager.cpp:325
+#, boost-format
+msgid "%1% renamed to %2%"
+msgstr ""
+
+#: dcpp/AdcHub.cpp:281
+#, boost-format
+msgid "%1% was kicked by %2%: %3%"
+msgstr ""
+
+#: dcpp/AdcHub.cpp:284
+#, boost-format
+msgid "%1% was kicked: %2%"
+msgstr ""
+
+#: dcpp/DownloadManager.cpp:530
+#, fuzzy, boost-format
+msgid "%1%: File not available"
+msgstr "文件不存在"
+
+#: dcpp/Util.cpp:337
+#, c-format, boost-format
+msgid "%d B"
+msgstr ""
+
+#: dcpp/Util.cpp:377
+#, c-format, boost-format
+msgid "%s B"
+msgstr ""
+
+#: dcpp/QueueManager.cpp:532
+msgid "A file of equal or larger size already exists at the target location"
+msgstr "一个相等或更大的文件已经存在于下载目录中"
+
+#: dcpp/QueueManager.cpp:475
+msgid "A file with a different size already exists in the queue"
+msgstr "存在大小不同的同名文件"
+
+#: dcpp/QueueManager.cpp:478
+msgid "A file with different tth root already exists in the queue"
+msgstr "队列中已经有一个不同 tth root 的文件"
+
+#: dcpp/QueueManager.cpp:442
+msgid "A file with the same hash already exists in your share"
+msgstr "在你的共享中已经有一个相同hash值的文件了"
+
+#: dcpp/ConnectionManager.cpp:176
+msgid "All download slots taken"
+msgstr "对方所有上传通道都已被占用"
+
+#: dcpp/DownloadManager.cpp:376
+msgid "CRC32 inconsistency (SFV-Check)"
+msgstr "CRC32 出错(SFV-Check)"
+
+#: dcpp/DownloadManager.cpp:374
+#, fuzzy, boost-format
+msgid "CRC32 inconsistency (SFV-Check) (File: %1%)"
+msgstr "CRC32 出错(SFV-Check)"
+
+#: dcpp/ConnectionManager.cpp:376
+msgid "Certificate not trusted, unable to connect"
+msgstr ""
+
+#: dcpp/Socket.cpp:154 dcpp/ConnectionManager.cpp:182
+#: dcpp/BufferedSocket.cpp:154
+msgid "Connection timeout"
+msgstr "连接超时"
+
+#: dcpp/DownloadManager.cpp:232
+#, boost-format
+msgid "Could not open target file: %1%"
+msgstr ""
+
+#: dcpp/ShareManager.cpp:418
+msgid "Directory already shared"
+msgstr "目录已经共享"
+
+#: dcpp/BufferedSocket.cpp:407 dcpp/BufferedSocket.cpp:426
+msgid "Disconnected"
+msgstr "连接中断"
+
+#: dcpp/UploadManager.cpp:450
+#, boost-format
+msgid "Disconnected user leaving the hub: %1%"
+msgstr ""
+
+#: dcpp/DCPlusPlus.cpp:103
+msgid "Download Queue"
+msgstr "下载队列"
+
+#: dcpp/ShareManager.cpp:741
+#, boost-format
+msgid ""
+"Duplicate file will not be shared: %1%%2% (Size: %3% B) Dupe matched "
+"against: %4%%5%"
+msgstr ""
+
+#: dcpp/QueueManager.cpp:545 dcpp/QueueManager.cpp:549
+#, boost-format
+msgid "Duplicate source: %1%"
+msgstr ""
+
+#: dcpp/HashManager.cpp:456
+#, boost-format
+msgid "Error creating hash data file: %1%"
+msgstr ""
+
+#: dcpp/ZUtils.cpp:33 dcpp/ZUtils.cpp:54 dcpp/ZUtils.cpp:76 dcpp/ZUtils.cpp:86
+#: dcpp/BZUtils.cpp:31 dcpp/BZUtils.cpp:52 dcpp/BZUtils.cpp:60
+msgid "Error during compression"
+msgstr "压缩过程发生错误"
+
+#: dcpp/ZUtils.cpp:100 dcpp/ZUtils.cpp:123 dcpp/BZUtils.cpp:72
+#: dcpp/BZUtils.cpp:94 dcpp/BZUtils.cpp:97 dcpp/CryptoManager.cpp:342
+#: dcpp/CryptoManager.cpp:361 dcpp/CryptoManager.cpp:375
+msgid "Error during decompression"
+msgstr "解压缩出错"
+
+#: dcpp/HashManager.cpp:772
+#, boost-format
+msgid "Error hashing %1%: %2%"
+msgstr ""
+
+#: dcpp/HashManager.cpp:118 dcpp/HashManager.cpp:333
+#, boost-format
+msgid "Error saving hash data: %1%"
+msgstr ""
+
+#: dcpp/CryptoManager.cpp:226 dcpp/CryptoManager.cpp:230
+#: dcpp/CryptoManager.cpp:235 dcpp/CryptoManager.cpp:239
+msgid "Failed to load certificate file"
+msgstr ""
+
+#: dcpp/CryptoManager.cpp:244 dcpp/CryptoManager.cpp:248
+#: dcpp/CryptoManager.cpp:253 dcpp/CryptoManager.cpp:257
+msgid "Failed to load private key"
+msgstr ""
+
+#: dcpp/AdcHub.cpp:206
+msgid "Failed to negotiate base protocol"
+msgstr ""
+
+#: dcpp/Socket.cpp:408
+msgid ""
+"Failed to set up the socks server for UDP relay (check socks address and "
+"port)"
+msgstr "socks服务器UDP回应失败(检查socks服务器的地址和端口)"
+
+#: dcpp/ShareManager.cpp:776
+#, fuzzy, boost-format
+msgid "File list refresh failed: %1%"
+msgstr "文件列表已更新"
+
+#: dcpp/ShareManager.cpp:820
+msgid "File list refresh finished"
+msgstr "文件列表已更新"
+
+#: dcpp/ShareManager.cpp:756
+msgid ""
+"File list refresh in progress, please wait for it to finish before trying to "
+"refresh again"
+msgstr ""
+
+#: dcpp/ShareManager.cpp:798
+msgid "File list refresh initiated"
+msgstr "文件列表刷新已开始"
+
+#: dcpp/DirectoryListing.cpp:102
+msgid "File not available"
+msgstr "文件不存在"
+
+#: dcpp/HashManager.cpp:89
+#, boost-format
+msgid "Finished hashing: %1%"
+msgstr ""
+
+#: dcpp/HashManager.cpp:87
+#, boost-format
+msgid "Finished hashing: %1% (%2%/s)"
+msgstr ""
+
+#: dcpp/DownloadManager.cpp:308
+msgid "Full tree does not match TTH root"
+msgstr "已下载的“树”不匹配于 TTH root"
+
+#: dcpp/CryptoManager.cpp:219
+msgid "Generated new TLS certificate"
+msgstr ""
+
+#: dcpp/DCPlusPlus.cpp:97
+msgid "Hash database"
+msgstr "Hash 数据库"
+
+#: dcpp/HashManager.cpp:677
+msgid "Hash database rebuilt"
+msgstr "Hash 数据库已重建"
+
+#: dcpp/HashManager.cpp:73 dcpp/HashManager.cpp:277
+#, boost-format
+msgid "Hashing failed: %1%"
+msgstr ""
+
+#: dcpp/AdcHub.cpp:212
+msgid ""
+"Hub probably uses an old version of ADC, please encourage the owner to "
+"upgrade"
+msgstr ""
+
+#: dcpp/DownloadManager.cpp:220
+msgid "Invalid size"
+msgstr ""
+
+#: dcpp/QueueManager.cpp:515 dcpp/QueueManager.cpp:523
+msgid ""
+"Invalid target file (missing directory, check default download directory "
+"setting)"
+msgstr "目标文件无法访问(目录已被删除, 请检查缺省的下载地址设置)"
+
+#: dcpp/FavoriteManager.cpp:438
+msgid "Kick user(s)"
+msgstr "踢出该用户"
+
+#: dcpp/ConnectionManager.cpp:230
+#, boost-format
+msgid "Listening socket failed (you need to restart %1%): %2%"
+msgstr ""
+
+#: dcpp/BufferedSocket.cpp:261
+msgid "Maximum command length exceeded"
+msgstr ""
+
+#: dcpp/DownloadManager.cpp:280
+msgid "More data was sent than was expected"
+msgstr "发送了比预期更多的数据量"
+
+#: dcpp/ShareManager.cpp:403
+msgid "No directory specified"
+msgstr "没有指定目录"
+
+#: dcpp/DownloadManager.cpp:419
+msgid "No slots available"
+msgstr "对方上传通道都已经满了"
+
+#: dcpp/AdcHub.cpp:576
+#, boost-format
+msgid "Not listening for connections - please restart %1%"
+msgstr ""
+
+#: dcpp/Transfer.cpp:63 dcpp/Transfer.cpp:67 dcpp/ClientManager.cpp:115
+#: dcpp/SearchManager.cpp:267 dcpp/SearchManager.cpp:329
+#: dcpp/SearchManager.cpp:331
+msgid "Offline"
+msgstr "离线"
+
+#: dcpp/FavoriteManager.cpp:442
+msgid "Redirect user(s)"
+msgstr "重定向用户"
+
+#: dcpp/ShareManager.cpp:421
+msgid "Remove all subdirectories before adding this one"
+msgstr "增加前先删除所有子文件夹"
+
+#: dcpp/DownloadManager.cpp:225
+#, fuzzy
+msgid "Response does not match request"
+msgstr "已下载的“树”不匹配于 TTH root"
+
+#: dcpp/DCPlusPlus.cpp:100
+msgid "Shared Files"
+msgstr "共享文件"
+
+#: dcpp/Socket.cpp:269 dcpp/Socket.cpp:273
+msgid "Socks server authentication failed (bad login / password?)"
+msgstr "Socks代理鉴权失败 (用户名/密码错误?)"
+
+#: dcpp/CryptoManager.cpp:221
+#, boost-format
+msgid "TLS disabled, failed to generate certificate: %1%"
+msgstr ""
+
+#: dcpp/CryptoManager.cpp:211
+msgid "TLS disabled, no certificate file set"
+msgstr ""
+
+#: dcpp/QueueManager.cpp:510 dcpp/QueueManager.cpp:519
+msgid "Target filename too long"
+msgstr "目标文件名太长"
+
+#: dcpp/QueueManager.cpp:798
+msgid "Target removed"
+msgstr ""
+
+#: dcpp/Socket.cpp:255
+msgid "The socks server doesn't support login / password authentication"
+msgstr "Socks代理不支持「用户/密码」验证"
+
+#: dcpp/Socket.cpp:162 dcpp/Socket.cpp:173 dcpp/Socket.cpp:206
+#: dcpp/Socket.cpp:210 dcpp/Socket.cpp:237 dcpp/Socket.cpp:252
+msgid "The socks server failed establish a connection"
+msgstr "Socks代理连接失败"
+
+#: dcpp/Socket.cpp:241
+msgid "The socks server requires authentication"
+msgstr "Socks代理需要「用户/密码」验证"
+
+#: dcpp/ShareManager.cpp:407
+msgid "The temporary download directory cannot be shared"
+msgstr "不能共享下载的临时文件目录"
+
+#: dcpp/QueueManager.cpp:465
+msgid "This file is already queued"
+msgstr ""
+
+#: dcpp/Thread.cpp:34 dcpp/Thread.cpp:42
+msgid "Unable to create thread"
+msgstr "不能建立线程"
+
+#: dcpp/QueueManager.cpp:995
+#, boost-format
+msgid "Unable to open filelist: %1%"
+msgstr ""
+
+#: dcpp/HashManager.cpp:131
+#, fuzzy
+msgid "Unable to read hash data file"
+msgstr "不能建立线程"
+
+#: dcpp/QueueManager.cpp:327
+#, fuzzy, boost-format
+msgid "Unable to rename %1%: %2%"
+msgstr "不能建立线程"
+
+#: dcpp/UploadManager.cpp:149
+#, boost-format
+msgid "Unable to send file %1%: %2%"
+msgstr ""
+
+#: dcpp/Socket.cpp:54
+#, c-format, boost-format
+msgid "Unknown error: 0x%1$x"
+msgstr ""
+
+#: dcpp/ShareManager.cpp:426 dcpp/ShareManager.cpp:468
+msgid "Virtual directory name already exists"
+msgstr "要虚拟的名字已经存在了(不允许重复)"
+
+#: dcpp/QueueManager.cpp:412 dcpp/QueueManager.cpp:436
+msgid "You're trying to download from yourself!"
+msgstr "不能下载自己!"
+
+#: dcpp/SettingsManager.cpp:156
+msgid "downloaded from"
+msgstr ""
+
+#: dcpp/SettingsManager.cpp:157
+msgid "uploaded to"
+msgstr ""
Added: dcplusplus/trunk/mingwm10.dll
===================================================================
(Binary files differ)
Property changes on: dcplusplus/trunk/mingwm10.dll
___________________________________________________________________
Name: svn:executable
+ *
Name: svn:mime-type
+ application/octet-stream
Modified: dcplusplus/trunk/release.sh
===================================================================
--- dcplusplus/trunk/release.sh 2008-03-12 20:53:16 UTC (rev 1035)
+++ dcplusplus/trunk/release.sh 2008-03-12 21:40:53 UTC (rev 1036)
@@ -5,7 +5,7 @@
i686-mingw32-strip DCPlusPlus.exe
#copy /b app\dcplusplus.chm .
-zip -9 DCPlusPlus-$1.zip changelog.txt dcppboot.xml DCPlusPlus.chm DCPlusPlus.exe Example.xml License.txt LICENSE-GeoIP.txt LICENSE-OpenSSL.txt magnet.exe GeoIPCountryWhois.csv
+zip -9 DCPlusPlus-$1.zip changelog.txt dcppboot.xml DCPlusPlus.chm DCPlusPlus.exe Example.xml License.txt LICENSE-GeoIP.txt LICENSE-OpenSSL.txt magnet.exe GeoIPCountryWhois.csv mingwm10.dll
find *.txt *.TXT *.nsi *.xml *.py *.csv *.sh magnet.exe Doxyfile SConstruct boost bzip2 dcpp help htmlhelp res smartwin win32 openssl zlib \
-wholename "*/.svn" -prune -o -print | grep -v gch$ | zip -9 DCPlusPlus-$1-src.zip -9 -@
Deleted: dcplusplus/trunk/win32/po/zh.po
===================================================================
--- dcplusplus/trunk/win32/po/zh.po 2008-03-12 20:53:16 UTC (rev 1035)
+++ dcplusplus/trunk/win32/po/zh.po 2008-03-12 21:40:53 UTC (rev 1036)
@@ -1,2290 +0,0 @@
-# Chinese translations for the DC++ package.
-# Copyright (C) 2008 The translators
-# This file is distributed under the same license as the DC++ package.
-# <fen...@us...>, 2008.
-#
-msgid ""
-msgstr ""
-"Project-Id-Version: win32\n"
-"Report-Msgid-Bugs-To: dcp...@li...\n"
-"POT-Creation-Date: 2008-03-04 23:00+0100\n"
-"Last-Translator: <fen...@us...>\n"
-"MIME-Version: 1.0\n"
-"Content-Type: text/plain; charset=UTF-8\n"
-"Content-Transfer-Encoding: 8bit\n"
-"Plural-Forms: plurals=2; plural=(n != 1);\n"
-
-#: win32/MainWindow.cpp:862
-#, fuzzy, boost-format
-msgid ""
-"%1%\n"
-"Open download page?"
-msgstr "打开下载目录"
-
-#: win32/TransferView.cpp:571
-#, boost-format
-msgid "%1% (%2$0.2f)"
-msgstr ""
-
-#: win32/HashProgressDlg.cpp:91
-#, boost-format
-msgid "%1% files/h, %2% files left"
-msgstr ""
-
-#: win32/SearchFrame.cpp:576
-#, boost-format
-msgid "%1% filtered"
-msgstr ""
-
-#: win32/SearchFrame.cpp:571
-#, boost-format
-msgid "%1% item"
-msgid_plural "%1% items"
-msgstr[0] ""
-msgstr[1] ""
-
-#: win32/HashProgressDlg.cpp:100
-#, boost-format
-msgid "%1% left"
-msgstr ""
-
-#: win32/HubFrame.cpp:927
-#, fuzzy, boost-format
-msgid "%1% user"
-msgid_plural "%1% users"
-msgstr[0] "没有用户"
-msgstr[1] "没有用户"
-
-#: win32/TransferView.cpp:586 win32/TransferView.cpp:633
-#, boost-format
-msgid "%1%/s"
-msgstr ""
-
-#: win32/HashProgressDlg.cpp:92
-#, boost-format
-msgid "%1%/s, %2% left"
-msgstr ""
-
-#: win32/HubListsDlg.cpp:63 win32/UCPage.cpp:33
-#, fuzzy
-msgid "&Add"
-msgstr "已添加"
-
-#: win32/UploadPage.cpp:37 win32/FavoriteDirsPage.cpp:34
-msgid "&Add folder"
-msgstr ""
-
-#: win32/DirectoryListingFrame.cpp:369 win32/SearchFrame.cpp:774
-#: win32/SearchFrame.cpp:804 win32/DownloadPage.cpp:32 win32/LogPage.cpp:33
-#: win32/Appearance2Page.cpp:30
-#, fuzzy
-msgid "&Browse..."
-msgstr "浏览到"
-
-#: win32/UCPage.cpp:34
-#, fuzzy
-msgid "&Change"
-msgstr "更新记录"
-
-#: win32/PrivateFrame.cpp:388 win32/HubFrame.cpp:1178
-#, fuzzy
-msgid "&Close"
-msgstr "颜色"
-
-#: win32/PublicHubsFrame.cpp:150
-msgid "&Configure"
-msgstr ""
-
-#: win32/FavHubsFrame.cpp:72 win32/FavHubsFrame.cpp:278
-#: win32/PublicHubsFrame.cpp:448
-#, fuzzy
-msgid "&Connect"
-msgstr "已连接"
-
-#: win32/TransferView.cpp:199
-#, fuzzy
-msgid "&Disconnect"
-msgstr "快速连接"
-
-#: win32/DirectoryListingFrame.cpp:311 win32/DirectoryListingFrame.cpp:336
-#: win32/DirectoryListingFrame.cpp:348 win32/SearchFrame.cpp:742
-#, fuzzy
-msgid "&Download"
-msgstr "下载"
-
-#: win32/MainWindow.cpp:214
-#, fuzzy
-msgid "&Download Queue\tCtrl+D"
-msgstr "下载队列"
-
-#: win32/HubListsDlg.cpp:75
-msgid "&Edit"
-msgstr ""
-
-#: win32/MainWindow.cpp:211
-#, fuzzy
-msgid "&Favorite Hubs\tCtrl+F"
-msgstr "站点收藏夹"
-
-#: win32/MainWindow.cpp:188
-#, fuzzy
-msgid "&File"
-msgstr "文件"
-
-#: win32/TransferView.cpp:196
-msgid "&Force attempt"
-msgstr ""
-
-#: win32/QueueFrame.cpp:1006 win32/WaitingUsersFrame.cpp:80
-#: win32/PrivateFrame.cpp:380
-msgid "&Get file list"
-msgstr ""
-
-#: win32/DirectoryListingFrame.cpp:325
-#, fuzzy
-msgid "&Go to directory"
-msgstr "下载整个目录"
-
-#: win32/MainWindow.cpp:240 win32/ADLSearchFrame.cpp:93
-msgid "&Help"
-msgstr ""
-
-#: win32/PrivateFrame.cpp:381
-#, fuzzy
-msgid "&Match queue"
-msgstr "队列匹配"
-
-#: win32/QueueFrame.cpp:960 win32/QueueFrame.cpp:978 win32/QueueFrame.cpp:988
-#, fuzzy
-msgid "&Move/Rename"
-msgstr "重命名"
-
-#: win32/FavHubsFrame.cpp:77 win32/FavHubsFrame.cpp:280
-#: win32/ADLSearchFrame.cpp:68 win32/ADLSearchFrame.cpp:291
-msgid "&New..."
-msgstr ""
-
-#: win32/MainWindow.cpp:223
-#, fuzzy
-msgid "&Notepad\tCtrl+N"
-msgstr "记事本"
-
-#: win32/FavHubsFrame.cpp:82 win32/FavHubsFrame.cpp:281
-#: win32/ADLSearchFrame.cpp:73 win32/ADLSearchFrame.cpp:292
-#: win32/UsersFrame.cpp:186
-#, fuzzy
-msgid "&Properties"
-msgstr "ADL搜索选项 (ADLSearch Properties)"
-
-#: win32/MainWindow.cpp:210
-#, fuzzy
-msgid "&Public Hubs\tCtrl+P"
-msgstr "服务器列表"
-
-#: win32/MainWindow.cpp:190
-#, fuzzy
-msgid "&Quick Connect ...\tCtrl+Q"
-msgstr "快速连接"
-
-#: win32/MainWindow.cpp:192 win32/HubFrame.cpp:1173
-msgid "&Reconnect\tCtrl+R"
-msgstr ""
-
-#: win32/PublicHubsFrame.cpp:156
-msgid "&Refresh"
-msgstr ""
-
-#: win32/UploadPage.cpp:36 win32/QueueFrame.cpp:968 win32/QueueFrame.cpp:980
-#: win32/QueueFrame.cpp:990 win32/HubListsDlg.cpp:79
-#: win32/WaitingUsersFrame.cpp:82 win32/FavoriteDirsPage.cpp:33
-#: win32/SearchFrame.cpp:755 win32/FavHubsFrame.cpp:97
-#: win32/FavHubsFrame.cpp:285 win32/ADLSearchFrame.cpp:88
-#: win32/ADLSearchFrame.cpp:293 win32/UCPage.cpp:35 win32/UsersFrame.cpp:187
-#, fuzzy
-msgid "&Remove"
-msgstr "重命名"
-
-#: win32/SpyFrame.cpp:189
-#, fuzzy
-msgid "&Search"
-msgstr "搜索"
-
-#: win32/MainWindow.cpp:219
-#, fuzzy
-msgid "&Search\tCtrl+S"
-msgstr "搜索"
-
-#: win32/QueueFrame.cpp:1013 win32/WaitingUsersFrame.cpp:85
-msgid "&Send private message"
-msgstr ""
-
-#: win32/MainWindow.cpp:208
-#, fuzzy
-msgid "&View"
-msgstr "视频"
-
-#: win32/DirectoryListingFrame.cpp:315 win32/SearchFrame.cpp:746
-msgid "&View as text"
-msgstr ""
-
-#: win32/MainWindow.cpp:230
-msgid "&Window"
-msgstr ""
-
-#: win32/HubFrame.cpp:487
-#, boost-format
-msgid "*** Joins: %1%"
-msgstr ""
-
-#: win32/HubFrame.cpp:494
-#, boost-format
-msgid "*** Parts: %1%"
-msgstr ""
-
-#: win32/HashProgressDlg.cpp:84
-#, boost-format
-msgid "-.-- B/s, %1% left"
-msgstr ""
-
-#: win32/HashProgressDlg.cpp:83
-#, boost-format
-msgid "-.-- files/h, %1% files left"
-msgstr ""
-
-#: win32/WinUtil.cpp:1036
-msgid ""
-"A MAGNET link was given to DC++, but it didn't contain a valid file hash for "
-"use on the Direct Connect network. No action will be taken."
-msgstr ""
-"一个MAGNET链接已经加给DC++, 但是它不包含一个在DC网络上可用的hash值. 没有动作"
-"执行."
-
-#: win32/MainWindow.cpp:220 win32/MainWindow.cpp:294
-msgid "ADL Search"
-msgstr "ADL 搜索"
-
-#: win32/ADLSProperties.cpp:49
-msgid "ADLSearch Properties"
-msgstr "ADL搜索选项 (ADLSearch Properties)"
-
-#: win32/MainWindow.cpp:305 win32/MainWindow.cpp:564
-msgid "AWAY"
-msgstr "离开"
-
-#: win32/MainWindow.cpp:245
-msgid "About DC++..."
-msgstr "关于 DC++...(fenxiang汉化)"
-
-#: win32/AdvancedPage.cpp:43
-msgid "Accept custom user commands from hub"
-msgstr "接受站点的自定义用户命令"
-
-#: win32/WaitingUsersFrame.cpp:84 win32/PrivateFrame.cpp:384
-#: win32/HubFrame.cpp:1170 win32/PublicHubsFrame.cpp:449
-#, fuzzy
-msgid "Add To &Favorites"
-msgstr "站点收藏夹"
-
-#: win32/AdvancedPage.cpp:45
-msgid "Add finished files to share instantly (if shared)"
-msgstr "立刻把完成的文件加到共享(如果已加为共享)"
-
-#: win32/QueueFrame.cpp:45
-msgid "Added"
-msgstr "已添加"
-
-#: win32/MainWindow.cpp:358 win32/PublicHubsFrame.cpp:52
-msgid "Address"
-msgstr "服务器地址"
-
-#: win32/SettingsDialog.cpp:67
-msgid "Advanced"
-msgstr "高级"
-
-#: win32/SettingsDialog.cpp:69
-msgid "Advanced\\Experts only"
-msgstr ""
-
-#: win32/SettingsDialog.cpp:68
-#, fuzzy
-msgid "Advanced\\Logs"
-msgstr "高级"
-
-#: win32/SettingsDialog.cpp:71
-msgid "Advanced\\Security Certificates"
-msgstr ""
-
-#: win32/SettingsDialog.cpp:70
-msgid "Advanced\\User Commands"
-msgstr ""
-
-#: win32/QueueFrame.cpp:1022...
[truncated message content] |
|
From: <arn...@us...> - 2008-03-13 22:02:54
|
Revision: 1039
http://dcplusplus.svn.sourceforge.net/dcplusplus/?rev=1039&view=rev
Author: arnetheduck
Date: 2008-03-13 15:02:50 -0700 (Thu, 13 Mar 2008)
Log Message:
-----------
Update translations
Modified Paths:
--------------
dcplusplus/trunk/dcpp/po/ar.po
dcplusplus/trunk/dcpp/po/bg.po
dcplusplus/trunk/dcpp/po/bs.po
dcplusplus/trunk/dcpp/po/ca.po
dcplusplus/trunk/dcpp/po/cs.po
dcplusplus/trunk/dcpp/po/da.po
dcplusplus/trunk/dcpp/po/de.po
dcplusplus/trunk/dcpp/po/el.po
dcplusplus/trunk/dcpp/po/en_GB.po
dcplusplus/trunk/dcpp/po/es.po
dcplusplus/trunk/dcpp/po/fi.po
dcplusplus/trunk/dcpp/po/fr.po
dcplusplus/trunk/dcpp/po/gl.po
dcplusplus/trunk/dcpp/po/he.po
dcplusplus/trunk/dcpp/po/hr.po
dcplusplus/trunk/dcpp/po/hu.po
dcplusplus/trunk/dcpp/po/id.po
dcplusplus/trunk/dcpp/po/is.po
dcplusplus/trunk/dcpp/po/it.po
dcplusplus/trunk/dcpp/po/ja.po
dcplusplus/trunk/dcpp/po/km.po
dcplusplus/trunk/dcpp/po/ko.po
dcplusplus/trunk/dcpp/po/lt.po
dcplusplus/trunk/dcpp/po/lv.po
dcplusplus/trunk/dcpp/po/mk.po
dcplusplus/trunk/dcpp/po/ms.po
dcplusplus/trunk/dcpp/po/nb.po
dcplusplus/trunk/dcpp/po/nl.po
dcplusplus/trunk/dcpp/po/pl.po
dcplusplus/trunk/dcpp/po/pt.po
dcplusplus/trunk/dcpp/po/pt_BR.po
dcplusplus/trunk/dcpp/po/ro.po
dcplusplus/trunk/dcpp/po/ru.po
dcplusplus/trunk/dcpp/po/sl.po
dcplusplus/trunk/dcpp/po/sq.po
dcplusplus/trunk/dcpp/po/sv.po
dcplusplus/trunk/dcpp/po/tr.po
dcplusplus/trunk/dcpp/po/uk.po
dcplusplus/trunk/dcpp/po/zh_CN.po
dcplusplus/trunk/dcpp/po/zh_TW.po
dcplusplus/trunk/win32/po/ar.po
dcplusplus/trunk/win32/po/bg.po
dcplusplus/trunk/win32/po/bs.po
dcplusplus/trunk/win32/po/ca.po
dcplusplus/trunk/win32/po/cs.po
dcplusplus/trunk/win32/po/da.po
dcplusplus/trunk/win32/po/de.po
dcplusplus/trunk/win32/po/el.po
dcplusplus/trunk/win32/po/en_GB.po
dcplusplus/trunk/win32/po/es.po
dcplusplus/trunk/win32/po/fi.po
dcplusplus/trunk/win32/po/fr.po
dcplusplus/trunk/win32/po/gl.po
dcplusplus/trunk/win32/po/he.po
dcplusplus/trunk/win32/po/hr.po
dcplusplus/trunk/win32/po/hu.po
dcplusplus/trunk/win32/po/id.po
dcplusplus/trunk/win32/po/is.po
dcplusplus/trunk/win32/po/it.po
dcplusplus/trunk/win32/po/ja.po
dcplusplus/trunk/win32/po/km.po
dcplusplus/trunk/win32/po/ko.po
dcplusplus/trunk/win32/po/lt.po
dcplusplus/trunk/win32/po/lv.po
dcplusplus/trunk/win32/po/mk.po
dcplusplus/trunk/win32/po/nb.po
dcplusplus/trunk/win32/po/nl.po
dcplusplus/trunk/win32/po/pl.po
dcplusplus/trunk/win32/po/pt.po
dcplusplus/trunk/win32/po/pt_BR.po
dcplusplus/trunk/win32/po/ro.po
dcplusplus/trunk/win32/po/ru.po
dcplusplus/trunk/win32/po/sl.po
dcplusplus/trunk/win32/po/sq.po
dcplusplus/trunk/win32/po/sv.po
dcplusplus/trunk/win32/po/tr.po
dcplusplus/trunk/win32/po/uk.po
dcplusplus/trunk/win32/po/zh_CN.po
dcplusplus/trunk/win32/po/zh_TW.po
Modified: dcplusplus/trunk/dcpp/po/ar.po
===================================================================
--- dcplusplus/trunk/dcpp/po/ar.po 2008-03-12 21:46:22 UTC (rev 1038)
+++ dcplusplus/trunk/dcpp/po/ar.po 2008-03-13 22:02:50 UTC (rev 1039)
@@ -7,12 +7,15 @@
msgstr ""
"Project-Id-Version: dcpp\n"
"Report-Msgid-Bugs-To: dcp...@li...\n"
-"POT-Creation-Date: 2008-03-04 23:00+0100\n"
-"Last-Translator: <jma...@us...>\n"
+"POT-Creation-Date: 2008-03-12 21:38+0100\n"
+"PO-Revision-Date: 2008-03-05 00:18+0000\n"
+"Last-Translator: Jmarhoon <Unknown>\n"
+"Language-Team: LANGUAGE <LL...@li...>\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
-"Plural-Forms: plurals=2; plural=(n != 1);\n"
+"X-Launchpad-Export-Date: 2008-03-13 15:20+0000\n"
+"X-Generator: Launchpad (build Unknown)\n"
#: dcpp/Util.cpp:381
#, c-format, boost-format
@@ -123,8 +126,13 @@
msgid "Certificate not trusted, unable to connect"
msgstr ""
+#: dcpp/BufferedSocket.cpp:148
+#, fuzzy
+msgid "Connection closed"
+msgstr "لا يمكن التوصيل"
+
#: dcpp/Socket.cpp:154 dcpp/ConnectionManager.cpp:182
-#: dcpp/BufferedSocket.cpp:154
+#: dcpp/BufferedSocket.cpp:131
msgid "Connection timeout"
msgstr "لا يمكن التوصيل"
@@ -135,9 +143,9 @@
#: dcpp/ShareManager.cpp:418
msgid "Directory already shared"
-msgstr "المجلد مستخدم حاليا "
+msgstr "المجلد مستخدم حاليا"
-#: dcpp/BufferedSocket.cpp:407 dcpp/BufferedSocket.cpp:426
+#: dcpp/BufferedSocket.cpp:404
msgid "Disconnected"
msgstr "انفصل"
@@ -206,7 +214,7 @@
msgid ""
"Failed to set up the socks server for UDP relay (check socks address and "
"port)"
-msgstr "(افحص عنوان السوكس و البورت) UDP فشل في عمل سوكس سيرفر لحدوث تبادل في "
+msgstr "(افحص عنوان السوكس و البورت) UDP فشل في عمل سوكس سيرفر لحدوث تبادل في"
#: dcpp/ShareManager.cpp:776
#, fuzzy, boost-format
@@ -280,14 +288,14 @@
#: dcpp/FavoriteManager.cpp:438
msgid "Kick user(s)"
-msgstr "فصل المستخدم "
+msgstr "فصل المستخدم"
#: dcpp/ConnectionManager.cpp:230
#, boost-format
msgid "Listening socket failed (you need to restart %1%): %2%"
msgstr ""
-#: dcpp/BufferedSocket.cpp:261
+#: dcpp/BufferedSocket.cpp:237
msgid "Maximum command length exceeded"
msgstr ""
@@ -303,12 +311,12 @@
msgid "No slots available"
msgstr "لا توجد وصلة خالية"
-#: dcpp/AdcHub.cpp:576
+#: dcpp/AdcHub.cpp:577
#, boost-format
msgid "Not listening for connections - please restart %1%"
msgstr ""
-#: dcpp/Transfer.cpp:63 dcpp/Transfer.cpp:67 dcpp/ClientManager.cpp:115
+#: dcpp/Transfer.cpp:63 dcpp/Transfer.cpp:67 dcpp/ClientManager.cpp:114
#: dcpp/SearchManager.cpp:267 dcpp/SearchManager.cpp:329
#: dcpp/SearchManager.cpp:331
msgid "Offline"
Modified: dcplusplus/trunk/dcpp/po/bg.po
===================================================================
--- dcplusplus/trunk/dcpp/po/bg.po 2008-03-12 21:46:22 UTC (rev 1038)
+++ dcplusplus/trunk/dcpp/po/bg.po 2008-03-13 22:02:50 UTC (rev 1039)
@@ -7,12 +7,15 @@
msgstr ""
"Project-Id-Version: dcpp\n"
"Report-Msgid-Bugs-To: dcp...@li...\n"
-"POT-Creation-Date: 2008-03-04 23:00+0100\n"
-"Last-Translator: <gre...@us...>\n"
+"POT-Creation-Date: 2008-03-12 21:38+0100\n"
+"PO-Revision-Date: 2008-03-05 00:08+0000\n"
+"Last-Translator: Greatgenius <Unknown>\n"
+"Language-Team: LANGUAGE <LL...@li...>\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
-"Plural-Forms: plurals=2; plural=(n != 1);\n"
+"X-Launchpad-Export-Date: 2008-03-13 15:20+0000\n"
+"X-Generator: Launchpad (build Unknown)\n"
#: dcpp/Util.cpp:381
#, c-format, boost-format
@@ -124,8 +127,13 @@
msgid "Certificate not trusted, unable to connect"
msgstr ""
+#: dcpp/BufferedSocket.cpp:148
+#, fuzzy
+msgid "Connection closed"
+msgstr "Времето за свързване изтече!"
+
#: dcpp/Socket.cpp:154 dcpp/ConnectionManager.cpp:182
-#: dcpp/BufferedSocket.cpp:154
+#: dcpp/BufferedSocket.cpp:131
msgid "Connection timeout"
msgstr "Времето за свързване изтече!"
@@ -138,7 +146,7 @@
msgid "Directory already shared"
msgstr "Папката вече е споделена!"
-#: dcpp/BufferedSocket.cpp:407 dcpp/BufferedSocket.cpp:426
+#: dcpp/BufferedSocket.cpp:404
msgid "Disconnected"
msgstr "Изключен/Прекъснат"
@@ -294,7 +302,7 @@
msgid "Listening socket failed (you need to restart %1%): %2%"
msgstr ""
-#: dcpp/BufferedSocket.cpp:261
+#: dcpp/BufferedSocket.cpp:237
msgid "Maximum command length exceeded"
msgstr ""
@@ -310,12 +318,12 @@
msgid "No slots available"
msgstr "Няма слотове на разположение"
-#: dcpp/AdcHub.cpp:576
+#: dcpp/AdcHub.cpp:577
#, boost-format
msgid "Not listening for connections - please restart %1%"
msgstr ""
-#: dcpp/Transfer.cpp:63 dcpp/Transfer.cpp:67 dcpp/ClientManager.cpp:115
+#: dcpp/Transfer.cpp:63 dcpp/Transfer.cpp:67 dcpp/ClientManager.cpp:114
#: dcpp/SearchManager.cpp:267 dcpp/SearchManager.cpp:329
#: dcpp/SearchManager.cpp:331
msgid "Offline"
Modified: dcplusplus/trunk/dcpp/po/bs.po
===================================================================
--- dcplusplus/trunk/dcpp/po/bs.po 2008-03-12 21:46:22 UTC (rev 1038)
+++ dcplusplus/trunk/dcpp/po/bs.po 2008-03-13 22:02:50 UTC (rev 1039)
@@ -7,12 +7,15 @@
msgstr ""
"Project-Id-Version: dcpp\n"
"Report-Msgid-Bugs-To: dcp...@li...\n"
-"POT-Creation-Date: 2008-03-04 23:00+0100\n"
-"Last-Translator: <mi...@us...>\n"
+"POT-Creation-Date: 2008-03-12 21:38+0100\n"
+"PO-Revision-Date: 2008-03-05 00:12+0000\n"
+"Last-Translator: Mikula <Unknown>\n"
+"Language-Team: LANGUAGE <LL...@li...>\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
-"Plural-Forms: plurals=2; plural=(n != 1);\n"
+"X-Launchpad-Export-Date: 2008-03-13 15:20+0000\n"
+"X-Generator: Launchpad (build Unknown)\n"
#: dcpp/Util.cpp:381
#, c-format, boost-format
@@ -123,8 +126,13 @@
msgid "Certificate not trusted, unable to connect"
msgstr ""
+#: dcpp/BufferedSocket.cpp:148
+#, fuzzy
+msgid "Connection closed"
+msgstr "Vrijeme za vezu isteklo"
+
#: dcpp/Socket.cpp:154 dcpp/ConnectionManager.cpp:182
-#: dcpp/BufferedSocket.cpp:154
+#: dcpp/BufferedSocket.cpp:131
msgid "Connection timeout"
msgstr "Vrijeme za vezu isteklo"
@@ -137,7 +145,7 @@
msgid "Directory already shared"
msgstr "Sadrzaj se vec dijeli"
-#: dcpp/BufferedSocket.cpp:407 dcpp/BufferedSocket.cpp:426
+#: dcpp/BufferedSocket.cpp:404
msgid "Disconnected"
msgstr "Iskljucen"
@@ -290,7 +298,7 @@
msgid "Listening socket failed (you need to restart %1%): %2%"
msgstr ""
-#: dcpp/BufferedSocket.cpp:261
+#: dcpp/BufferedSocket.cpp:237
msgid "Maximum command length exceeded"
msgstr ""
@@ -306,12 +314,12 @@
msgid "No slots available"
msgstr "Nema slobodnih slotova"
-#: dcpp/AdcHub.cpp:576
+#: dcpp/AdcHub.cpp:577
#, boost-format
msgid "Not listening for connections - please restart %1%"
msgstr ""
-#: dcpp/Transfer.cpp:63 dcpp/Transfer.cpp:67 dcpp/ClientManager.cpp:115
+#: dcpp/Transfer.cpp:63 dcpp/Transfer.cpp:67 dcpp/ClientManager.cpp:114
#: dcpp/SearchManager.cpp:267 dcpp/SearchManager.cpp:329
#: dcpp/SearchManager.cpp:331
msgid "Offline"
Modified: dcplusplus/trunk/dcpp/po/ca.po
===================================================================
--- dcplusplus/trunk/dcpp/po/ca.po 2008-03-12 21:46:22 UTC (rev 1038)
+++ dcplusplus/trunk/dcpp/po/ca.po 2008-03-13 22:02:50 UTC (rev 1039)
@@ -7,12 +7,15 @@
msgstr ""
"Project-Id-Version: dcpp\n"
"Report-Msgid-Bugs-To: dcp...@li...\n"
-"POT-Creation-Date: 2008-03-04 23:00+0100\n"
-"Last-Translator: <su...@us...>\n"
+"POT-Creation-Date: 2008-03-12 21:38+0100\n"
+"PO-Revision-Date: 2008-03-05 00:46+0000\n"
+"Last-Translator: Sunbit <Unknown>\n"
+"Language-Team: LANGUAGE <LL...@li...>\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
-"Plural-Forms: plurals=2; plural=(n != 1);\n"
+"X-Launchpad-Export-Date: 2008-03-13 15:20+0000\n"
+"X-Generator: Launchpad (build Unknown)\n"
#: dcpp/Util.cpp:381
#, c-format, boost-format
@@ -124,8 +127,13 @@
msgid "Certificate not trusted, unable to connect"
msgstr ""
+#: dcpp/BufferedSocket.cpp:148
+#, fuzzy
+msgid "Connection closed"
+msgstr "S'ha esgotat el temps per la conexió"
+
#: dcpp/Socket.cpp:154 dcpp/ConnectionManager.cpp:182
-#: dcpp/BufferedSocket.cpp:154
+#: dcpp/BufferedSocket.cpp:131
msgid "Connection timeout"
msgstr "S'ha esgotat el temps per la conexió"
@@ -138,7 +146,7 @@
msgid "Directory already shared"
msgstr "Aquest directori ja està compartit"
-#: dcpp/BufferedSocket.cpp:407 dcpp/BufferedSocket.cpp:426
+#: dcpp/BufferedSocket.cpp:404
msgid "Disconnected"
msgstr "Desconectat"
@@ -292,7 +300,7 @@
msgid "Listening socket failed (you need to restart %1%): %2%"
msgstr ""
-#: dcpp/BufferedSocket.cpp:261
+#: dcpp/BufferedSocket.cpp:237
msgid "Maximum command length exceeded"
msgstr ""
@@ -308,12 +316,12 @@
msgid "No slots available"
msgstr "No queden slots disponibles"
-#: dcpp/AdcHub.cpp:576
+#: dcpp/AdcHub.cpp:577
#, boost-format
msgid "Not listening for connections - please restart %1%"
msgstr ""
-#: dcpp/Transfer.cpp:63 dcpp/Transfer.cpp:67 dcpp/ClientManager.cpp:115
+#: dcpp/Transfer.cpp:63 dcpp/Transfer.cpp:67 dcpp/ClientManager.cpp:114
#: dcpp/SearchManager.cpp:267 dcpp/SearchManager.cpp:329
#: dcpp/SearchManager.cpp:331
msgid "Offline"
Modified: dcplusplus/trunk/dcpp/po/cs.po
===================================================================
--- dcplusplus/trunk/dcpp/po/cs.po 2008-03-12 21:46:22 UTC (rev 1038)
+++ dcplusplus/trunk/dcpp/po/cs.po 2008-03-13 22:02:50 UTC (rev 1039)
@@ -7,14 +7,14 @@
msgstr ""
"Project-Id-Version: dcplusplus\n"
"Report-Msgid-Bugs-To: dcp...@li...\n"
-"POT-Creation-Date: 2008-03-04 23:00+0100\n"
-"PO-Revision-Date: 2008-02-08 19:17+0000\n"
+"POT-Creation-Date: 2008-03-12 21:38+0100\n"
+"PO-Revision-Date: 2008-03-05 00:25+0000\n"
"Last-Translator: marek.tomass <mar...@gm...>\n"
"Language-Team: Czech <cs...@li...>\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
-"X-Launchpad-Export-Date: 2008-03-04 21:52+0000\n"
+"X-Launchpad-Export-Date: 2008-03-13 15:20+0000\n"
"X-Generator: Launchpad (build Unknown)\n"
#: dcpp/Util.cpp:381
@@ -129,8 +129,13 @@
msgid "Certificate not trusted, unable to connect"
msgstr ""
+#: dcpp/BufferedSocket.cpp:148
+#, fuzzy
+msgid "Connection closed"
+msgstr "Cas pro pripojeni vyprsel"
+
#: dcpp/Socket.cpp:154 dcpp/ConnectionManager.cpp:182
-#: dcpp/BufferedSocket.cpp:154
+#: dcpp/BufferedSocket.cpp:131
msgid "Connection timeout"
msgstr "Cas pro pripojeni vyprsel"
@@ -143,7 +148,7 @@
msgid "Directory already shared"
msgstr "Slozka je uz sdilena"
-#: dcpp/BufferedSocket.cpp:407 dcpp/BufferedSocket.cpp:426
+#: dcpp/BufferedSocket.cpp:404
msgid "Disconnected"
msgstr "Odpojeny"
@@ -229,7 +234,7 @@
msgid ""
"File list refresh in progress, please wait for it to finish before trying to "
"refresh again"
-msgstr "Cekejte prosim, az sa dokonci obnova seznamu souboru "
+msgstr "Cekejte prosim, az sa dokonci obnova seznamu souboru"
#: dcpp/ShareManager.cpp:798
msgid "File list refresh initiated"
@@ -297,7 +302,7 @@
msgid "Listening socket failed (you need to restart %1%): %2%"
msgstr ""
-#: dcpp/BufferedSocket.cpp:261
+#: dcpp/BufferedSocket.cpp:237
msgid "Maximum command length exceeded"
msgstr ""
@@ -313,12 +318,12 @@
msgid "No slots available"
msgstr "Nejsou volne zadne sloty"
-#: dcpp/AdcHub.cpp:576
+#: dcpp/AdcHub.cpp:577
#, boost-format
msgid "Not listening for connections - please restart %1%"
msgstr ""
-#: dcpp/Transfer.cpp:63 dcpp/Transfer.cpp:67 dcpp/ClientManager.cpp:115
+#: dcpp/Transfer.cpp:63 dcpp/Transfer.cpp:67 dcpp/ClientManager.cpp:114
#: dcpp/SearchManager.cpp:267 dcpp/SearchManager.cpp:329
#: dcpp/SearchManager.cpp:331
msgid "Offline"
Modified: dcplusplus/trunk/dcpp/po/da.po
===================================================================
--- dcplusplus/trunk/dcpp/po/da.po 2008-03-12 21:46:22 UTC (rev 1038)
+++ dcplusplus/trunk/dcpp/po/da.po 2008-03-13 22:02:50 UTC (rev 1039)
@@ -7,14 +7,14 @@
msgstr ""
"Project-Id-Version: dcplusplus\n"
"Report-Msgid-Bugs-To: dcp...@li...\n"
-"POT-Creation-Date: 2008-03-04 23:00+0100\n"
-"PO-Revision-Date: 2008-02-23 10:32+0000\n"
-"Last-Translator: carson <Unknown>\n"
+"POT-Creation-Date: 2008-03-12 21:38+0100\n"
+"PO-Revision-Date: 2008-03-10 10:27+0000\n"
+"Last-Translator: Kryppy <Unknown>\n"
"Language-Team: Danish <da...@li...>\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
-"X-Launchpad-Export-Date: 2008-03-04 21:52+0000\n"
+"X-Launchpad-Export-Date: 2008-03-13 15:20+0000\n"
"X-Generator: Launchpad (build Unknown)\n"
#: dcpp/Util.cpp:381
@@ -61,7 +61,7 @@
#, boost-format
msgid ""
"%1% not shared; calculated CRC32 does not match the one found in SFV file."
-msgstr ""
+msgstr "%1% Ikke delt; Udregnet CRC32 matcher ikke den som fantes i SFV filen."
#: dcpp/QueueManager.cpp:325
#, boost-format
@@ -128,21 +128,26 @@
msgid "Certificate not trusted, unable to connect"
msgstr "Certifikan ikke pålideligt, kan ikke tilslutte"
+#: dcpp/BufferedSocket.cpp:148
+#, fuzzy
+msgid "Connection closed"
+msgstr "Tiden er udløbet for forbindelsen"
+
#: dcpp/Socket.cpp:154 dcpp/ConnectionManager.cpp:182
-#: dcpp/BufferedSocket.cpp:154
+#: dcpp/BufferedSocket.cpp:131
msgid "Connection timeout"
msgstr "Tiden er udløbet for forbindelsen"
#: dcpp/DownloadManager.cpp:232
#, boost-format
msgid "Could not open target file: %1%"
-msgstr ""
+msgstr "Kunne ikke åbne den valgte fil:: %1%"
#: dcpp/ShareManager.cpp:418
msgid "Directory already shared"
msgstr "Katalog deles allerede"
-#: dcpp/BufferedSocket.cpp:407 dcpp/BufferedSocket.cpp:426
+#: dcpp/BufferedSocket.cpp:404
msgid "Disconnected"
msgstr "Afbrudt"
@@ -165,7 +170,7 @@
#: dcpp/QueueManager.cpp:545 dcpp/QueueManager.cpp:549
#, boost-format
msgid "Duplicate source: %1%"
-msgstr ""
+msgstr "Kilden findes allerede: %1%"
#: dcpp/HashManager.cpp:456
#, boost-format
@@ -189,9 +194,9 @@
msgstr ""
#: dcpp/HashManager.cpp:118 dcpp/HashManager.cpp:333
-#, boost-format
+#, fuzzy, boost-format
msgid "Error saving hash data: %1%"
-msgstr ""
+msgstr "Fejl ved lagering af TTH-data: %1%"
#: dcpp/CryptoManager.cpp:226 dcpp/CryptoManager.cpp:230
#: dcpp/CryptoManager.cpp:235 dcpp/CryptoManager.cpp:239
@@ -218,7 +223,7 @@
#: dcpp/ShareManager.cpp:776
#, boost-format
msgid "File list refresh failed: %1%"
-msgstr ""
+msgstr "Opdatering af fillisten mislykkes: %1%"
#: dcpp/ShareManager.cpp:820
msgid "File list refresh finished"
@@ -240,14 +245,14 @@
msgstr "Filen er ikke tilgængelig"
#: dcpp/HashManager.cpp:89
-#, boost-format
+#, fuzzy, boost-format
msgid "Finished hashing: %1%"
-msgstr ""
+msgstr "Færdig med at hashe: %1%"
#: dcpp/HashManager.cpp:87
-#, boost-format
+#, fuzzy, boost-format
msgid "Finished hashing: %1% (%2%/s)"
-msgstr ""
+msgstr "Færdig med at hashe: %1% (%2%/s)"
#: dcpp/DownloadManager.cpp:308
msgid "Full tree does not match TTH root"
@@ -266,9 +271,9 @@
msgstr "Hash databasen er genopbygget"
#: dcpp/HashManager.cpp:73 dcpp/HashManager.cpp:277
-#, boost-format
+#, fuzzy, boost-format
msgid "Hashing failed: %1%"
-msgstr ""
+msgstr "Indeksering misslyktes: %1%"
#: dcpp/AdcHub.cpp:212
msgid ""
@@ -297,7 +302,7 @@
msgid "Listening socket failed (you need to restart %1%): %2%"
msgstr ""
-#: dcpp/BufferedSocket.cpp:261
+#: dcpp/BufferedSocket.cpp:237
msgid "Maximum command length exceeded"
msgstr "Maxsimal længde for kommando overskredet"
@@ -313,12 +318,12 @@
msgid "No slots available"
msgstr "Ingen ledige slots"
-#: dcpp/AdcHub.cpp:576
+#: dcpp/AdcHub.cpp:577
#, boost-format
msgid "Not listening for connections - please restart %1%"
msgstr ""
-#: dcpp/Transfer.cpp:63 dcpp/Transfer.cpp:67 dcpp/ClientManager.cpp:115
+#: dcpp/Transfer.cpp:63 dcpp/Transfer.cpp:67 dcpp/ClientManager.cpp:114
#: dcpp/SearchManager.cpp:267 dcpp/SearchManager.cpp:329
#: dcpp/SearchManager.cpp:331
msgid "Offline"
@@ -348,7 +353,7 @@
#: dcpp/CryptoManager.cpp:221
#, boost-format
msgid "TLS disabled, failed to generate certificate: %1%"
-msgstr ""
+msgstr "TLS deaktiveret, det misslykkedes at skabe certifikat: %1%"
#: dcpp/CryptoManager.cpp:211
msgid "TLS disabled, no certificate file set"
Modified: dcplusplus/trunk/dcpp/po/de.po
===================================================================
--- dcplusplus/trunk/dcpp/po/de.po 2008-03-12 21:46:22 UTC (rev 1038)
+++ dcplusplus/trunk/dcpp/po/de.po 2008-03-13 22:02:50 UTC (rev 1039)
@@ -7,14 +7,14 @@
msgstr ""
"Project-Id-Version: dcplusplus\n"
"Report-Msgid-Bugs-To: dcp...@li...\n"
-"POT-Creation-Date: 2008-03-04 23:00+0100\n"
-"PO-Revision-Date: 2008-02-07 14:02+0000\n"
+"POT-Creation-Date: 2008-03-12 21:38+0100\n"
+"PO-Revision-Date: 2008-03-06 16:59+0000\n"
"Last-Translator: soccer <soc...@gm...>\n"
"Language-Team: German <de...@li...>\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
-"X-Launchpad-Export-Date: 2008-03-04 21:52+0000\n"
+"X-Launchpad-Export-Date: 2008-03-13 15:20+0000\n"
"X-Generator: Launchpad (build Unknown)\n"
#: dcpp/Util.cpp:381
@@ -50,7 +50,7 @@
#: dcpp/AdcHub.cpp:139
#, boost-format
msgid "%1% (%2%) has same CID {%3%} as %4% (%5%), ignoring"
-msgstr ""
+msgstr "%1% (%2%) hat die gleiche CID {%3%} wie %4% (%5%), wird ignoriert"
#: dcpp/NmdcHub.cpp:281
#, boost-format
@@ -73,12 +73,12 @@
#: dcpp/AdcHub.cpp:281
#, boost-format
msgid "%1% was kicked by %2%: %3%"
-msgstr ""
+msgstr "%1% wurde von %2% gekickt: %3%"
#: dcpp/AdcHub.cpp:284
#, boost-format
msgid "%1% was kicked: %2%"
-msgstr ""
+msgstr "%1% wurde gekickt: %2%"
#: dcpp/DownloadManager.cpp:530
#, boost-format
@@ -130,8 +130,13 @@
msgid "Certificate not trusted, unable to connect"
msgstr "Zertifikat nicht vertrauenswürdig, Verbindung nicht möglich"
+#: dcpp/BufferedSocket.cpp:148
+#, fuzzy
+msgid "Connection closed"
+msgstr "Zeitüberschreitung der Verbindung"
+
#: dcpp/Socket.cpp:154 dcpp/ConnectionManager.cpp:182
-#: dcpp/BufferedSocket.cpp:154
+#: dcpp/BufferedSocket.cpp:131
msgid "Connection timeout"
msgstr "Zeitüberschreitung der Verbindung"
@@ -144,7 +149,7 @@
msgid "Directory already shared"
msgstr "Verzeichnis ist bereits freigegeben"
-#: dcpp/BufferedSocket.cpp:407 dcpp/BufferedSocket.cpp:426
+#: dcpp/BufferedSocket.cpp:404
msgid "Disconnected"
msgstr "Getrennt"
@@ -209,7 +214,7 @@
#: dcpp/AdcHub.cpp:206
msgid "Failed to negotiate base protocol"
-msgstr ""
+msgstr "Basisprotokoll konnte nicht bestimmt werden"
#: dcpp/Socket.cpp:408
msgid ""
@@ -280,6 +285,8 @@
"Hub probably uses an old version of ADC, please encourage the owner to "
"upgrade"
msgstr ""
+"Hub benutzt möglicherweise eine alte Version von ADC. Bitte empfehlen Sie "
+"dem Besitzer zu aktualisieren."
#: dcpp/DownloadManager.cpp:220
msgid "Invalid size"
@@ -298,11 +305,11 @@
msgstr "Kicke User"
#: dcpp/ConnectionManager.cpp:230
-#, fuzzy, boost-format
+#, boost-format
msgid "Listening socket failed (you need to restart %1%): %2%"
-msgstr "Lesen vom Socket fehlgeschlagen (DC++ muss neugestartet werden): %1%"
+msgstr "Lesen vom Socket fehlgeschlagen (%1% muss neugestartet werden): %2%"
-#: dcpp/BufferedSocket.cpp:261
+#: dcpp/BufferedSocket.cpp:237
msgid "Maximum command length exceeded"
msgstr "Maximale Befehlslänge überschritten"
@@ -318,12 +325,12 @@
msgid "No slots available"
msgstr "Keine Slots verfügbar"
-#: dcpp/AdcHub.cpp:576
-#, fuzzy, boost-format
+#: dcpp/AdcHub.cpp:577
+#, boost-format
msgid "Not listening for connections - please restart %1%"
-msgstr "Es wird nicht auf Verbindungen gewartet - bitte DC++ neustarten"
+msgstr "Es wird nicht auf Verbindungen gewartet - bitte %1% neustarten"
-#: dcpp/Transfer.cpp:63 dcpp/Transfer.cpp:67 dcpp/ClientManager.cpp:115
+#: dcpp/Transfer.cpp:63 dcpp/Transfer.cpp:67 dcpp/ClientManager.cpp:114
#: dcpp/SearchManager.cpp:267 dcpp/SearchManager.cpp:329
#: dcpp/SearchManager.cpp:331
msgid "Offline"
@@ -338,9 +345,8 @@
msgstr "Alle Unterverzeichnisse entfernen bevor dieses hinzugefügt wird"
#: dcpp/DownloadManager.cpp:225
-#, fuzzy
msgid "Response does not match request"
-msgstr "Kompletter Baum stimmt nicht mit TTH Root überein"
+msgstr "Antwort stimmt nicht mit Anfrage überein"
#: dcpp/DCPlusPlus.cpp:100
msgid "Shared Files"
Modified: dcplusplus/trunk/dcpp/po/el.po
===================================================================
--- dcplusplus/trunk/dcpp/po/el.po 2008-03-12 21:46:22 UTC (rev 1038)
+++ dcplusplus/trunk/dcpp/po/el.po 2008-03-13 22:02:50 UTC (rev 1039)
@@ -7,12 +7,15 @@
msgstr ""
"Project-Id-Version: dcpp\n"
"Report-Msgid-Bugs-To: dcp...@li...\n"
-"POT-Creation-Date: 2008-03-04 23:00+0100\n"
-"Last-Translator: <jo...@us...>\n"
+"POT-Creation-Date: 2008-03-12 21:38+0100\n"
+"PO-Revision-Date: 2008-03-05 00:45+0000\n"
+"Last-Translator: Johnkok <Unknown>\n"
+"Language-Team: LANGUAGE <LL...@li...>\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
-"Plural-Forms: nplurals=2; plural=(n != 1);\n"
+"X-Launchpad-Export-Date: 2008-03-13 15:20+0000\n"
+"X-Generator: Launchpad (build Unknown)\n"
#: dcpp/Util.cpp:381
#, c-format, boost-format
@@ -124,8 +127,13 @@
msgid "Certificate not trusted, unable to connect"
msgstr "Μη ασφαλές πιστοποιητικό, αδύνατη η σύνδεση"
+#: dcpp/BufferedSocket.cpp:148
+#, fuzzy
+msgid "Connection closed"
+msgstr "Σύνδεση εκτός χρόνου"
+
#: dcpp/Socket.cpp:154 dcpp/ConnectionManager.cpp:182
-#: dcpp/BufferedSocket.cpp:154
+#: dcpp/BufferedSocket.cpp:131
msgid "Connection timeout"
msgstr "Σύνδεση εκτός χρόνου"
@@ -138,7 +146,7 @@
msgid "Directory already shared"
msgstr "Ο φάκελος είναι ήδη κοινόχρηστος"
-#: dcpp/BufferedSocket.cpp:407 dcpp/BufferedSocket.cpp:426
+#: dcpp/BufferedSocket.cpp:404
msgid "Disconnected"
msgstr "Αποσυνδέθηκε"
@@ -294,7 +302,7 @@
msgid "Listening socket failed (you need to restart %1%): %2%"
msgstr ""
-#: dcpp/BufferedSocket.cpp:261
+#: dcpp/BufferedSocket.cpp:237
msgid "Maximum command length exceeded"
msgstr "Υπέρβαση του μέγιστου μήκους εντολής"
@@ -310,12 +318,12 @@
msgid "No slots available"
msgstr "Δεν υπάρχουν ελεύθερες θέσεις"
-#: dcpp/AdcHub.cpp:576
+#: dcpp/AdcHub.cpp:577
#, boost-format
msgid "Not listening for connections - please restart %1%"
msgstr ""
-#: dcpp/Transfer.cpp:63 dcpp/Transfer.cpp:67 dcpp/ClientManager.cpp:115
+#: dcpp/Transfer.cpp:63 dcpp/Transfer.cpp:67 dcpp/ClientManager.cpp:114
#: dcpp/SearchManager.cpp:267 dcpp/SearchManager.cpp:329
#: dcpp/SearchManager.cpp:331
msgid "Offline"
Modified: dcplusplus/trunk/dcpp/po/en_GB.po
===================================================================
--- dcplusplus/trunk/dcpp/po/en_GB.po 2008-03-12 21:46:22 UTC (rev 1038)
+++ dcplusplus/trunk/dcpp/po/en_GB.po 2008-03-13 22:02:50 UTC (rev 1039)
@@ -7,14 +7,14 @@
msgstr ""
"Project-Id-Version: dcplusplus\n"
"Report-Msgid-Bugs-To: dcp...@li...\n"
-"POT-Creation-Date: 2008-03-04 23:00+0100\n"
-"PO-Revision-Date: 2008-02-28 12:52+0000\n"
+"POT-Creation-Date: 2008-03-12 21:38+0100\n"
+"PO-Revision-Date: 2008-03-06 11:07+0000\n"
"Last-Translator: MikeJJ <Unknown>\n"
"Language-Team: English (United Kingdom) <en...@li...>\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
-"X-Launchpad-Export-Date: 2008-03-04 21:52+0000\n"
+"X-Launchpad-Export-Date: 2008-03-13 15:20+0000\n"
"X-Generator: Launchpad (build Unknown)\n"
#: dcpp/Util.cpp:381
@@ -50,7 +50,7 @@
#: dcpp/AdcHub.cpp:139
#, boost-format
msgid "%1% (%2%) has same CID {%3%} as %4% (%5%), ignoring"
-msgstr ""
+msgstr "%1% (%2%) has same CID {%3%} as %4% (%5%), ignoring"
#: dcpp/NmdcHub.cpp:281
#, boost-format
@@ -72,12 +72,12 @@
#: dcpp/AdcHub.cpp:281
#, boost-format
msgid "%1% was kicked by %2%: %3%"
-msgstr ""
+msgstr "%1% was kicked by %2%: %3%"
#: dcpp/AdcHub.cpp:284
#, boost-format
msgid "%1% was kicked: %2%"
-msgstr ""
+msgstr "%1% was kicked: %2%"
#: dcpp/DownloadManager.cpp:530
#, boost-format
@@ -127,8 +127,13 @@
msgid "Certificate not trusted, unable to connect"
msgstr "Certificate not trusted, unable to connect"
+#: dcpp/BufferedSocket.cpp:148
+#, fuzzy
+msgid "Connection closed"
+msgstr "Connection timeout"
+
#: dcpp/Socket.cpp:154 dcpp/ConnectionManager.cpp:182
-#: dcpp/BufferedSocket.cpp:154
+#: dcpp/BufferedSocket.cpp:131
msgid "Connection timeout"
msgstr "Connection timeout"
@@ -141,7 +146,7 @@
msgid "Directory already shared"
msgstr "Directory already shared"
-#: dcpp/BufferedSocket.cpp:407 dcpp/BufferedSocket.cpp:426
+#: dcpp/BufferedSocket.cpp:404
msgid "Disconnected"
msgstr "Disconnected"
@@ -206,7 +211,7 @@
#: dcpp/AdcHub.cpp:206
msgid "Failed to negotiate base protocol"
-msgstr ""
+msgstr "Failed to negotiate base protocol"
#: dcpp/Socket.cpp:408
msgid ""
@@ -277,6 +282,8 @@
"Hub probably uses an old version of ADC, please encourage the owner to "
"upgrade"
msgstr ""
+"Hub probably uses an old version of ADC, please encourage the owner to "
+"upgrade"
#: dcpp/DownloadManager.cpp:220
msgid "Invalid size"
@@ -295,11 +302,11 @@
msgstr "Kick user(s)"
#: dcpp/ConnectionManager.cpp:230
-#, fuzzy, boost-format
+#, boost-format
msgid "Listening socket failed (you need to restart %1%): %2%"
-msgstr "Listening socket failed (you need to restart DC++): %1%"
+msgstr "Listening socket failed (you need to restart %1%): %2%"
-#: dcpp/BufferedSocket.cpp:261
+#: dcpp/BufferedSocket.cpp:237
msgid "Maximum command length exceeded"
msgstr "Maximum command length exceeded"
@@ -315,12 +322,12 @@
msgid "No slots available"
msgstr "No slots available"
-#: dcpp/AdcHub.cpp:576
-#, fuzzy, boost-format
+#: dcpp/AdcHub.cpp:577
+#, boost-format
msgid "Not listening for connections - please restart %1%"
-msgstr "Not listening for connections - please restart DC++"
+msgstr "Not listening for connections - please restart %1%"
-#: dcpp/Transfer.cpp:63 dcpp/Transfer.cpp:67 dcpp/ClientManager.cpp:115
+#: dcpp/Transfer.cpp:63 dcpp/Transfer.cpp:67 dcpp/ClientManager.cpp:114
#: dcpp/SearchManager.cpp:267 dcpp/SearchManager.cpp:329
#: dcpp/SearchManager.cpp:331
msgid "Offline"
@@ -335,9 +342,8 @@
msgstr "Remove all subdirectories before adding this one"
#: dcpp/DownloadManager.cpp:225
-#, fuzzy
msgid "Response does not match request"
-msgstr "Full tree does not match TTH root"
+msgstr "Response does not match request"
#: dcpp/DCPlusPlus.cpp:100
msgid "Shared Files"
Modified: dcplusplus/trunk/dcpp/po/es.po
===================================================================
--- dcplusplus/trunk/dcpp/po/es.po 2008-03-12 21:46:22 UTC (rev 1038)
+++ dcplusp...
[truncated message content] |
|
From: <pie...@us...> - 2008-03-14 22:13:59
|
Revision: 1040
http://dcplusplus.svn.sourceforge.net/dcplusplus/?rev=1040&view=rev
Author: pietricica
Date: 2008-03-14 15:13:55 -0700 (Fri, 14 Mar 2008)
Log Message:
-----------
edited changelog, nsi , version and some small errors in some po files.
Modified Paths:
--------------
dcplusplus/trunk/DCPlusPlus.nsi
dcplusplus/trunk/changelog.txt
dcplusplus/trunk/dcpp/po/es.po
dcplusplus/trunk/dcpp/version.h
dcplusplus/trunk/win32/DCPlusPlus.rc
dcplusplus/trunk/win32/po/es.po
dcplusplus/trunk/win32/po/ro.po
Modified: dcplusplus/trunk/DCPlusPlus.nsi
===================================================================
--- dcplusplus/trunk/DCPlusPlus.nsi 2008-03-13 22:02:50 UTC (rev 1039)
+++ dcplusplus/trunk/DCPlusPlus.nsi 2008-03-14 22:13:55 UTC (rev 1040)
@@ -64,6 +64,127 @@
File "LICENSE-OpenSSL.txt"
File "mingwm10.dll"
File "magnet.exe"
+ SetOutPath "$INSTDIR\locale\ar\LC_MESSAGES\"
+File "locale\ar\LC_MESSAGES\dcpp-win32.mo"
+File "locale\ar\LC_MESSAGES\libdcpp.mo"
+SetOutPath "$INSTDIR\locale\bg\LC_MESSAGES\"
+File "locale\bg\LC_MESSAGES\dcpp-win32.mo"
+File "locale\bg\LC_MESSAGES\libdcpp.mo"
+SetOutPath "$INSTDIR\locale\bs\LC_MESSAGES\"
+File "locale\bs\LC_MESSAGES\dcpp-win32.mo"
+File "locale\bs\LC_MESSAGES\libdcpp.mo"
+SetOutPath "$INSTDIR\locale\ca\LC_MESSAGES\"
+File "locale\ca\LC_MESSAGES\dcpp-win32.mo"
+File "locale\ca\LC_MESSAGES\libdcpp.mo"
+SetOutPath "$INSTDIR\locale\cs\LC_MESSAGES\"
+File "locale\cs\LC_MESSAGES\dcpp-win32.mo"
+File "locale\cs\LC_MESSAGES\libdcpp.mo"
+SetOutPath "$INSTDIR\locale\da\LC_MESSAGES\"
+File "locale\da\LC_MESSAGES\dcpp-win32.mo"
+File "locale\da\LC_MESSAGES\libdcpp.mo"
+SetOutPath "$INSTDIR\locale\de\LC_MESSAGES\"
+File "locale\de\LC_MESSAGES\dcpp-win32.mo"
+File "locale\de\LC_MESSAGES\libdcpp.mo"
+SetOutPath "$INSTDIR\locale\el\LC_MESSAGES\"
+File "locale\el\LC_MESSAGES\dcpp-win32.mo"
+File "locale\el\LC_MESSAGES\libdcpp.mo"
+SetOutPath "$INSTDIR\locale\en_GB\LC_MESSAGES\"
+File "locale\en_GB\LC_MESSAGES\dcpp-win32.mo"
+File "locale\en_GB\LC_MESSAGES\libdcpp.mo"
+SetOutPath "$INSTDIR\locale\es\LC_MESSAGES\"
+File "locale\es\LC_MESSAGES\dcpp-win32.mo"
+File "locale\es\LC_MESSAGES\libdcpp.mo"
+SetOutPath "$INSTDIR\locale\fi\LC_MESSAGES\"
+File "locale\fi\LC_MESSAGES\dcpp-win32.mo"
+File "locale\fi\LC_MESSAGES\libdcpp.mo"
+SetOutPath "$INSTDIR\locale\fr\LC_MESSAGES\"
+File "locale\fr\LC_MESSAGES\dcpp-win32.mo"
+File "locale\fr\LC_MESSAGES\libdcpp.mo"
+SetOutPath "$INSTDIR\locale\gl\LC_MESSAGES\"
+File "locale\gl\LC_MESSAGES\dcpp-win32.mo"
+File "locale\gl\LC_MESSAGES\libdcpp.mo"
+SetOutPath "$INSTDIR\locale\he\LC_MESSAGES\"
+File "locale\he\LC_MESSAGES\dcpp-win32.mo"
+File "locale\he\LC_MESSAGES\libdcpp.mo"
+SetOutPath "$INSTDIR\locale\hr\LC_MESSAGES\"
+File "locale\hr\LC_MESSAGES\dcpp-win32.mo"
+File "locale\hr\LC_MESSAGES\libdcpp.mo"
+SetOutPath "$INSTDIR\locale\hu\LC_MESSAGES\"
+File "locale\hu\LC_MESSAGES\dcpp-win32.mo"
+File "locale\hu\LC_MESSAGES\libdcpp.mo"
+SetOutPath "$INSTDIR\locale\id\LC_MESSAGES\"
+File "locale\id\LC_MESSAGES\dcpp-win32.mo"
+File "locale\id\LC_MESSAGES\libdcpp.mo"
+SetOutPath "$INSTDIR\locale\is\LC_MESSAGES\"
+File "locale\is\LC_MESSAGES\dcpp-win32.mo"
+File "locale\is\LC_MESSAGES\libdcpp.mo"
+SetOutPath "$INSTDIR\locale\it\LC_MESSAGES\"
+File "locale\it\LC_MESSAGES\dcpp-win32.mo"
+File "locale\it\LC_MESSAGES\libdcpp.mo"
+SetOutPath "$INSTDIR\locale\ja\LC_MESSAGES\"
+File "locale\ja\LC_MESSAGES\dcpp-win32.mo"
+File "locale\ja\LC_MESSAGES\libdcpp.mo"
+SetOutPath "$INSTDIR\locale\km\LC_MESSAGES\"
+File "locale\km\LC_MESSAGES\dcpp-win32.mo"
+File "locale\km\LC_MESSAGES\libdcpp.mo"
+SetOutPath "$INSTDIR\locale\ko\LC_MESSAGES\"
+File "locale\ko\LC_MESSAGES\dcpp-win32.mo"
+File "locale\ko\LC_MESSAGES\libdcpp.mo"
+SetOutPath "$INSTDIR\locale\lt\LC_MESSAGES\"
+File "locale\lt\LC_MESSAGES\dcpp-win32.mo"
+File "locale\lt\LC_MESSAGES\libdcpp.mo"
+SetOutPath "$INSTDIR\locale\lv\LC_MESSAGES\"
+File "locale\lv\LC_MESSAGES\dcpp-win32.mo"
+File "locale\lv\LC_MESSAGES\libdcpp.mo"
+SetOutPath "$INSTDIR\locale\mk\LC_MESSAGES\"
+File "locale\mk\LC_MESSAGES\dcpp-win32.mo"
+File "locale\mk\LC_MESSAGES\libdcpp.mo"
+SetOutPath "$INSTDIR\locale\ms\LC_MESSAGES\"
+
+File "locale\ms\LC_MESSAGES\libdcpp.mo"
+SetOutPath "$INSTDIR\locale\nb\LC_MESSAGES\"
+File "locale\nb\LC_MESSAGES\dcpp-win32.mo"
+File "locale\nb\LC_MESSAGES\libdcpp.mo"
+SetOutPath "$INSTDIR\locale\nl\LC_MESSAGES\"
+File "locale\nl\LC_MESSAGES\dcpp-win32.mo"
+File "locale\nl\LC_MESSAGES\libdcpp.mo"
+SetOutPath "$INSTDIR\locale\pl\LC_MESSAGES\"
+File "locale\pl\LC_MESSAGES\dcpp-win32.mo"
+File "locale\pl\LC_MESSAGES\libdcpp.mo"
+SetOutPath "$INSTDIR\locale\pt\LC_MESSAGES\"
+File "locale\pt\LC_MESSAGES\dcpp-win32.mo"
+File "locale\pt\LC_MESSAGES\libdcpp.mo"
+SetOutPath "$INSTDIR\locale\pt_BR\LC_MESSAGES\"
+File "locale\pt_BR\LC_MESSAGES\dcpp-win32.mo"
+File "locale\pt_BR\LC_MESSAGES\libdcpp.mo"
+SetOutPath "$INSTDIR\locale\ro\LC_MESSAGES\"
+File "locale\ro\LC_MESSAGES\dcpp-win32.mo"
+File "locale\ro\LC_MESSAGES\libdcpp.mo"
+SetOutPath "$INSTDIR\locale\ru\LC_MESSAGES\"
+File "locale\ru\LC_MESSAGES\dcpp-win32.mo"
+File "locale\ru\LC_MESSAGES\libdcpp.mo"
+SetOutPath "$INSTDIR\locale\sl\LC_MESSAGES\"
+File "locale\sl\LC_MESSAGES\dcpp-win32.mo"
+File "locale\sl\LC_MESSAGES\libdcpp.mo"
+SetOutPath "$INSTDIR\locale\sq\LC_MESSAGES\"
+File "locale\sq\LC_MESSAGES\dcpp-win32.mo"
+File "locale\sq\LC_MESSAGES\libdcpp.mo"
+SetOutPath "$INSTDIR\locale\sv\LC_MESSAGES\"
+File "locale\sv\LC_MESSAGES\dcpp-win32.mo"
+File "locale\sv\LC_MESSAGES\libdcpp.mo"
+SetOutPath "$INSTDIR\locale\tr\LC_MESSAGES\"
+File "locale\tr\LC_MESSAGES\dcpp-win32.mo"
+File "locale\tr\LC_MESSAGES\libdcpp.mo"
+SetOutPath "$INSTDIR\locale\uk\LC_MESSAGES\"
+File "locale\uk\LC_MESSAGES\dcpp-win32.mo"
+File "locale\uk\LC_MESSAGES\libdcpp.mo"
+SetOutPath "$INSTDIR\locale\zh_CN\LC_MESSAGES\"
+File "locale\zh_CN\LC_MESSAGES\dcpp-win32.mo"
+File "locale\zh_CN\LC_MESSAGES\libdcpp.mo"
+SetOutPath "$INSTDIR\locale\zh_TW\LC_MESSAGES\"
+File "locale\zh_TW\LC_MESSAGES\dcpp-win32.mo"
+File "locale\zh_TW\LC_MESSAGES\libdcpp.mo"
+
; Remove opencow just in case we're upgrading
Delete "$INSTDIR\opencow.dll"
@@ -125,7 +246,89 @@
Delete "$INSTDIR\Example.xml"
Delete "$INSTDIR\Magnet.exe"
Delete "$INSTDIR\GeoIPCountryWhois.csv"
+ Delete "$INSTDIR\mingwm10.dll"
+ Delete "$INSTDIR\locale\ar\LC_MESSAGES\dcpp-win32.mo"
+Delete "$INSTDIR\locale\ar\LC_MESSAGES\libdcpp.mo"
+Delete "$INSTDIR\locale\bg\LC_MESSAGES\dcpp-win32.mo"
+Delete "$INSTDIR\locale\bg\LC_MESSAGES\libdcpp.mo"
+Delete "$INSTDIR\locale\bs\LC_MESSAGES\dcpp-win32.mo"
+Delete "$INSTDIR\locale\bs\LC_MESSAGES\libdcpp.mo"
+Delete "$INSTDIR\locale\ca\LC_MESSAGES\dcpp-win32.mo"
+Delete "$INSTDIR\locale\ca\LC_MESSAGES\libdcpp.mo"
+Delete "$INSTDIR\locale\cs\LC_MESSAGES\dcpp-win32.mo"
+Delete "$INSTDIR\locale\cs\LC_MESSAGES\libdcpp.mo"
+Delete "$INSTDIR\locale\da\LC_MESSAGES\dcpp-win32.mo"
+Delete "$INSTDIR\locale\da\LC_MESSAGES\libdcpp.mo"
+Delete "$INSTDIR\locale\de\LC_MESSAGES\dcpp-win32.mo"
+Delete "$INSTDIR\locale\de\LC_MESSAGES\libdcpp.mo"
+Delete "$INSTDIR\locale\el\LC_MESSAGES\dcpp-win32.mo"
+Delete "$INSTDIR\locale\el\LC_MESSAGES\libdcpp.mo"
+Delete "$INSTDIR\locale\en_GB\LC_MESSAGES\dcpp-win32.mo"
+Delete "$INSTDIR\locale\en_GB\LC_MESSAGES\libdcpp.mo"
+Delete "$INSTDIR\locale\es\LC_MESSAGES\dcpp-win32.mo"
+Delete "$INSTDIR\locale\es\LC_MESSAGES\libdcpp.mo"
+Delete "$INSTDIR\locale\fi\LC_MESSAGES\dcpp-win32.mo"
+Delete "$INSTDIR\locale\fi\LC_MESSAGES\libdcpp.mo"
+Delete "$INSTDIR\locale\fr\LC_MESSAGES\dcpp-win32.mo"
+Delete "$INSTDIR\locale\fr\LC_MESSAGES\libdcpp.mo"
+Delete "$INSTDIR\locale\gl\LC_MESSAGES\dcpp-win32.mo"
+Delete "$INSTDIR\locale\gl\LC_MESSAGES\libdcpp.mo"
+Delete "$INSTDIR\locale\he\LC_MESSAGES\dcpp-win32.mo"
+Delete "$INSTDIR\locale\he\LC_MESSAGES\libdcpp.mo"
+Delete "$INSTDIR\locale\hr\LC_MESSAGES\dcpp-win32.mo"
+Delete "$INSTDIR\locale\hr\LC_MESSAGES\libdcpp.mo"
+Delete "$INSTDIR\locale\hu\LC_MESSAGES\dcpp-win32.mo"
+Delete "$INSTDIR\locale\hu\LC_MESSAGES\libdcpp.mo"
+Delete "$INSTDIR\locale\id\LC_MESSAGES\dcpp-win32.mo"
+Delete "$INSTDIR\locale\id\LC_MESSAGES\libdcpp.mo"
+Delete "$INSTDIR\locale\is\LC_MESSAGES\dcpp-win32.mo"
+Delete "$INSTDIR\locale\is\LC_MESSAGES\libdcpp.mo"
+Delete "$INSTDIR\locale\it\LC_MESSAGES\dcpp-win32.mo"
+Delete "$INSTDIR\locale\it\LC_MESSAGES\libdcpp.mo"
+Delete "$INSTDIR\locale\ja\LC_MESSAGES\dcpp-win32.mo"
+Delete "$INSTDIR\locale\ja\LC_MESSAGES\libdcpp.mo"
+Delete "$INSTDIR\locale\km\LC_MESSAGES\dcpp-win32.mo"
+Delete "$INSTDIR\locale\km\LC_MESSAGES\libdcpp.mo"
+Delete "$INSTDIR\locale\ko\LC_MESSAGES\dcpp-win32.mo"
+Delete "$INSTDIR\locale\ko\LC_MESSAGES\libdcpp.mo"
+Delete "$INSTDIR\locale\lt\LC_MESSAGES\dcpp-win32.mo"
+Delete "$INSTDIR\locale\lt\LC_MESSAGES\libdcpp.mo"
+Delete "$INSTDIR\locale\lv\LC_MESSAGES\dcpp-win32.mo"
+Delete "$INSTDIR\locale\lv\LC_MESSAGES\libdcpp.mo"
+Delete "$INSTDIR\locale\mk\LC_MESSAGES\dcpp-win32.mo"
+Delete "$INSTDIR\locale\mk\LC_MESSAGES\libdcpp.mo"
+Delete "$INSTDIR\locale\ms\LC_MESSAGES\dcpp-win32.mo"
+Delete "$INSTDIR\locale\ms\LC_MESSAGES\libdcpp.mo"
+Delete "$INSTDIR\locale\nb\LC_MESSAGES\dcpp-win32.mo"
+Delete "$INSTDIR\locale\nb\LC_MESSAGES\libdcpp.mo"
+Delete "$INSTDIR\locale\nl\LC_MESSAGES\dcpp-win32.mo"
+Delete "$INSTDIR\locale\nl\LC_MESSAGES\libdcpp.mo"
+Delete "$INSTDIR\locale\pl\LC_MESSAGES\dcpp-win32.mo"
+Delete "$INSTDIR\locale\pl\LC_MESSAGES\libdcpp.mo"
+Delete "$INSTDIR\locale\pt\LC_MESSAGES\dcpp-win32.mo"
+Delete "$INSTDIR\locale\pt\LC_MESSAGES\libdcpp.mo"
+Delete "$INSTDIR\locale\pt_BR\LC_MESSAGES\dcpp-win32.mo"
+Delete "$INSTDIR\locale\pt_BR\LC_MESSAGES\libdcpp.mo"
+Delete "$INSTDIR\locale\ro\LC_MESSAGES\dcpp-win32.mo"
+Delete "$INSTDIR\locale\ro\LC_MESSAGES\libdcpp.mo"
+Delete "$INSTDIR\locale\ru\LC_MESSAGES\dcpp-win32.mo"
+Delete "$INSTDIR\locale\ru\LC_MESSAGES\libdcpp.mo"
+Delete "$INSTDIR\locale\sl\LC_MESSAGES\dcpp-win32.mo"
+Delete "$INSTDIR\locale\sl\LC_MESSAGES\libdcpp.mo"
+Delete "$INSTDIR\locale\sq\LC_MESSAGES\dcpp-win32.mo"
+Delete "$INSTDIR\locale\sq\LC_MESSAGES\libdcpp.mo"
+Delete "$INSTDIR\locale\sv\LC_MESSAGES\dcpp-win32.mo"
+Delete "$INSTDIR\locale\sv\LC_MESSAGES\libdcpp.mo"
+Delete "$INSTDIR\locale\tr\LC_MESSAGES\dcpp-win32.mo"
+Delete "$INSTDIR\locale\tr\LC_MESSAGES\libdcpp.mo"
+Delete "$INSTDIR\locale\uk\LC_MESSAGES\dcpp-win32.mo"
+Delete "$INSTDIR\locale\uk\LC_MESSAGES\libdcpp.mo"
+Delete "$INSTDIR\locale\zh_CN\LC_MESSAGES\dcpp-win32.mo"
+Delete "$INSTDIR\locale\zh_CN\LC_MESSAGES\libdcpp.mo"
+Delete "$INSTDIR\locale\zh_TW\LC_MESSAGES\dcpp-win32.mo"
+Delete "$INSTDIR\locale\zh_TW\LC_MESSAGES\libdcpp.mo"
+
; Remove registry entries
; dchub is likely only to be registered to us
; magnet is likely to be registere to other p2p apps
Modified: dcplusplus/trunk/changelog.txt
===================================================================
--- dcplusplus/trunk/changelog.txt 2008-03-13 22:02:50 UTC (rev 1039)
+++ dcplusplus/trunk/changelog.txt 2008-03-14 22:13:55 UTC (rev 1040)
@@ -1,4 +1,4 @@
--- 0.705 --
+-- 0.705 2008-03-14 --
* Several patches for better *nix compatibility of the core (thanks steven sheehy et al)
* Improve segmented download implementation
* Fix search request ip when using multiple ip's (thanks stanislav maslovski)
Modified: dcplusplus/trunk/dcpp/po/es.po
===================================================================
--- dcplusplus/trunk/dcpp/po/es.po 2008-03-13 22:02:50 UTC (rev 1039)
+++ dcplusplus/trunk/dcpp/po/es.po 2008-03-14 22:13:55 UTC (rev 1040)
@@ -73,7 +73,7 @@
#: dcpp/AdcHub.cpp:281
#, boost-format
msgid "%1% was kicked by %2%: %3%"
-msgstr "% 1% ha sido expulsado de% 2%:% 3%"
+msgstr "%1% ha sido expulsado de% 2%:% 3%"
#: dcpp/AdcHub.cpp:284
#, boost-format
Modified: dcplusplus/trunk/dcpp/version.h
===================================================================
--- dcplusplus/trunk/dcpp/version.h 2008-03-13 22:02:50 UTC (rev 1039)
+++ dcplusplus/trunk/dcpp/version.h 2008-03-14 22:13:55 UTC (rev 1040)
@@ -17,7 +17,7 @@
*/
#define APPNAME "DC++"
-#define VERSIONSTRING "0.704"
-#define VERSIONFLOAT 0.704
+#define VERSIONSTRING "0.705"
+#define VERSIONFLOAT 0.705
/* Update the .rc file as well... */
Modified: dcplusplus/trunk/win32/DCPlusPlus.rc
===================================================================
--- dcplusplus/trunk/win32/DCPlusPlus.rc 2008-03-13 22:02:50 UTC (rev 1039)
+++ dcplusplus/trunk/win32/DCPlusPlus.rc 2008-03-14 22:13:55 UTC (rev 1040)
@@ -835,8 +835,8 @@
//
VS_VERSION_INFO VERSIONINFO
- FILEVERSION 0,7,0,4
- PRODUCTVERSION 0,7,0,4
+ FILEVERSION 0,7,0,5
+ PRODUCTVERSION 0,7,0,5
FILEFLAGSMASK 0x3fL
#ifdef _DEBUG
FILEFLAGS 0x1L
@@ -853,12 +853,12 @@
BEGIN
VALUE "Comments", "http://dcplusplus.sourceforge.net"
VALUE "FileDescription", "DC++"
- VALUE "FileVersion", "0, 7, 0, 4"
+ VALUE "FileVersion", "0, 7, 0, 5"
VALUE "InternalName", "DC++"
- VALUE "LegalCopyright", "Copyright 2001-2006 Jacek Sieka"
+ VALUE "LegalCopyright", "Copyright 2001-2008 Jacek Sieka"
VALUE "OriginalFilename", "DCPlusPlus.exe"
VALUE "ProductName", "DC++"
- VALUE "ProductVersion", "0, 7, 0, 4"
+ VALUE "ProductVersion", "0, 7, 0, 5"
END
END
BLOCK "VarFileInfo"
Modified: dcplusplus/trunk/win32/po/es.po
===================================================================
--- dcplusplus/trunk/win32/po/es.po 2008-03-13 22:02:50 UTC (rev 1039)
+++ dcplusplus/trunk/win32/po/es.po 2008-03-14 22:13:55 UTC (rev 1040)
@@ -1212,7 +1212,7 @@
#: win32/SplashWindow.cpp:77
#, boost-format
msgid "Loading DC++, please wait... (%1%)"
-msgstr "Cargando DC++, por favor espere ... (% 1%)"
+msgstr "Cargando DC++, por favor espere ... (%1%)"
#: win32/LogPage.cpp:47
msgid "Log downloads"
@@ -1726,7 +1726,7 @@
#: win32/TransferView.cpp:703
#, boost-format
msgid "Requesting %1%"
-msgstr "Solicitando % 1%"
+msgstr "Solicitando %1%"
#: win32/HashProgressDlg.cpp:48
msgid "Run in background"
@@ -2116,7 +2116,7 @@
#: win32/HubFrame.cpp:387
#, boost-format
msgid "Unknown command: %1%"
-msgstr "Comando desconocido:% 1%"
+msgstr "Comando desconocido: %1%"
#: win32/UploadPage.cpp:41
msgid "Upload slots"
Modified: dcplusplus/trunk/win32/po/ro.po
===================================================================
--- dcplusplus/trunk/win32/po/ro.po 2008-03-13 22:02:50 UTC (rev 1039)
+++ dcplusplus/trunk/win32/po/ro.po 2008-03-14 22:13:55 UTC (rev 1040)
@@ -24,7 +24,7 @@
msgid ""
"%1%\n"
"Open download page?"
-msgstr "Deschide pagina de descărcare?"
+msgstr "%1%\nDeschide pagina de descărcare?"
#: win32/TransferView.cpp:571
#, boost-format
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <arn...@us...> - 2008-03-16 16:28:34
|
Revision: 1042
http://dcplusplus.svn.sourceforge.net/dcplusplus/?rev=1042&view=rev
Author: arnetheduck
Date: 2008-03-16 09:28:29 -0700 (Sun, 16 Mar 2008)
Log Message:
-----------
i18n fixes
Modified Paths:
--------------
dcplusplus/trunk/SConstruct
dcplusplus/trunk/dcpp/SConscript
dcplusplus/trunk/win32/AboutDlg.cpp
dcplusplus/trunk/win32/Advanced3Page.cpp
dcplusplus/trunk/win32/DCPlusPlus.rc
dcplusplus/trunk/win32/SConscript
dcplusplus/trunk/win32/resource.h
Modified: dcplusplus/trunk/SConstruct
===================================================================
--- dcplusplus/trunk/SConstruct 2008-03-14 22:26:18 UTC (rev 1041)
+++ dcplusplus/trunk/SConstruct 2008-03-16 16:28:29 UTC (rev 1042)
@@ -160,7 +160,7 @@
pot_args = ['xgettext', '--from-code=UTF-8', '--foreign-user', '--package-name=$PACKAGE',
'--copyright-holder=Jacek Sieka', '--msg...@li...',
'--no-wrap', '--keyword=_', '--keyword=T_', '--keyword=TF_', '--keyword=TFN_:1,2',
- '--keyword=F_', '--keyword=gettext_noop', '--keyword=N_', '--boost', '-s',
+ '--keyword=F_', '--keyword=gettext_noop', '--keyword=N_', '--keyword=CT_', '--boost', '-s',
'--output=$TARGET', '$SOURCES']
pot_bld = Builder (action = Action([pot_args], 'Extracting messages to $TARGET from $SOURCES'))
Modified: dcplusplus/trunk/dcpp/SConscript
===================================================================
--- dcplusplus/trunk/dcpp/SConscript 2008-03-14 22:26:18 UTC (rev 1041)
+++ dcplusplus/trunk/dcpp/SConscript 2008-03-16 16:28:29 UTC (rev 1042)
@@ -39,8 +39,10 @@
env.Append(CPPDEFINES=["BUILDING_DCPP=1"])
-dev.i18n(source_path, env, sources, 'libdcpp')
+headers=dev.get_sources(source_path, "*.h")
+dev.i18n(source_path, env, [sources, headers], 'libdcpp')
+
ret = env.StaticLibrary(target, sources)
Return('ret')
Modified: dcplusplus/trunk/win32/AboutDlg.cpp
===================================================================
--- dcplusplus/trunk/win32/AboutDlg.cpp 2008-03-14 22:26:18 UTC (rev 1041)
+++ dcplusplus/trunk/win32/AboutDlg.cpp 2008-03-16 16:28:29 UTC (rev 1042)
@@ -53,12 +53,20 @@
}
bool AboutDlg::handleInitDialog() {
- setItemText(IDC_VERSION, Text::toT("DC++ " VERSIONSTRING "\n(c) Copyright 2001-2008 Jacek Sieka\nEx-codeveloper: Per Lind\303\251n\nGraphics: Martin Skogevall et al.\nDC++ is licenced under GPL\nhttp://dcplusplus.sourceforge.net/"));
- attachTextBox(IDC_TTH)->setText(WinUtil::tth);
- attachTextBox(IDC_THANKS)->setText(Text::toT(thanks));
+ setText(T_("About DC++"));
+
+ setItemText(IDC_VERSION, Text::toT(APPNAME " " VERSIONSTRING) + T_("\n(c) Copyright 2001-2008 Jacek Sieka\nEx-codeveloper: Per Lind\303\251n\nGraphics: Martin Skogevall et al.\nDC++ is licenced under GPL\nhttp://dcplusplus.sourceforge.net/"));
+ setItemText(IDC_TTH, WinUtil::tth);
+ setItemText(IDC_THANKS, Text::toT(thanks));
setItemText(IDC_TOTALS, str(TF_("Upload: %1%, Download: %2%") % Text::toT(Util::formatBytes(SETTING(TOTAL_UPLOAD))) % Text::toT(Util::formatBytes(SETTING(TOTAL_DOWNLOAD)))));
+ setItemText(IDC_GREETZ, T_("Greetz and Contributors"));
+ setItemText(IDC_TOTALS, T_("Totals"));
+ setItemText(IDC_LATEST_VERSION, T_("Latest stable version"));
+
if(SETTING(TOTAL_DOWNLOAD) > 0) {
setItemText(IDC_RATIO, str(TF_("Ratio (up/down): %1$0.2f") % (((double)SETTING(TOTAL_UPLOAD)) / ((double)SETTING(TOTAL_DOWNLOAD)))));
+ } else {
+ setItemText(IDC_RATIO, str(TF_("No transfers yet") % (((double)SETTING(TOTAL_UPLOAD)) / ((double)SETTING(TOTAL_DOWNLOAD)))));
}
setItemText(IDC_LATEST, T_("Downloading..."));
Modified: dcplusplus/trunk/win32/Advanced3Page.cpp
===================================================================
--- dcplusplus/trunk/win32/Advanced3Page.cpp 2008-03-14 22:26:18 UTC (rev 1041)
+++ dcplusplus/trunk/win32/Advanced3Page.cpp 2008-03-16 16:28:29 UTC (rev 1042)
@@ -40,6 +40,8 @@
{ IDC_SETTINGS_AUTO_REFRESH_TIME, N_("Auto refresh time") },
{ IDC_SETTINGS_AUTO_SEARCH_LIMIT, N_("Auto-search limit") },
{ IDC_SETTINGS_MIN_SEGMENT_SIZE, N_("Min segment size") },
+ { IDC_SETTINGS_SOCKET_IN_BUFFER, N_("Socket read buffer") },
+ { IDC_SETTINGS_SOCKET_OUT_BUFFER, N_("Socket write buffer") },
{ 0, 0 }
};
Modified: dcplusplus/trunk/win32/DCPlusPlus.rc
===================================================================
--- dcplusplus/trunk/win32/DCPlusPlus.rc 2008-03-14 22:26:18 UTC (rev 1041)
+++ dcplusplus/trunk/win32/DCPlusPlus.rc 2008-03-16 16:28:29 UTC (rev 1042)
@@ -94,10 +94,10 @@
GROUPBOX "",IDC_STATIC,7,7,229,102
EDITTEXT IDC_TTH,35,93,196,12,ES_AUTOHSCROLL | ES_READONLY | NOT WS_BORDER
LTEXT "TTH:",IDC_STATIC,13,93,18,12
- GROUPBOX "Greetz && Contributors",IDC_STATIC,7,112,229,82,BS_CENTER
- GROUPBOX "Latest version",IDC_STATIC,7,239,229,24,BS_CENTER
+ GROUPBOX "Greetz and Contributors",IDC_GREETZ,7,112,229,82,BS_CENTER
+ GROUPBOX "Latest stable version",IDC_LATEST_VERSION,7,239,229,24,BS_CENTER
CTEXT "0.xxx",IDC_LATEST,13,250,218,8
- GROUPBOX "Totals",IDC_STATIC,7,197,229,39,BS_CENTER
+ GROUPBOX "Totals",IDC_TOTALS,7,197,229,39,BS_CENTER
CTEXT "Upload: xx.xx MiB, Download: xx.xx MiB",IDC_TOTALS,13,208,218,8
CTEXT "Ratio (Up/Down): x.xx",IDC_RATIO,13,221,218,8
EDITTEXT IDC_THANKS,13,122,218,66,ES_MULTILINE | ES_READONLY | WS_VSCROLL
Modified: dcplusplus/trunk/win32/SConscript
===================================================================
--- dcplusplus/trunk/win32/SConscript 2008-03-14 22:26:18 UTC (rev 1041)
+++ dcplusplus/trunk/win32/SConscript 2008-03-16 16:28:29 UTC (rev 1042)
@@ -14,7 +14,8 @@
env.Append(CPPPATH=['#/openssl/include', "#/smartwin/include", "#/"])
env.Append(LIBPATH=["#/openssl/lib"])
-dev.i18n(source_path, env, sources, 'dcpp-win32')
+headers=dev.get_sources(source_path, "*.h")
+dev.i18n(source_path, env, [sources,headers], 'dcpp-win32')
ret = env.Program(target, [sources, res, dev.client, dev.zlib, dev.bzip2, dev.smartwin, dev.boost, dev.intl])
Return('ret')
Modified: dcplusplus/trunk/win32/resource.h
===================================================================
--- dcplusplus/trunk/win32/resource.h 2008-03-14 22:26:18 UTC (rev 1041)
+++ dcplusplus/trunk/win32/resource.h 2008-03-16 16:28:29 UTC (rev 1042)
@@ -449,5 +449,7 @@
#define IDC_SETTINGS_PAGES 2291
#define IDC_SETTINGS_MIN_SEGMENT_SIZE 2292
#define IDC_MIN_SEGMENT_SIZE 2293
+#define IDC_GREETZ 2294
+#define IDC_LATEST_VERSION 2295
#endif
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <arn...@us...> - 2008-03-18 20:03:47
|
Revision: 1045
http://dcplusplus.svn.sourceforge.net/dcplusplus/?rev=1045&view=rev
Author: arnetheduck
Date: 2008-03-18 13:03:39 -0700 (Tue, 18 Mar 2008)
Log Message:
-----------
patch + split out rectangle
Modified Paths:
--------------
dcplusplus/trunk/changelog.txt
dcplusplus/trunk/dcpp/DCPlusPlus.cpp
dcplusplus/trunk/smartwin/include/smartwin/BasicTypes.h
dcplusplus/trunk/smartwin/include/smartwin/CanvasClasses.h
dcplusplus/trunk/smartwin/include/smartwin/Place.h
dcplusplus/trunk/smartwin/include/smartwin/Widget.h
dcplusplus/trunk/smartwin/include/smartwin/aspects/AspectSizable.h
dcplusplus/trunk/smartwin/include/smartwin/widgets/WidgetCoolbar.h
dcplusplus/trunk/smartwin/include/smartwin/widgets/WidgetListViewEditBox.h
dcplusplus/trunk/smartwin/include/smartwin/widgets/WidgetStatusBar.h
dcplusplus/trunk/smartwin/include/smartwin/widgets/WidgetWindowBase.h
dcplusplus/trunk/smartwin/source/BasicTypes.cpp
dcplusplus/trunk/smartwin/source/CanvasClasses.cpp
dcplusplus/trunk/smartwin/source/Widget.cpp
dcplusplus/trunk/smartwin/source/widgets/WidgetMDIChild.cpp
dcplusplus/trunk/smartwin/source/widgets/WidgetMDIParent.cpp
dcplusplus/trunk/smartwin/source/widgets/WidgetMenu.cpp
dcplusplus/trunk/smartwin/source/widgets/WidgetTabSheet.cpp
dcplusplus/trunk/smartwin/source/widgets/WidgetTabView.cpp
dcplusplus/trunk/win32/CommandDlg.cpp
dcplusplus/trunk/win32/CommandDlg.h
dcplusplus/trunk/win32/DCPlusPlus.rc
dcplusplus/trunk/win32/HubFrame.cpp
dcplusplus/trunk/win32/MainWindow.cpp
dcplusplus/trunk/win32/MainWindow.h
dcplusplus/trunk/win32/PrivateFrame.cpp
dcplusplus/trunk/win32/PropPage.cpp
dcplusplus/trunk/win32/PropPage.h
dcplusplus/trunk/win32/PublicHubsFrame.cpp
dcplusplus/trunk/win32/SearchFrame.cpp
dcplusplus/trunk/win32/SettingsDialog.cpp
dcplusplus/trunk/win32/SettingsDialog.h
dcplusplus/trunk/win32/StatsFrame.cpp
dcplusplus/trunk/win32/WidgetPaned.h
Added Paths:
-----------
dcplusplus/trunk/smartwin/include/smartwin/Rectangle.h
dcplusplus/trunk/smartwin/include/smartwin/aspects/AspectHelp.h
dcplusplus/trunk/smartwin/source/Rectangle.cpp
Modified: dcplusplus/trunk/changelog.txt
===================================================================
--- dcplusplus/trunk/changelog.txt 2008-03-18 19:30:28 UTC (rev 1044)
+++ dcplusplus/trunk/changelog.txt 2008-03-18 20:03:39 UTC (rev 1045)
@@ -1,4 +1,9 @@
--- 0.705 2008-03-14 --
+-- 0.706 --
+* [L#202563] Fixed some missing translations
+* Fixed help links (thanks poy)
+* Use setenv on unix (thanks yakov suraev)
+
+-- 0.705 2008-03-14 --
* Several patches for better *nix compatibility of the core (thanks steven sheehy et al)
* Improve segmented download implementation
* Fix search request ip when using multiple ip's (thanks stanislav maslovski)
Modified: dcplusplus/trunk/dcpp/DCPlusPlus.cpp
===================================================================
--- dcplusplus/trunk/dcpp/DCPlusPlus.cpp 2008-03-18 19:30:28 UTC (rev 1044)
+++ dcplusplus/trunk/dcpp/DCPlusPlus.cpp 2008-03-18 20:03:39 UTC (rev 1045)
@@ -84,8 +84,12 @@
SettingsManager::getInstance()->load();
if(!SETTING(LANGUAGE).empty()) {
+#ifdef _WIN32
string language = "LANGUAGE=" + SETTING(LANGUAGE);
putenv(language.c_str());
+#else
+ setenv("LANGUAGE", SETTING(LANGUAGE).c_str(), true);
+#endif
// Apparently this is supposted to make gettext reload the message catalog...
_nl_msg_cat_cntr++;
}
Modified: dcplusplus/trunk/smartwin/include/smartwin/BasicTypes.h
===================================================================
--- dcplusplus/trunk/smartwin/include/smartwin/BasicTypes.h 2008-03-18 19:30:28 UTC (rev 1044)
+++ dcplusplus/trunk/smartwin/include/smartwin/BasicTypes.h 2008-03-18 20:03:39 UTC (rev 1045)
@@ -29,7 +29,6 @@
#define BasicTypes_h
#include "WindowsHeaders.h"
-#include "../../SmartUtil/tstring.h"
namespace SmartWin
{
@@ -38,7 +37,7 @@
/// POD structure for defining a point
/** Used in e.g. functions that take a mouse position etc...
*/
-struct Point : POINT
+struct Point : ::POINT
{
/// Constructor initializing the point with the given arguments.
/** Constructor initializing the structure with the given arguments. Takes x and
@@ -147,296 +146,6 @@
*/
bool operator != ( const Point & lhs, const Point & rhs );
-/// Data structure for defining a rectangle
-/** \ingroup WidgetLayout
- * The two Point data members, pos and size, define a rectangle. <br>
- * pos has the x,y position of the upper-left rectangle coordinate. <br>
- * size defines the x and y distance between the upper left and the lower right
- * coordinate. <br>
- * (pos + size) defines the lower right coordinate. <br>
- * Many window functions takes or returns a Rectangle. <br>
- * See the Layout module documentation for the use of Rectangle in positioning
- * widgets. <br>
- * The member functions are helpful in dividing large rectangles into smaller ones,
- * which is exactly what is needed to layout widgets in windows.
- */
-struct Rectangle
-{
- /// Position of the upper left corner of the Rectangle
- Point pos;
-
- /// Size of the Rectangle
- Point size;
-
- /// Constructor initializing the rectangle to (0, 0, 0, 0).
- /** Default constructor initializing everything to zero (0)
- */
- Rectangle();
-
- Rectangle(const RECT& rc);
-
- /// Constructor initializing the rectangle with a position and size.
- /** Note that the pSize is actually a size and NOT the lower right Point.
- */
- Rectangle( const Point & pPos, const Point & pSize );
-
- /// Constructor initializing the rectangle with a size.
- /** Note that the pSize is actually a size and NOT the lower right Point,
- * position is defaulted to 0,0.
- */
- explicit Rectangle( const Point & pSize );
-
- /// Constructor initializing the rectangle with longs instead of Points.
- /** ( x,y ) defines the upper right corner, ( x+width, y+height ) defines the
- * lower left corner.
- */
- Rectangle( long x, long y, long width, long height );
-
- /// Constructor creates a new rectangle with a fractional position and size of
- /// the old rect.
- /** It computes the new rectangle by using subrect(): <br>
- * (xFraction * size.x) is the amount to add to pos.x <br>
- * size.x *= widthFraction <br>
- * <br>
- * <pre>
- * Examples :
- * upper half is r2( r1, 0, 0, 1, 0.5 ) (Same position, same width, 0.5 height )
- * lower half is r2( r1, 0, 0.5, 1, 0.5 ) (y half down, same width, 0.5 height )
- * left half is r2( r1, 0, 0, 0.5, 1 ) (Same position, 0.5 width, same height )
- * right half is r2( r1, 0.5, 0, 0.5, 1 )
- * Lower right quarter is r2( r1, .5, .5, .5, .5)
- * center r2 inside r1 is r2( r1, .334, .334, .334, .334)
- * </pre>
- */
- Rectangle( const Rectangle & rect,
- double xFraction, double yFraction,
- double widthFraction, double heightFraction );
-
- operator RECT() const;
-
- /// Return the lower right point of the rectangle.
- /** Note that the rectangle is defined with pos, and a size, so we need this
- * function. <br>
- * Example: <br>
- * Rectangle r1( 10, 10, 100, 200 ); <br>
- * Point lr = r1.LowRight() <br>
- * gives lr.x = 110, lr.y = 210
- */
- Point lowRight() const;
-
- /// Creates a sub rectangle from an old rectangle.
- /** The pos is adjusted by the xFraction and yFraction of the
- * width and height of r. The size is also shrunk.
- * r1.SubRect( 0, 0, 1, 0.5 ) gives the upper half of r1 <br>
- * r1.SubRect( 0.5, 0, 0.5, 1 ) gives the right half of r1 <br>
- * r1.SubRect( .334, .334, .334, .334 ) centers r2 inside r1 <br>
- * r1.SubRect( .2, .2, .6, .6 ) also centers r2 inside r1 <br>
- * <pre>
- * OOOOOOOOOO is given by subRect( 0.3, 0.5, 0.4, 0.5 );
- * OOOOOOOOOO (x moved 30%, y moved 50% )
- * OOO++++OOO (x resized to 40%, y resized to 50% )
- * OOO++++OOO
- * </pre>
- */
- Rectangle subRect( double xFraction, double yFraction,
- double widthFraction, double heightFraction ) const;
-
- /// Size of the rectangle will be * factor, Position adjusted for the same center.
- /** Creates a smaller rectangle from the old rectangle. <br>
- * size.x *= factor, and pos.x is adjusted inwards to compensate. <br>
- * <pre>
- * ####
- * #### -> ##
- * #### ##
- * ####
- * </pre>
- * shows the effect of shrink( 0.5 ) <br>
- * shrink( long border ) is similar, but removes a constant border amount of
- * pixels on all sides.
- */
- Rectangle shrink( double factor ) const;
-
- /// Move inwards by xBorder and shrink the size by 2*xBorder
- /** A rectangle of #### changes to ##.<br>
- * The rectangle becomes smaller at the left and right, but has the same center.
- */
- Rectangle shrinkWidth( long xBorder ) const;
-
- /// Move inwards by yBorder and shrink the size by 2*yBorder
- /** <pre>
- * ####
- * #### -> ####
- * #### ####
- * ####
- *
- * </pre>
- * The rectangle becomes smaller at the top and bottom, but has the same center.
- */
- Rectangle shrinkHeight( long yBorder ) const;
-
- /// Move inwards by both xBorder and yBorder and shrink the size by 2*yBorder
- /// and 2*xBorder
- /** <pre>
- * ####
- * #### -> ##
- * #### ##
- * ####
- * </pre>
- * The rectangle shrinks, but has the same center.
- */
- Rectangle shrink( long xBorder, long yBorder ) const;
-
- /// For both dimensions, move inwards by Border and shrink the size by 2*Border
- /** We add border to the position, and subtract it twice from the size. Same as
- * shrink( long xBorder, long yBorder ); except the x and y border are the same.
- * shrink( double factor ) is similar, but expresses the new rectangle as a
- * fraction of the old.
- */
- Rectangle shrink( long border ) const;
-
- /// Return the upper rectangle of height y
- /** We return the upper rectangle of height y.<br>
- * Example: <br>
- * Rectangle rect( 0,0, 100, 100 );<br>
- * Rectangle t = rect.getTop( 10 );
- * Now: t.pos = 0,0 t.size = 100,10<br>
- */
- Rectangle getTop( long y ) const;
-
- /// Return the lower rectangle starting from y
- /** We return the lower rectangle of height y<br>
- * Example: <br>
- * Rectangle rect( 0,0, 100, 100 );<br>
- * Rectangle t = rect.getBottom( 10 );
- * Now: t.pos = 0,90 t.size = 100,10<br>
- */
- Rectangle getBottom( long y ) const;
-
- /// Return the left rectangle of widght x.
- /** We return the left rectangle of width x<br>
- * Example: <br>
- * Rectangle rect( 0, 0, 100, 100 );<br>
- * Rectangle t = rect.getLeft( 10 );
- * Now: t.pos= 0,0 t.size= 10,100<br>
- */
- Rectangle getLeft( long x ) const;
-
- /// Return the right rectangle of widght x.
- /** We return the right rectangle of width x<br>
- * Example: <br>
- * Rectangle rect( 0, 0, 100, 100 );<br>
- * Rectangle t = rect.getRight( 10 );
- * Now: t.pos= 90,0 t.size= 10,100<br>
- */
- Rectangle getRight( long x ) const;
-
- /// Move the Upper Left position by adjust, and keep the same Lower Right corner.
- /** <pre>
- * OOOOOO
- * OOOO++
- * OOOO++
- * </pre>
- * upperLeftAdjust( Point( 4, 1 ) ); will give the + rectangle afterwards.
- */
- Rectangle upperLeftAdjust( const Point & adjust ) const;
-
- /// Move the Lower Right position by adjust, and keep the same Upper Left corner.
- /** <pre>
- * ++++O
- * ++++O
- * OOOOO
- * </pre>
- * lowerRightAdjust( Point( -1, -1 ) ); will give the + rectangle afterwards.
- */
- Rectangle lowerRightAdjust( const Point & adjust ) const;
-
- /// Produce the Left portion of a Rectangle with portion width, same height,
- /// same position.
- /** If the original rectangle is as below: <br>
- * <pre>
- * XXXOOOOOOO
- * XXXOOOOOOO
- * XXXOOOOOOO
- * XXXOOOOOOO
- * </pre>
- * left( 0.3 )returns the X rectangle. <br>
- */
- Rectangle left( double portion = 0.5 ) const;
-
- /// Produce a Rectangle with the portion % width, same height, position moved to right.
- /** Produce a Rectangle with the portion % width, same height, position moved to right. <br>
- * <pre>
- * OOOOOOO###
- * OOOOOOO###
- * OOOOOOO###
- * OOOOOOO###
- * </pre>
- * right( 0.3 )returns the # rectangle. <br>
- */
- Rectangle right( double portion = 0.5 ) const;
-
- /// Produce a Rectangle with the portion % height, same width, same position.
- /** Produce a Rectangle with the portion % height, same width, same position. <br>
- * <pre>
- * ##########
- * ##########
- * OOOOOOOOOO
- * OOOOOOOOOO
- * </pre>
- * top( 0.5 ) or Top() returns the # rectangle. <br>
- */
- Rectangle top( double portion = 0.5 ) const;
-
- /// Produce a Rectangle with the portion % height, same width, position moved downwards.
- /** Produce a Rectangle with the portion % height, same width, position moved downwards. <br>
- * <pre>
- * OOOOOOOOOO
- * ##########
- * ##########
- * ##########
- * </pre>
- * Bottom( 0.75 ) returns the # rectangle. <br>
- */
- Rectangle bottom( double portion = 0.5 ) const;
-
- /// Produce a Rectangle with the 1/rows % height, same width, rowth position.
- /** Produce a Rectangle with the 1/rows % height, same width, rowth position. <br>
- * row0 <br>
- * row1 <-- Row( 1, 3 ) will return the "row1" rectangle.<br>
- * row2 <br>
- */
- Rectangle row( int row, int rows ) const;
-
- /// Produce a Rectangle with the 1/cols % width, same height, colth position.
- /** Produce a Rectangle with the 1/cols % width, same height, colth position. <br>
- *<br>
- * col0 col1 col2 col3 <br>
- *<br>
- *Col( 2, 4 ) will return the "col2" rectangle.<br>
- */
- Rectangle col( int column, int columns ) const;
-
- /// Produce a Rectangle with the top portion removed
- Rectangle cropTop( const int a_ToRemove ) const;
-
- /// Produce a Rectangle with the bottom portion removed
- Rectangle cropBottom( const int a_ToRemove ) const;
-
- /// Produce a Rectangle with the left portion removed
- Rectangle cropLeft( const int a_ToRemove ) const;
-
- /// Produce a Rectangle with the right portion removed
- Rectangle cropRight( const int a_ToRemove ) const;
-};
-
-bool operator==(const Rectangle& lhs, const Rectangle& rhs);
-
-/// \ingroup GlobalStuff
-/// "Default" Rectangle for window creation
-/** The system selects the default position/size for the window.
- */
-extern const Rectangle letTheSystemDecide;
-
// end namespace SmartWin
}
Modified: dcplusplus/trunk/smartwin/include/smartwin/CanvasClasses.h
===================================================================
--- dcplusplus/trunk/smartwin/include/smartwin/CanvasClasses.h 2008-03-18 19:30:28 UTC (rev 1044)
+++ dcplusplus/trunk/smartwin/include/smartwin/CanvasClasses.h 2008-03-18 20:03:39 UTC (rev 1045)
@@ -160,7 +160,7 @@
/// BitBlasts buffer into specified rectangle of source
void blast( const Rectangle & rectangle )
{
- if ( ::BitBlt( itsSource, rectangle.pos.x, rectangle.pos.y, rectangle.size.x, rectangle.size.y, this->CanvasType::itsHdc, rectangle.pos.x, rectangle.pos.y, SRCCOPY ) == FALSE )
+ if ( ::BitBlt( itsSource, rectangle.x(), rectangle.y(), rectangle.width(), rectangle.height(), this->CanvasType::itsHdc, rectangle.x(), rectangle.y(), SRCCOPY ) == FALSE )
throw xCeption( _T( "Couldn't bit blast in blast()" ) );
}
@@ -171,8 +171,8 @@
void drawBitmap( HBITMAP bitmap, const Rectangle & imageRectangle, COLORREF bitmapBackgroundColor, bool drawDisabled )
{
// bitmap size
- int width = imageRectangle.size.x;
- int height = imageRectangle.size.y;
+ int width = imageRectangle.width();
+ int height = imageRectangle.height();
// memory buffer for bitmap
HDC memoryDC = ::CreateCompatibleDC( this->CanvasType::itsHdc );
@@ -196,12 +196,12 @@
// bits in the destination DC. The magic ROP comes from the Charles
// Petzold's book
HGDIOBJ oldBrush = ::SelectObject( this->CanvasType::itsHdc, ::CreateSolidBrush( ::GetSysColor( COLOR_3DHILIGHT ) ) );
- ::BitBlt( this->CanvasType::itsHdc, imageRectangle.pos.x, imageRectangle.pos.y, width, height, maskDC, 0, 0, 0xB8074A );
+ ::BitBlt( this->CanvasType::itsHdc, imageRectangle.left(), imageRectangle.top(), width, height, maskDC, 0, 0, 0xB8074A );
// BitBlt the black bits in the monochrome bitmap into COLOR_3DSHADOW
// bits in the destination DC
::DeleteObject( ::SelectObject( this->CanvasType::itsHdc, ::CreateSolidBrush( ::GetSysColor( COLOR_3DSHADOW ) ) ) );
- ::BitBlt( this->CanvasType::itsHdc, imageRectangle.pos.x, imageRectangle.pos.y, width, height, maskDC, 0, 0, 0xB8074A );
+ ::BitBlt( this->CanvasType::itsHdc, imageRectangle.left(), imageRectangle.top(), width, height, maskDC, 0, 0, 0xB8074A );
::DeleteObject( ::SelectObject( this->CanvasType::itsHdc, oldBrush ) );
}
else // draw bitmap with transparency
@@ -217,8 +217,8 @@
// set bitmap background to black
::BitBlt( memoryDC, 0, 0, width, height, backMaskDC, 0, 0, SRCAND );
- ::BitBlt( this->CanvasType::itsHdc, imageRectangle.pos.x, imageRectangle.pos.y, width, height, maskDC, 0, 0, SRCAND );
- ::BitBlt( this->CanvasType::itsHdc, imageRectangle.pos.x, imageRectangle.pos.y, width, height, memoryDC, 0, 0, SRCPAINT );
+ ::BitBlt( this->CanvasType::itsHdc, imageRectangle.left(), imageRectangle.top(), width, height, maskDC, 0, 0, SRCAND );
+ ::BitBlt( this->CanvasType::itsHdc, imageRectangle.left(), imageRectangle.top(), width, height, memoryDC, 0, 0, SRCPAINT );
// clear
::DeleteObject( ::SelectObject( backMaskDC, oldBackMaskBitmap ) );
Modified: dcplusplus/trunk/smartwin/include/smartwin/Place.h
===================================================================
--- dcplusplus/trunk/smartwin/include/smartwin/Place.h 2008-03-18 19:30:28 UTC (rev 1044)
+++ dcplusplus/trunk/smartwin/include/smartwin/Place.h 2008-03-18 20:03:39 UTC (rev 1045)
@@ -26,9 +26,11 @@
OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
-#ifndef Place_h
-#define Place_h
+#ifndef SMARTWIN_Place_h
+#define SMARTWIN_Place_h
+#include "Rectangle.h"
+
namespace SmartWin
{
// begin namespace SmartWin
@@ -77,10 +79,10 @@
/** This is suitable for cases in which you want place objects inside a rect
* that does NOT have to start at 0,0.
*/
- void setBoundsBorders( const SmartWin::Rectangle & rect, const int borderX = 0,
+ void setBoundsBorders( const Rectangle & rect, const int borderX = 0,
const int borderY = 0 )
{
- setBoundsBorders( rect.pos, rect.lowRight(), borderX, borderY );
+ setBoundsBorders( rect.upperLeft(), rect.lowRight(), borderX, borderY );
}
/// Set the bounds and borders from a size. (implied 0,0 position)
@@ -134,10 +136,10 @@
obj.pos = itsPos; // Return current position
- itsPos.x += obj.size.x + itsBorder.x; // Update next position.
- if ( itsMaxYInLine < obj.size.y )
+ itsPos.x += obj.width() + itsBorder.x; // Update next position.
+ if ( itsMaxYInLine < obj.height() )
{
- itsMaxYInLine = obj.size.y; // Update max y
+ itsMaxYInLine = obj.height(); // Update max y
}
}
@@ -173,17 +175,17 @@
*/
void positionBelow( struct Rectangle & obj )
{
- if ( obj.size.y <= itsLowRight.y )
+ if ( obj.height() <= itsLowRight.y )
{
newColIfNeeded( obj );
}
obj.pos = itsPos; // Return current position
- itsPos.y += obj.size.y + itsBorder.y; // Update next position.
- if ( itsMaxXInCol < obj.size.x )
+ itsPos.y += obj.height() + itsBorder.y; // Update next position.
+ if ( itsMaxXInCol < obj.width() )
{
- itsMaxXInCol = obj.size.x; // Update max x
+ itsMaxXInCol = obj.width(); // Update max x
}
}
@@ -236,10 +238,10 @@
void newRowIfNeeded( struct Rectangle & obj )
{
// If the obj's size is larger than the area's size, then skip the new row.
- if ( obj.size.x > ( itsLowRight.x - itsUpLeft.x ) ) return;
+ if ( obj.width() > ( itsLowRight.x - itsUpLeft.x ) ) return;
// If the object would extend past the area, then do a new row.
- if ( ( itsPos.x + obj.size.x + itsBorder.x ) > itsLowRight.x )
+ if ( ( itsPos.x + obj.width() + itsBorder.x ) > itsLowRight.x )
{
newRow();
}
@@ -247,7 +249,7 @@
void newColIfNeeded( struct Rectangle & obj )
{
- if ( ( itsPos.y + obj.size.y + itsBorder.y ) > itsLowRight.y )
+ if ( ( itsPos.y + obj.height() + itsBorder.y ) > itsLowRight.y )
{
newCol();
}
Added: dcplusplus/trunk/smartwin/include/smartwin/Rectangle.h
===================================================================
--- dcplusplus/trunk/smartwin/include/smartwin/Rectangle.h (rev 0)
+++ dcplusplus/trunk/smartwin/include/smartwin/Rectangle.h 2008-03-18 20:03:39 UTC (rev 1045)
@@ -0,0 +1,282 @@
+#ifndef SMARTWIN_RECTANGLE_H_
+#define SMARTWIN_RECTANGLE_H_
+
+#include "BasicTypes.h"
+
+namespace SmartWin {
+/// Data structure for defining a rectangle
+/** \ingroup WidgetLayout
+ * The member functions are helpful in dividing large rectangles into smaller ones,
+ * which is exactly what is needed to layout widgets in windows.
+ */
+struct Rectangle {
+ Point pos;
+
+ Point size;
+
+ /// Constructor initializing the rectangle to (0, 0, 0, 0).
+ /** Default constructor initializing everything to zero (0)
+ */
+ Rectangle() { };
+
+ Rectangle(const ::RECT& rc) : pos(rc.left, rc.top), size(rc.right - rc.left, rc.bottom - rc.top) { }
+
+ /// Constructor initializing the rectangle with a position and size.
+ /** Note that the pSize is actually a size and NOT the lower right Point.
+ */
+ Rectangle( const Point & pPos, const Point & pSize ) : pos(pPos), size(pSize) { }
+
+ /// Constructor initializing the rectangle with a size.
+ /** Top-left becomes (0, 0), while bottom-right is set to pSize.
+ */
+ explicit Rectangle( const Point & pSize ) : pos(0, 0), size(pSize) { }
+
+ operator ::RECT() const;
+
+ /// Constructor initializing the rectangle with longs instead of Points.
+ /** ( x,y ) defines the upper right corner, ( x+width, y+height ) defines the
+ * lower left corner.
+ */
+ Rectangle( long x, long y, long width, long height );
+
+ long left() const { return pos.x; }
+ long x() const { return left(); }
+
+ long top() const { return pos.y; }
+ long y() const {return top(); }
+
+ long right() const { return left() + width(); }
+
+ long bottom() const { return top() + height(); }
+
+ long width() const { return size.x; }
+
+ long height() const { return size.y; }
+
+ const Point& upperLeft() const { return pos; }
+
+ /// Return the lower right point of the rectangle.
+ /**
+ * Example: <br>
+ * Rectangle r1( 10, 10, 100, 200 ); <br>
+ * Point lr = r1.LowRight() <br>
+ * gives lr.x = 110, lr.y = 210
+ */
+ Point lowRight() const { return Point(x() + width(), y() + height()); }
+
+ /// Creates a sub rectangle from an old rectangle.
+ /** The pos is adjusted by the xFraction and yFraction of the
+ * width and height of r. The size is also shrunk.
+ * r1.SubRect( 0, 0, 1, 0.5 ) gives the upper half of r1 <br>
+ * r1.SubRect( 0.5, 0, 0.5, 1 ) gives the right half of r1 <br>
+ * r1.SubRect( .334, .334, .334, .334 ) centers r2 inside r1 <br>
+ * r1.SubRect( .2, .2, .6, .6 ) also centers r2 inside r1 <br>
+ * <pre>
+ * OOOOOOOOOO is given by subRect( 0.3, 0.5, 0.4, 0.5 );
+ * OOOOOOOOOO (x moved 30%, y moved 50% )
+ * OOO++++OOO (x resized to 40%, y resized to 50% )
+ * OOO++++OOO
+ * </pre>
+ */
+ Rectangle subRect( double xFraction, double yFraction,
+ double widthFraction, double heightFraction ) const;
+
+ /// Size of the rectangle will be * factor, Position adjusted for the same center.
+ /** Creates a smaller rectangle from the old rectangle. <br>
+ * size.x *= factor, and pos.x is adjusted inwards to compensate. <br>
+ * <pre>
+ * ####
+ * #### -> ##
+ * #### ##
+ * ####
+ * </pre>
+ * shows the effect of shrink( 0.5 ) <br>
+ * shrink( long border ) is similar, but removes a constant border amount of
+ * pixels on all sides.
+ */
+ Rectangle shrink( double factor ) const;
+
+ /// Move inwards by xBorder and shrink the size by 2*xBorder
+ /** A rectangle of #### changes to ##.<br>
+ * The rectangle becomes smaller at the left and right, but has the same center.
+ */
+ Rectangle shrinkWidth( long xBorder ) const;
+
+ /// Move inwards by yBorder and shrink the size by 2*yBorder
+ /** <pre>
+ * ####
+ * #### -> ####
+ * #### ####
+ * ####
+ *
+ * </pre>
+ * The rectangle becomes smaller at the top and bottom, but has the same center.
+ */
+ Rectangle shrinkHeight( long yBorder ) const;
+
+ /// Move inwards by both xBorder and yBorder and shrink the size by 2*yBorder
+ /// and 2*xBorder
+ /** <pre>
+ * ####
+ * #### -> ##
+ * #### ##
+ * ####
+ * </pre>
+ * The rectangle shrinks, but has the same center.
+ */
+ Rectangle shrink( long xBorder, long yBorder ) const;
+
+ /// For both dimensions, move inwards by Border and shrink the size by 2*Border
+ /** We add border to the position, and subtract it twice from the size. Same as
+ * shrink( long xBorder, long yBorder ); except the x and y border are the same.
+ * shrink( double factor ) is similar, but expresses the new rectangle as a
+ * fraction of the old.
+ */
+ Rectangle shrink( long border ) const;
+
+ /// Return the upper rectangle of height y
+ /** We return the upper rectangle of height y.<br>
+ * Example: <br>
+ * Rectangle rect( 0,0, 100, 100 );<br>
+ * Rectangle t = rect.getTop( 10 );
+ * Now: t.pos = 0,0 t.size = 100,10<br>
+ */
+ Rectangle getTop( long y ) const;
+
+ /// Return the lower rectangle starting from y
+ /** We return the lower rectangle of height y<br>
+ * Example: <br>
+ * Rectangle rect( 0,0, 100, 100 );<br>
+ * Rectangle t = rect.getBottom( 10 );
+ * Now: t.pos = 0,90 t.size = 100,10<br>
+ */
+ Rectangle getBottom( long y ) const;
+
+ /// Return the left rectangle of widght x.
+ /** We return the left rectangle of width x<br>
+ * Example: <br>
+ * Rectangle rect( 0, 0, 100, 100 );<br>
+ * Rectangle t = rect.getLeft( 10 );
+ * Now: t.pos= 0,0 t.size= 10,100<br>
+ */
+ Rectangle getLeft( long x ) const;
+
+ /// Return the right rectangle of widght x.
+ /** We return the right rectangle of width x<br>
+ * Example: <br>
+ * Rectangle rect( 0, 0, 100, 100 );<br>
+ * Rectangle t = rect.getRight( 10 );
+ * Now: t.pos= 90,0 t.size= 10,100<br>
+ */
+ Rectangle getRight( long x ) const;
+
+ /// Move the Upper Left position by adjust, and keep the same Lower Right corner.
+ /** <pre>
+ * OOOOOO
+ * OOOO++
+ * OOOO++
+ * </pre>
+ * upperLeftAdjust( Point( 4, 1 ) ); will give the + rectangle afterwards.
+ */
+ Rectangle upperLeftAdjust( const Point & adjust ) const;
+
+ /// Move the Lower Right position by adjust, and keep the same Upper Left corner.
+ /** <pre>
+ * ++++O
+ * ++++O
+ * OOOOO
+ * </pre>
+ * lowerRightAdjust( Point( -1, -1 ) ); will give the + rectangle afterwards.
+ */
+ Rectangle lowerRightAdjust( const Point & adjust ) const;
+
+ /// Produce the Left portion of a Rectangle with portion width, same height,
+ /// same position.
+ /** If the original rectangle is as below: <br>
+ * <pre>
+ * XXXOOOOOOO
+ * XXXOOOOOOO
+ * XXXOOOOOOO
+ * XXXOOOOOOO
+ * </pre>
+ * left( 0.3 )returns the X rectangle. <br>
+ */
+ Rectangle toleft( double portion = 0.5 ) const;
+
+ /// Produce a Rectangle with the portion % width, same height, position moved to right.
+ /** Produce a Rectangle with the portion % width, same height, position moved to right. <br>
+ * <pre>
+ * OOOOOOO###
+ * OOOOOOO###
+ * OOOOOOO###
+ * OOOOOOO###
+ * </pre>
+ * right( 0.3 )returns the # rectangle. <br>
+ */
+ Rectangle toright( double portion = 0.5 ) const;
+
+ /// Produce a Rectangle with the portion % height, same width, same position.
+ /** Produce a Rectangle with the portion % height, same width, same position. <br>
+ * <pre>
+ * ##########
+ * ##########
+ * OOOOOOOOOO
+ * OOOOOOOOOO
+ * </pre>
+ * top( 0.5 ) or Top() returns the # rectangle. <br>
+ */
+ Rectangle upper( double portion = 0.5 ) const;
+
+ /// Produce a Rectangle with the portion % height, same width, position moved downwards.
+ /** Produce a Rectangle with the portion % height, same width, position moved downwards. <br>
+ * <pre>
+ * OOOOOOOOOO
+ * ##########
+ * ##########
+ * ##########
+ * </pre>
+ * Bottom( 0.75 ) returns the # rectangle. <br>
+ */
+ Rectangle lower( double portion = 0.5 ) const;
+
+ /// Produce a Rectangle with the 1/rows % height, same width, rowth position.
+ /** Produce a Rectangle with the 1/rows % height, same width, rowth position. <br>
+ * row0 <br>
+ * row1 <-- Row( 1, 3 ) will return the "row1" rectangle.<br>
+ * row2 <br>
+ */
+ Rectangle row( int row, int rows ) const;
+
+ /// Produce a Rectangle with the 1/cols % width, same height, colth position.
+ /** Produce a Rectangle with the 1/cols % width, same height, colth position. <br>
+ *<br>
+ * col0 col1 col2 col3 <br>
+ *<br>
+ *Col( 2, 4 ) will return the "col2" rectangle.<br>
+ */
+ Rectangle col( int column, int columns ) const;
+
+ /// Produce a Rectangle with the top portion removed
+ Rectangle cropTop( const int a_ToRemove ) const;
+
+ /// Produce a Rectangle with the bottom portion removed
+ Rectangle cropBottom( const int a_ToRemove ) const;
+
+ /// Produce a Rectangle with the left portion removed
+ Rectangle cropLeft( const int a_ToRemove ) const;
+
+ /// Produce a Rectangle with the right portion removed
+ Rectangle cropRight( const int a_ToRemove ) const;
+};
+
+bool operator==(const Rectangle& lhs, const Rectangle& rhs);
+
+/// \ingroup GlobalStuff
+/// "Default" Rectangle for window creation
+/** The system selects the default position/size for the window.
+ */
+extern const Rectangle letTheSystemDecide;
+
+}
+
+#endif /*RECTANGLE_H_*/
Modified: dcplusplus/trunk/smartwin/include/smartwin/Widget.h
===================================================================
--- dcpl...
[truncated message content] |
|
From: <zou...@us...> - 2008-03-18 21:35:32
|
Revision: 1046
http://dcplusplus.svn.sourceforge.net/dcplusplus/?rev=1046&view=rev
Author: zouzou123gen
Date: 2008-03-18 14:34:44 -0700 (Tue, 18 Mar 2008)
Log Message:
-----------
fix menu rectangles + focus problem with the tray icon
Modified Paths:
--------------
dcplusplus/trunk/changelog.txt
dcplusplus/trunk/smartwin/source/widgets/WidgetMenu.cpp
dcplusplus/trunk/win32/MainWindow.cpp
Modified: dcplusplus/trunk/changelog.txt
===================================================================
--- dcplusplus/trunk/changelog.txt 2008-03-18 20:03:39 UTC (rev 1045)
+++ dcplusplus/trunk/changelog.txt 2008-03-18 21:34:44 UTC (rev 1046)
@@ -2,6 +2,7 @@
* [L#202563] Fixed some missing translations
* Fixed help links (thanks poy)
* Use setenv on unix (thanks yakov suraev)
+* Fixed out of focus window when restoring from icon (poy)
-- 0.705 2008-03-14 --
* Several patches for better *nix compatibility of the core (thanks steven sheehy et al)
Modified: dcplusplus/trunk/smartwin/source/widgets/WidgetMenu.cpp
===================================================================
--- dcplusplus/trunk/smartwin/source/widgets/WidgetMenu.cpp 2008-03-18 20:03:39 UTC (rev 1045)
+++ dcplusplus/trunk/smartwin/source/widgets/WidgetMenu.cpp 2008-03-18 21:34:44 UTC (rev 1046)
@@ -585,14 +585,14 @@
// center in the item rectangle
rectangle.pos.x += stripWidth + textIconGap;
- rectangle.pos.y += rectangle.width() / 2 - 1;
+ rectangle.pos.y += rectangle.height() / 2 - 1;
// select color
Canvas::Selector select(canvas, *PenPtr(new Pen(::GetSysColor( COLOR_GRAYTEXT ))));
// draw separator
canvas.moveTo( rectangle.left(), rectangle.top() );
- canvas.lineTo( rectangle.right(), rectangle.bottom() );
+ canvas.lineTo( rectangle.width(), rectangle.top() );
} // end if
else // not a seperator, then draw item text and icon
{
@@ -665,7 +665,7 @@
// adjust icon rectangle
imageRectangle.pos.x += ( stripWidth - imageSize.x ) / 2;
- imageRectangle.pos.y += ( itemRectangle.width() - imageSize.y ) / 2;
+ imageRectangle.pos.y += ( itemRectangle.height() - imageSize.y ) / 2;
if ( image == NULL ) // drawing item without icon
{
@@ -687,7 +687,7 @@
const int adjustment = 2; // adjustment for mark to be in the center
// bit - blast into out canvas
- ::BitBlt( canvas.handle(), imageRectangle.x() + adjustment, imageRectangle.y(), imageSize.x, imageSize.y, memoryDC, 0, 0, SRCAND );
+ ::BitBlt( canvas.handle(), imageRectangle.left() + adjustment, imageRectangle.top(), imageSize.x, imageSize.y, memoryDC, 0, 0, SRCAND );
// delete memory dc
::DeleteObject( ::SelectObject( memoryDC, old ) );
Modified: dcplusplus/trunk/win32/MainWindow.cpp
===================================================================
--- dcplusplus/trunk/win32/MainWindow.cpp 2008-03-18 20:03:39 UTC (rev 1045)
+++ dcplusplus/trunk/win32/MainWindow.cpp 2008-03-18 21:34:44 UTC (rev 1046)
@@ -972,6 +972,7 @@
}
void MainWindow::handleRestore() {
+ setVisible(true);
if(maximized) {
maximize();
} else {
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <arn...@us...> - 2008-03-18 22:12:43
|
Revision: 1047
http://dcplusplus.svn.sourceforge.net/dcplusplus/?rev=1047&view=rev
Author: arnetheduck
Date: 2008-03-18 15:12:38 -0700 (Tue, 18 Mar 2008)
Log Message:
-----------
rename point, update translations
Modified Paths:
--------------
dcplusplus/trunk/dcpp/po/ar.po
dcplusplus/trunk/dcpp/po/bg.po
dcplusplus/trunk/dcpp/po/bs.po
dcplusplus/trunk/dcpp/po/ca.po
dcplusplus/trunk/dcpp/po/cs.po
dcplusplus/trunk/dcpp/po/da.po
dcplusplus/trunk/dcpp/po/de.po
dcplusplus/trunk/dcpp/po/el.po
dcplusplus/trunk/dcpp/po/en_GB.po
dcplusplus/trunk/dcpp/po/es.po
dcplusplus/trunk/dcpp/po/fi.po
dcplusplus/trunk/dcpp/po/fr.po
dcplusplus/trunk/dcpp/po/gl.po
dcplusplus/trunk/dcpp/po/he.po
dcplusplus/trunk/dcpp/po/hr.po
dcplusplus/trunk/dcpp/po/hu.po
dcplusplus/trunk/dcpp/po/id.po
dcplusplus/trunk/dcpp/po/is.po
dcplusplus/trunk/dcpp/po/it.po
dcplusplus/trunk/dcpp/po/ja.po
dcplusplus/trunk/dcpp/po/km.po
dcplusplus/trunk/dcpp/po/ko.po
dcplusplus/trunk/dcpp/po/lt.po
dcplusplus/trunk/dcpp/po/lv.po
dcplusplus/trunk/dcpp/po/mk.po
dcplusplus/trunk/dcpp/po/ms.po
dcplusplus/trunk/dcpp/po/nb.po
dcplusplus/trunk/dcpp/po/nl.po
dcplusplus/trunk/dcpp/po/pl.po
dcplusplus/trunk/dcpp/po/pt.po
dcplusplus/trunk/dcpp/po/pt_BR.po
dcplusplus/trunk/dcpp/po/ro.po
dcplusplus/trunk/dcpp/po/ru.po
dcplusplus/trunk/dcpp/po/sl.po
dcplusplus/trunk/dcpp/po/sq.po
dcplusplus/trunk/dcpp/po/sv.po
dcplusplus/trunk/dcpp/po/tr.po
dcplusplus/trunk/dcpp/po/uk.po
dcplusplus/trunk/dcpp/po/zh_CN.po
dcplusplus/trunk/dcpp/po/zh_TW.po
dcplusplus/trunk/smartwin/include/smartwin/Application.h
dcplusplus/trunk/smartwin/include/smartwin/CanvasClasses.h
dcplusplus/trunk/smartwin/include/smartwin/ClipBoard.h
dcplusplus/trunk/smartwin/include/smartwin/Dispatchers.h
dcplusplus/trunk/smartwin/include/smartwin/FreeCommonDialog.h
dcplusplus/trunk/smartwin/include/smartwin/LibraryLoader.h
dcplusplus/trunk/smartwin/include/smartwin/Place.h
dcplusplus/trunk/smartwin/include/smartwin/Rectangle.h
dcplusplus/trunk/smartwin/include/smartwin/SmartWin.h
dcplusplus/trunk/smartwin/include/smartwin/WindowClass.h
dcplusplus/trunk/smartwin/include/smartwin/aspects/AspectContextMenu.h
dcplusplus/trunk/smartwin/include/smartwin/aspects/AspectFileFilter.h
dcplusplus/trunk/smartwin/include/smartwin/aspects/AspectMouse.h
dcplusplus/trunk/smartwin/include/smartwin/resources/ImageList.h
dcplusplus/trunk/smartwin/include/smartwin/widgets/WidgetCoolbar.h
dcplusplus/trunk/smartwin/include/smartwin/widgets/WidgetListView.h
dcplusplus/trunk/smartwin/include/smartwin/widgets/WidgetMDIChild.h
dcplusplus/trunk/smartwin/include/smartwin/widgets/WidgetMDIFrame.h
dcplusplus/trunk/smartwin/include/smartwin/widgets/WidgetMDIParent.h
dcplusplus/trunk/smartwin/include/smartwin/widgets/WidgetMenu.h
dcplusplus/trunk/smartwin/include/smartwin/widgets/WidgetTabSheet.h
dcplusplus/trunk/smartwin/include/smartwin/widgets/WidgetToolbar.h
dcplusplus/trunk/smartwin/include/smartwin/widgets/WidgetTreeView.h
dcplusplus/trunk/smartwin/include/smartwin/widgets/WidgetWindow.h
dcplusplus/trunk/smartwin/include/smartwin/widgets/WidgetWindowBase.h
dcplusplus/trunk/smartwin/include/smartwin/xCeption.h
dcplusplus/trunk/smartwin/source/Application.cpp
dcplusplus/trunk/smartwin/source/Bitmap.cpp
dcplusplus/trunk/smartwin/source/Widget.cpp
dcplusplus/trunk/smartwin/source/WindowClass.cpp
dcplusplus/trunk/win32/SearchFrame.cpp
dcplusplus/trunk/win32/po/ar.po
dcplusplus/trunk/win32/po/bg.po
dcplusplus/trunk/win32/po/bs.po
dcplusplus/trunk/win32/po/ca.po
dcplusplus/trunk/win32/po/cs.po
dcplusplus/trunk/win32/po/da.po
dcplusplus/trunk/win32/po/de.po
dcplusplus/trunk/win32/po/el.po
dcplusplus/trunk/win32/po/en_GB.po
dcplusplus/trunk/win32/po/es.po
dcplusplus/trunk/win32/po/fi.po
dcplusplus/trunk/win32/po/fr.po
dcplusplus/trunk/win32/po/gl.po
dcplusplus/trunk/win32/po/he.po
dcplusplus/trunk/win32/po/hr.po
dcplusplus/trunk/win32/po/hu.po
dcplusplus/trunk/win32/po/id.po
dcplusplus/trunk/win32/po/is.po
dcplusplus/trunk/win32/po/it.po
dcplusplus/trunk/win32/po/ja.po
dcplusplus/trunk/win32/po/km.po
dcplusplus/trunk/win32/po/ko.po
dcplusplus/trunk/win32/po/lt.po
dcplusplus/trunk/win32/po/lv.po
dcplusplus/trunk/win32/po/mk.po
dcplusplus/trunk/win32/po/nb.po
dcplusplus/trunk/win32/po/nl.po
dcplusplus/trunk/win32/po/pl.po
dcplusplus/trunk/win32/po/pt.po
dcplusplus/trunk/win32/po/pt_BR.po
dcplusplus/trunk/win32/po/ro.po
dcplusplus/trunk/win32/po/ru.po
dcplusplus/trunk/win32/po/sl.po
dcplusplus/trunk/win32/po/sq.po
dcplusplus/trunk/win32/po/sv.po
dcplusplus/trunk/win32/po/tr.po
dcplusplus/trunk/win32/po/uk.po
dcplusplus/trunk/win32/po/zh_CN.po
dcplusplus/trunk/win32/po/zh_TW.po
Added Paths:
-----------
dcplusplus/trunk/smartwin/include/smartwin/Point.h
dcplusplus/trunk/smartwin/source/Point.cpp
Removed Paths:
-------------
dcplusplus/trunk/smartwin/include/smartwin/BasicTypes.h
dcplusplus/trunk/smartwin/source/BasicTypes.cpp
Modified: dcplusplus/trunk/dcpp/po/ar.po
===================================================================
--- dcplusplus/trunk/dcpp/po/ar.po 2008-03-18 21:34:44 UTC (rev 1046)
+++ dcplusplus/trunk/dcpp/po/ar.po 2008-03-18 22:12:38 UTC (rev 1047)
@@ -7,14 +7,14 @@
msgstr ""
"Project-Id-Version: dcpp\n"
"Report-Msgid-Bugs-To: dcp...@li...\n"
-"POT-Creation-Date: 2008-03-12 21:38+0100\n"
-"PO-Revision-Date: 2008-03-05 00:18+0000\n"
-"Last-Translator: Jmarhoon <Unknown>\n"
+"POT-Creation-Date: 2008-03-18 22:52+0100\n"
+"PO-Revision-Date: 2008-03-13 22:56+0000\n"
+"Last-Translator: Jacek Sieka <Unknown>\n"
"Language-Team: LANGUAGE <LL...@li...>\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
-"X-Launchpad-Export-Date: 2008-03-13 15:20+0000\n"
+"X-Launchpad-Export-Date: 2008-03-18 21:20+0000\n"
"X-Generator: Launchpad (build Unknown)\n"
#: dcpp/Util.cpp:381
@@ -145,6 +145,10 @@
msgid "Directory already shared"
msgstr "المجلد مستخدم حاليا"
+#: dcpp/ADLSearch.h:281
+msgid "Discard"
+msgstr ""
+
#: dcpp/BufferedSocket.cpp:404
msgid "Disconnected"
msgstr "انفصل"
@@ -154,7 +158,7 @@
msgid "Disconnected user leaving the hub: %1%"
msgstr ""
-#: dcpp/DCPlusPlus.cpp:103
+#: dcpp/DCPlusPlus.cpp:107
msgid "Download Queue"
msgstr "طابور التحميل"
@@ -257,7 +261,7 @@
msgid "Generated new TLS certificate"
msgstr ""
-#: dcpp/DCPlusPlus.cpp:97
+#: dcpp/DCPlusPlus.cpp:101
msgid "Hash database"
msgstr "تحديث قاعدة البيانات"
@@ -330,12 +334,16 @@
msgid "Remove all subdirectories before adding this one"
msgstr "حذف كل المجلدات الثانوية قبل إضافة هذا"
+#: dcpp/BitInputStream.h:40
+msgid "Request to seek beyond the end of data"
+msgstr ""
+
#: dcpp/DownloadManager.cpp:225
#, fuzzy
msgid "Response does not match request"
msgstr "السلسلة المحملة لا تتوافق مع \"تي تي إتش\" الرئيسي"
-#: dcpp/DCPlusPlus.cpp:100
+#: dcpp/DCPlusPlus.cpp:104
msgid "Shared Files"
msgstr "الملفات المساهم فيها"
@@ -352,6 +360,10 @@
msgid "TLS disabled, no certificate file set"
msgstr ""
+#: dcpp/MerkleCheckOutputStream.h:53 dcpp/MerkleCheckOutputStream.h:113
+msgid "TTH inconsistency"
+msgstr ""
+
#: dcpp/QueueManager.cpp:510 dcpp/QueueManager.cpp:519
msgid "Target filename too long"
msgstr "الملف المقصود كبير جدا"
Modified: dcplusplus/trunk/dcpp/po/bg.po
===================================================================
--- dcplusplus/trunk/dcpp/po/bg.po 2008-03-18 21:34:44 UTC (rev 1046)
+++ dcplusplus/trunk/dcpp/po/bg.po 2008-03-18 22:12:38 UTC (rev 1047)
@@ -7,14 +7,14 @@
msgstr ""
"Project-Id-Version: dcpp\n"
"Report-Msgid-Bugs-To: dcp...@li...\n"
-"POT-Creation-Date: 2008-03-12 21:38+0100\n"
-"PO-Revision-Date: 2008-03-05 00:08+0000\n"
-"Last-Translator: Greatgenius <Unknown>\n"
+"POT-Creation-Date: 2008-03-18 22:52+0100\n"
+"PO-Revision-Date: 2008-03-13 22:56+0000\n"
+"Last-Translator: Jacek Sieka <Unknown>\n"
"Language-Team: LANGUAGE <LL...@li...>\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
-"X-Launchpad-Export-Date: 2008-03-13 15:20+0000\n"
+"X-Launchpad-Export-Date: 2008-03-18 21:20+0000\n"
"X-Generator: Launchpad (build Unknown)\n"
#: dcpp/Util.cpp:381
@@ -146,6 +146,10 @@
msgid "Directory already shared"
msgstr "Папката вече е споделена!"
+#: dcpp/ADLSearch.h:281
+msgid "Discard"
+msgstr ""
+
#: dcpp/BufferedSocket.cpp:404
msgid "Disconnected"
msgstr "Изключен/Прекъснат"
@@ -155,7 +159,7 @@
msgid "Disconnected user leaving the hub: %1%"
msgstr ""
-#: dcpp/DCPlusPlus.cpp:103
+#: dcpp/DCPlusPlus.cpp:107
msgid "Download Queue"
msgstr "Опашка за сваляните файлове"
@@ -262,7 +266,7 @@
msgid "Generated new TLS certificate"
msgstr ""
-#: dcpp/DCPlusPlus.cpp:97
+#: dcpp/DCPlusPlus.cpp:101
msgid "Hash database"
msgstr "База-Данни от хешове"
@@ -337,12 +341,16 @@
msgid "Remove all subdirectories before adding this one"
msgstr "Премахни всички подпапки преди да добавиш тази"
+#: dcpp/BitInputStream.h:40
+msgid "Request to seek beyond the end of data"
+msgstr ""
+
#: dcpp/DownloadManager.cpp:225
#, fuzzy
msgid "Response does not match request"
msgstr "Файловото дърво не съвпада с този TTH псевдоним"
-#: dcpp/DCPlusPlus.cpp:100
+#: dcpp/DCPlusPlus.cpp:104
msgid "Shared Files"
msgstr "Споделени файлове"
@@ -359,6 +367,10 @@
msgid "TLS disabled, no certificate file set"
msgstr ""
+#: dcpp/MerkleCheckOutputStream.h:53 dcpp/MerkleCheckOutputStream.h:113
+msgid "TTH inconsistency"
+msgstr ""
+
#: dcpp/QueueManager.cpp:510 dcpp/QueueManager.cpp:519
msgid "Target filename too long"
msgstr "Прекалено дълго име на файла-цел"
Modified: dcplusplus/trunk/dcpp/po/bs.po
===================================================================
--- dcplusplus/trunk/dcpp/po/bs.po 2008-03-18 21:34:44 UTC (rev 1046)
+++ dcplusplus/trunk/dcpp/po/bs.po 2008-03-18 22:12:38 UTC (rev 1047)
@@ -7,14 +7,14 @@
msgstr ""
"Project-Id-Version: dcpp\n"
"Report-Msgid-Bugs-To: dcp...@li...\n"
-"POT-Creation-Date: 2008-03-12 21:38+0100\n"
-"PO-Revision-Date: 2008-03-05 00:12+0000\n"
-"Last-Translator: Mikula <Unknown>\n"
+"POT-Creation-Date: 2008-03-18 22:52+0100\n"
+"PO-Revision-Date: 2008-03-13 23:00+0000\n"
+"Last-Translator: Jacek Sieka <Unknown>\n"
"Language-Team: LANGUAGE <LL...@li...>\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
-"X-Launchpad-Export-Date: 2008-03-13 15:20+0000\n"
+"X-Launchpad-Export-Date: 2008-03-18 21:20+0000\n"
"X-Generator: Launchpad (build Unknown)\n"
#: dcpp/Util.cpp:381
@@ -145,6 +145,10 @@
msgid "Directory already shared"
msgstr "Sadrzaj se vec dijeli"
+#: dcpp/ADLSearch.h:281
+msgid "Discard"
+msgstr ""
+
#: dcpp/BufferedSocket.cpp:404
msgid "Disconnected"
msgstr "Iskljucen"
@@ -154,7 +158,7 @@
msgid "Disconnected user leaving the hub: %1%"
msgstr ""
-#: dcpp/DCPlusPlus.cpp:103
+#: dcpp/DCPlusPlus.cpp:107
msgid "Download Queue"
msgstr "Lista za Download"
@@ -258,7 +262,7 @@
msgid "Generated new TLS certificate"
msgstr ""
-#: dcpp/DCPlusPlus.cpp:97
+#: dcpp/DCPlusPlus.cpp:101
msgid "Hash database"
msgstr "Indeks fajova"
@@ -333,12 +337,16 @@
msgid "Remove all subdirectories before adding this one"
msgstr "Skloniti sve poddirektorijume prije dodavanja ovog"
+#: dcpp/BitInputStream.h:40
+msgid "Request to seek beyond the end of data"
+msgstr ""
+
#: dcpp/DownloadManager.cpp:225
#, fuzzy
msgid "Response does not match request"
msgstr "Ucitano se ne slaze s TTH kodom"
-#: dcpp/DCPlusPlus.cpp:100
+#: dcpp/DCPlusPlus.cpp:104
msgid "Shared Files"
msgstr "Dijeljeni fajlovi"
@@ -356,6 +364,10 @@
msgid "TLS disabled, no certificate file set"
msgstr ""
+#: dcpp/MerkleCheckOutputStream.h:53 dcpp/MerkleCheckOutputStream.h:113
+msgid "TTH inconsistency"
+msgstr ""
+
#: dcpp/QueueManager.cpp:510 dcpp/QueueManager.cpp:519
msgid "Target filename too long"
msgstr "Trazeno ime je predugo"
Modified: dcplusplus/trunk/dcpp/po/ca.po
===================================================================
--- dcplusplus/trunk/dcpp/po/ca.po 2008-03-18 21:34:44 UTC (rev 1046)
+++ dcplusplus/trunk/dcpp/po/ca.po 2008-03-18 22:12:38 UTC (rev 1047)
@@ -7,14 +7,14 @@
msgstr ""
"Project-Id-Version: dcpp\n"
"Report-Msgid-Bugs-To: dcp...@li...\n"
-"POT-Creation-Date: 2008-03-12 21:38+0100\n"
-"PO-Revision-Date: 2008-03-05 00:46+0000\n"
-"Last-Translator: Sunbit <Unknown>\n"
+"POT-Creation-Date: 2008-03-18 22:52+0100\n"
+"PO-Revision-Date: 2008-03-13 23:00+0000\n"
+"Last-Translator: Jacek Sieka <Unknown>\n"
"Language-Team: LANGUAGE <LL...@li...>\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
-"X-Launchpad-Export-Date: 2008-03-13 15:20+0000\n"
+"X-Launchpad-Export-Date: 2008-03-18 21:20+0000\n"
"X-Generator: Launchpad (build Unknown)\n"
#: dcpp/Util.cpp:381
@@ -146,6 +146,10 @@
msgid "Directory already shared"
msgstr "Aquest directori ja està compartit"
+#: dcpp/ADLSearch.h:281
+msgid "Discard"
+msgstr ""
+
#: dcpp/BufferedSocket.cpp:404
msgid "Disconnected"
msgstr "Desconectat"
@@ -155,7 +159,7 @@
msgid "Disconnected user leaving the hub: %1%"
msgstr ""
-#: dcpp/DCPlusPlus.cpp:103
+#: dcpp/DCPlusPlus.cpp:107
msgid "Download Queue"
msgstr "Cua de descàrrega"
@@ -260,7 +264,7 @@
msgid "Generated new TLS certificate"
msgstr ""
-#: dcpp/DCPlusPlus.cpp:97
+#: dcpp/DCPlusPlus.cpp:101
msgid "Hash database"
msgstr "Hashejar bas de dades"
@@ -335,12 +339,16 @@
msgid "Remove all subdirectories before adding this one"
msgstr "Eliminar tots els subdirectoris avans d'agregar aquest"
+#: dcpp/BitInputStream.h:40
+msgid "Request to seek beyond the end of data"
+msgstr ""
+
#: dcpp/DownloadManager.cpp:225
#, fuzzy
msgid "Response does not match request"
msgstr "L'arbre descarregat no coincideix amb l'arrel TTH"
-#: dcpp/DCPlusPlus.cpp:100
+#: dcpp/DCPlusPlus.cpp:104
msgid "Shared Files"
msgstr "fitxers compartits"
@@ -358,6 +366,10 @@
msgid "TLS disabled, no certificate file set"
msgstr ""
+#: dcpp/MerkleCheckOutputStream.h:53 dcpp/MerkleCheckOutputStream.h:113
+msgid "TTH inconsistency"
+msgstr ""
+
#: dcpp/QueueManager.cpp:510 dcpp/QueueManager.cpp:519
msgid "Target filename too long"
msgstr "El nom del fitxer de destí es massa llarg"
Modified: dcplusplus/trunk/dcpp/po/cs.po
===================================================================
--- dcplusplus/trunk/dcpp/po/cs.po 2008-03-18 21:34:44 UTC (rev 1046)
+++ dcplusplus/trunk/dcpp/po/cs.po 2008-03-18 22:12:38 UTC (rev 1047)
@@ -7,14 +7,14 @@
msgstr ""
"Project-Id-Version: dcplusplus\n"
"Report-Msgid-Bugs-To: dcp...@li...\n"
-"POT-Creation-Date: 2008-03-12 21:38+0100\n"
-"PO-Revision-Date: 2008-03-05 00:25+0000\n"
+"POT-Creation-Date: 2008-03-18 22:52+0100\n"
+"PO-Revision-Date: 2008-03-13 23:00+0000\n"
"Last-Translator: marek.tomass <mar...@gm...>\n"
"Language-Team: Czech <cs...@li...>\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
-"X-Launchpad-Export-Date: 2008-03-13 15:20+0000\n"
+"X-Launchpad-Export-Date: 2008-03-18 21:20+0000\n"
"X-Generator: Launchpad (build Unknown)\n"
#: dcpp/Util.cpp:381
@@ -148,6 +148,10 @@
msgid "Directory already shared"
msgstr "Slozka je uz sdilena"
+#: dcpp/ADLSearch.h:281
+msgid "Discard"
+msgstr ""
+
#: dcpp/BufferedSocket.cpp:404
msgid "Disconnected"
msgstr "Odpojeny"
@@ -157,7 +161,7 @@
msgid "Disconnected user leaving the hub: %1%"
msgstr ""
-#: dcpp/DCPlusPlus.cpp:103
+#: dcpp/DCPlusPlus.cpp:107
msgid "Download Queue"
msgstr "Fronta souboru k stahnuti"
@@ -262,7 +266,7 @@
msgid "Generated new TLS certificate"
msgstr ""
-#: dcpp/DCPlusPlus.cpp:97
+#: dcpp/DCPlusPlus.cpp:101
msgid "Hash database"
msgstr "Hash databaze"
@@ -337,11 +341,15 @@
msgid "Remove all subdirectories before adding this one"
msgstr "Odeberte vsecky podslozky, nez pridate tuto"
+#: dcpp/BitInputStream.h:40
+msgid "Request to seek beyond the end of data"
+msgstr ""
+
#: dcpp/DownloadManager.cpp:225
msgid "Response does not match request"
msgstr ""
-#: dcpp/DCPlusPlus.cpp:100
+#: dcpp/DCPlusPlus.cpp:104
msgid "Shared Files"
msgstr "Sdilene soubory"
@@ -358,6 +366,10 @@
msgid "TLS disabled, no certificate file set"
msgstr ""
+#: dcpp/MerkleCheckOutputStream.h:53 dcpp/MerkleCheckOutputStream.h:113
+msgid "TTH inconsistency"
+msgstr ""
+
#: dcpp/QueueManager.cpp:510 dcpp/QueueManager.cpp:519
msgid "Target filename too long"
msgstr "Cilove jmeno souboru je prilis dlouhe"
Modified: dcplusplus/trunk/dcpp/po/da.po
===================================================================
--- dcplusplus/trunk/dcpp/po/da.po 2008-03-18 21:34:44 UTC (rev 1046)
+++ dcplusplus/trunk/dcpp/po/da.po 2008-03-18 22:12:38 UTC (rev 1047)
@@ -7,14 +7,14 @@
msgstr ""
"Project-Id-Version: dcplusplus\n"
"Report-Msgid-Bugs-To: dcp...@li...\n"
-"POT-Creation-Date: 2008-03-12 21:38+0100\n"
-"PO-Revision-Date: 2008-03-10 10:27+0000\n"
-"Last-Translator: Kryppy <Unknown>\n"
+"POT-Creation-Date: 2008-03-18 22:52+0100\n"
+"PO-Revision-Date: 2008-03-13 23:00+0000\n"
+"Last-Translator: Jacek Sieka <Unknown>\n"
"Language-Team: Danish <da...@li...>\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
-"X-Launchpad-Export-Date: 2008-03-13 15:20+0000\n"
+"X-Launchpad-Export-Date: 2008-03-18 21:20+0000\n"
"X-Generator: Launchpad (build Unknown)\n"
#: dcpp/Util.cpp:381
@@ -147,6 +147,10 @@
msgid "Directory already shared"
msgstr "Katalog deles allerede"
+#: dcpp/ADLSearch.h:281
+msgid "Discard"
+msgstr ""
+
#: dcpp/BufferedSocket.cpp:404
msgid "Disconnected"
msgstr "Afbrudt"
@@ -156,7 +160,7 @@
msgid "Disconnected user leaving the hub: %1%"
msgstr ""
-#: dcpp/DCPlusPlus.cpp:103
+#: dcpp/DCPlusPlus.cpp:107
msgid "Download Queue"
msgstr "Doenload kø"
@@ -262,7 +266,7 @@
msgid "Generated new TLS certificate"
msgstr "Skab TLS certifikat"
-#: dcpp/DCPlusPlus.cpp:97
+#: dcpp/DCPlusPlus.cpp:101
msgid "Hash database"
msgstr "Hash databasen"
@@ -337,11 +341,15 @@
msgid "Remove all subdirectories before adding this one"
msgstr "Fjern alle undermapper før denne mappe tilføjes"
+#: dcpp/BitInputStream.h:40
+msgid "Request to seek beyond the end of data"
+msgstr ""
+
#: dcpp/DownloadManager.cpp:225
msgid "Response does not match request"
msgstr ""
-#: dcpp/DCPlusPlus.cpp:100
+#: dcpp/DCPlusPlus.cpp:104
msgid "Shared Files"
msgstr "Delte filer"
@@ -359,6 +367,10 @@
msgid "TLS disabled, no certificate file set"
msgstr "TLS deaktivert, ingen certifikatfil angivet"
+#: dcpp/MerkleCheckOutputStream.h:53 dcpp/MerkleCheckOutputStream.h:113
+msgid "TTH inconsistency"
+msgstr ""
+
#: dcpp/QueueManager.cpp:510 dcpp/QueueManager.cpp:519
msgid "Target filename too long"
msgstr "Filnavnet er for langt...!"
Modified: dcplusplus/trunk/dcpp/po/de.po
===================================================================
--- dcplusplus/trunk/dcpp/po/de.po 2008-03-18 21:34:44 UTC (rev 1046)
+++ dcplusplus/trunk/dcpp/po/de.po 2008-03-18 22:12:38 UTC (rev 1047)
@@ -7,14 +7,14 @@
msgstr ""
"Project-Id-Version: dcplusplus\n"
"Report-Msgid-Bugs-To: dcp...@li...\n"
-"POT-Creation-Date: 2008-03-12 21:38+0100\n"
-"PO-Revision-Date: 2008-03-06 16:59+0000\n"
+"POT-Creation-Date: 2008-03-18 22:52+0100\n"
+"PO-Revision-Date: 2008-03-17 19:03+0000\n"
"Last-Translator: soccer <soc...@gm...>\n"
"Language-Team: German <de...@li...>\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
-"X-Launchpad-Export-Date: 2008-03-13 15:20+0000\n"
+"X-Launchpad-Export-Date: 2008-03-18 21:20+0000\n"
"X-Generator: Launchpad (build Unknown)\n"
#: dcpp/Util.cpp:381
@@ -131,9 +131,8 @@
msgstr "Zertifikat nicht vertrauenswürdig, Verbindung nicht möglich"
#: dcpp/BufferedSocket.cpp:148
-#, fuzzy
msgid "Connection closed"
-msgstr "Zeitüberschreitung der Verbindung"
+msgstr "Verbindung getrennt"
#: dcpp/Socket.cpp:154 dcpp/ConnectionManager.cpp:182
#: dcpp/BufferedSocket.cpp:131
@@ -149,6 +148,10 @@
msgid "Directory already shared"
msgstr "Verzeichnis ist bereits freigegeben"
+#: dcpp/ADLSearch.h:281
+msgid "Discard"
+msgstr "Verwerfen"
+
#: dcpp/BufferedSocket.cpp:404
msgid "Disconnected"
msgstr "Getrennt"
@@ -158,7 +161,7 @@
msgid "Disconnected user leaving the hub: %1%"
msgstr "Getrennter User verlässt Hub: %1%"
-#: dcpp/DCPlusPlus.cpp:103
+#: dcpp/DCPlusPlus.cpp:107
msgid "Download Queue"
msgstr "Download Warteschlange"
@@ -267,7 +270,7 @@
msgid "Generated new TLS certificate"
msgstr "Neues TLS Zertifikat erstellt"
-#: dcpp/DCPlusPlus.cpp:97
+#: dcpp/DCPlusPlus.cpp:101
msgid "Hash database"
msgstr "Hash-Datenbank"
@@ -344,11 +347,15 @@
msgid "Remove all subdirectories before adding this one"
msgstr "Alle Unterverzeichnisse entfernen bevor dieses hinzugefügt wird"
+#: dcpp/BitInputStream.h:40
+msgid "Request to seek beyond the end of data"
+msgstr ""
+
#: dcpp/DownloadManager.cpp:225
msgid "Response does not match request"
msgstr "Antwort stimmt nicht mit Anfrage überein"
-#: dcpp/DCPlusPlus.cpp:100
+#: dcpp/DCPlusPlus.cpp:104
msgid "Shared Files"
msgstr "Freigegebene Dateien"
@@ -366,6 +373,10 @@
msgid "TLS disabled, no certificate file set"
msgstr "TLS deaktiviert, kein Zertifikat eingestellt"
+#: dcpp/MerkleCheckOutputStream.h:53 dcpp/MerkleCheckOutputStream.h:113
+msgid "TTH inconsistency"
+msgstr "TTH Inkonsistenz"
+
#: dcpp/QueueManager.cpp:510 dcpp/QueueManager.cpp:519
msgid "Target filename too long"
msgstr "Zieldateiname zu lang"
Modified: dcplusplus/trunk/dcpp/po/el.po
===================================================================
--- dcplusplus/trunk/dcpp/po/el.po 2008-03-18 21:34:44 UTC (rev 1046)
+++ dcplusplus/trunk/dcpp/po/el.po 2008-03-18 22:12:38 UTC (rev 1047)
@@ -7,14 +7,14 @@
msgstr ""
"Project-Id-Version: dcpp\n"
"Report-Msgid-Bugs-To: dcp...@li...\n"
-"POT-Creation-Date: 2008-03-12 21:38+0100\n"
-"PO-Revision-Date: 2008-03-05 00:45+0000\n"
-"Last-Translator: Johnkok <Unknown>\n"
+"POT-Creation-Date: 2008-03-18 22:52+0100\n"
+"PO-Revision-Date: 2008-03-13 23:01+0000\n"
+"Last-Translator: Jacek Sieka <Unknown>\n"
"Language-Team: LANGUAGE <LL...@li...>\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
-"X-Launchpad-Export-Date: 2008-03-13 15:20+0000\n"
+"X-Launchpad-Export-Date: 2008-03-18 21:20+0000\n"
"X-Generator: Launchpad (build Unknown)\n"
#: dcpp/Util.cpp:381
@@ -146,6 +146,10 @@
msgid "Directory already shared"
msgstr "Ο φάκελος είναι ήδη κοινόχρηστος"
+#: dcpp/ADLSearch.h:281
+msgid "Discard"
+msgstr ""
+
#: dcpp/BufferedSocket.cpp:404
msgid "Disconnected"
msgstr "Αποσυνδέθηκε"
@@ -155,7 +159,7 @@
msgid "Disconnected user leaving the hub: %1%"
msgstr ""
-#: dcpp/DCPlusPlus.cpp:103
+#: dcpp/DCPlusPlus.cpp:107
msgid "Download Queue"
msgstr "Αρχεία προς Λήψη"
@@ -262,7 +266,7 @@
msgid "Generated new TLS certificate"
msgstr ""
-#: dcpp/DCPlusPlus.cpp:97
+#: dcpp/DCPlusPlus.cpp:101
msgid "Hash database"
msgstr "Βάση Δεδομένων Hash"
@@ -337,12 +341,16 @@
msgid "Remove all subdirectories before adding this one"
msgstr "Αφαιρέστε όλους τους υποφακέλους πριν την προσθήκη αυτού"
+#: dcpp/BitInputStream.h:40
+msgid "Request to seek beyond the end of data"
+msgstr ""
+
#: dcpp/DownloadManager.cpp:225
#, fuzzy
msgid "Response does not match request"
msgstr "Το δέντρο αρχείων δεν ταιριάζει στο TTH"
-#: dcpp/DCPlusPlus.cpp:100
+#: dcpp/DCPlusPlus.cpp:104
msgid "Shared Files"
msgstr "Διαθέσιμα Αρχεία"
@@ -360,6 +368,10 @@
msgid "TLS disabled, no certificate file set"
msgstr "TLS ανενεργό, δεν έχει τεθεί αρχείο πιστοποιητικού"
+#: dcpp/MerkleCheckOutputStream.h:53 dcpp/MerkleCheckOutputStream.h:113
+msgid "TTH inconsistency"
+msgstr ""
+
#: dcpp/QueueManager.cpp:510 dcpp/QueueManager.cpp:519
msgid "Target filename too long"
msgstr "Το όνομα στο αρχείο προορισμού είναι υπερβολικά μεγάλο"
Modified: dcplusplus/trunk/dcpp/po/en_GB.po
===================================================================
--- dcplusplus/trunk/dcpp/po/en_GB.po 2008-03-18 21:34:44 UTC (rev 1046)
+++ dcplusplus/trunk/dcpp/po/en_GB.po 2008-03-18 22:12:38 UTC (rev 1047)
@@ -7,14 +7,14 @@
msgstr ""
"Project-Id-Version: dcplusplus\n"
"Report-Msgid-Bugs-To: dcp...@li...\n"
-"POT-Creation-Date: 2008-03-12 21:38+0100\n"
-"PO-Revision-Date: 2008-03-06 11:07+0000\n"
-"Last-Translator: MikeJJ <Unknown>\n"
+"POT-Creation-Date: 2008-03-18 22:52+0100\n"
+"PO-Revision-Date: 2008-03-17 06:30+0000\n"
+"Last-Translator: Adrian Moș <Unknown>\n"
"Language-Team: English (United Kingdom) <en...@li...>\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
-"X-Launchpad-Export-Date: 2008-03-13 15:20+0000\n"
+"X-Launchpad-Export-Date: 2008-03-18 21:20+0000\n"
"X-Generator: Launchpad (build Unknown)\n"
#: dcpp/Util.cpp:381
@@ -128,9 +128,8 @@
msgstr "Certificate not trusted, unable to connect"
#: dcpp/BufferedSocket.cpp:148
-#, fuzzy
msgid "Connection closed"
-msgstr "Connection timeout"
+msgstr "Connection closed"
#: dcpp/Socket.cpp:154 dcpp/ConnectionManager.cpp:182
#: dcpp/BufferedSocket.cpp:131
@@ -146,6 +145,10 @@
msgid "Directory already shared"
msgstr "Directory already shared"
+#: dcpp/ADLSearch.h:281
+msgid "Discard"
+msgstr "Discard"
+
#: dcpp/BufferedSocket.cpp:404
msgid "Disconnected"
msgstr "Disconnected"
@@ -155,7 +158,7 @@
msgid "Disconnected user leaving the hub: %1%"
msgstr "Disconnected user leaving the hub: %1%"
-#: dcpp/DCPlusPlus.cpp:103
+#: dcpp/DCPlusPlus.cpp:107
msgid "Download Queue"
msgstr "Download Queue"
@@ -264,7 +267,7 @@
msgid "Generated new TLS certificate"
msgstr "Generated new TLS certificate"
-#: dcpp/DCPlusPlus.cpp:97
+#: dcpp/DCPlusPlus.cpp:101
msgid "Hash database"
msgstr "Hash database"
@@ -341,11 +344,15 @@
msgid "Remove all subdirectories before adding this one"
msgstr "Remove all subdirectories before adding this one"
+#: dcpp/BitInputStream.h:40
+msgid "Request to seek beyond the end of data"
+msgstr "Request to seek beyond the end of data"
+
#: dcpp/DownloadManager.cpp:225
msgid "Response does not match request"
msgstr "Response does not match request"
-#: dcpp/DCPlusPlus.cpp:100
+#: dcpp/DCPlusPlus.cpp:104
msgid "Shared Files"
msgstr "Shared Files"
@@ -362,6 +369,10 @@
msgid "TLS disabled, no certificate file set"
msgstr "TLS disabled, no certificate file set"
+#: dcpp/MerkleCheckOutputStream.h:53 dcpp/MerkleCheckOutputStream.h:113
+msgid "TTH inconsistency"
+msgstr "TTH inconsistency"
+
#: dcpp/QueueManager.cpp:510 dcpp/QueueManager.cpp:519
msgid "Target filename too long"
msgstr "Target filename too long"
Modified: dcplusplus/trunk/dcpp/po/es.po
===================================================================
--- dcplusplus/trunk/dcpp/po/es.po 2008-03-18 21:34:44 UTC (rev 1046)
+++ dcplusplus/trunk/dcpp/po/es.po 2008-03-18 22:12:38 UTC (rev 1047)
@@ -7,14 +7,14 @@
msgstr ""
"Project-Id-Version: dcpp\n"
"Report-Msgid-Bugs-To: dcp...@li...\n"
-"POT-Creation-Date: 2008-03-12 21:38+0100\n"
-"PO-Revision-Date: 2008-03-07 12:20+0000\n"
+"POT-Creation-Date: 2008-03-18 22:52+0100\n"
+"PO-Revision-Date: 2008-03-17 15:22+0000\n"
"Last-Translator: Kryppy <Unknown>\n"
"Language-Team: LANGUAGE <LL...@li...>\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
-"X-Launchpad-Export-Date: 2008-03-13 15:20+0000\n"
+"X-Launchpad-Export-Date: 2008-03-18 21:20+0000\n"
"X-Generator: Launchpad (build Unknown)\n"
#: dcpp/Util.cpp:381
@@ -73,7 +73,7 @@
#: dcpp/AdcHub.cpp:281
#, boost-format
msgid "%1% was kicked by %2%: %3%"
-msgstr "%1% ha sido expulsado de% 2%:% 3%"
+msgstr "%1% ha sido expulsado de %2%: %3%"
#: dcpp/AdcHub.cpp:284
#, boost-format
@@ -130,9 +130,8 @@
msgstr "Certificado no confiable, imposible conectar"
#: dcpp/BufferedSocket.cpp:148
-#, fuzzy
msgid "Connection closed"
-msgstr "Conexión fuera de tiempo"
+msgstr "Conexión cerrada"
#: dcpp/Socket.cpp:154 dcpp/ConnectionManager.cpp:182
#: dcpp/BufferedSocket.cpp:131
@@ -148,6 +147,10 @@
msgid "Directory already shared"
msgstr "Carpeta ya Compartida"
+#: dcpp/ADLSearch.h:281
+msgid "Discard"
+msgstr "Descartar"
+
#: dcpp/BufferedSocket.cpp:404
msgid "Disconnected"
msgstr "Desconectado"
@@ -157,7 +160,7 @@
msgid "Disconnected user leaving the hub: %1%"
msgstr "Usuario desconectado porque se desconectó del hub:%1%"
-#: dcpp/DCPlusPlus.cpp:103
+#: dcpp/DCPlusPlus.cpp:107
msgid "Download Queue"
msgstr "Cola de Descargas"
@@ -266,7 +269,7 @@
msgid "Generated new TLS certificate"
msgstr "Generado nuevos certificado TLS"
-#: dcpp/DCPlusPlus.cpp:97
+#: dcpp/DCPlusPlus.cpp:101
msgid "Hash database"
msgstr "Indexación de la Base de Datos"
@@ -343,11 +346,15 @@
msgid "Remove all subdirectories before adding this one"
msgstr "Eliminar todas los subcarpetas antes de agregar este"
+#: dcpp/BitInputStream.h:40
+msgid "Request to seek beyond the end of data"
+msgstr "Solicitar a buscar más allá del final de los datos"
+
#: dcpp/DownloadManager.cpp:225
msgid "Response does not match request"
msgstr "La estructura del árbol TTH no es correcta"
-#: dcpp/DCPlusPlus.cpp:100
+#: dcpp/DCPlusPlus.cpp:104
msgid "Shared Files"
msgstr "Archivos compartidos"
@@ -366,6 +373,10 @@
msgid "TLS disabled, no certificate file set"
msgstr "TLS desactivado, no hay definido un certificado"
+#: dcpp/MerkleCheckOutputStream.h:53 dcpp/MerkleCheckOutputStream.h:113
+msgid "TTH inconsistency"
+msgstr "TTH incohere...
[truncated message content] |
|
From: <zou...@us...> - 2008-03-19 11:07:57
|
Revision: 1048
http://dcplusplus.svn.sourceforge.net/dcplusplus/?rev=1048&view=rev
Author: zouzou123gen
Date: 2008-03-19 04:07:22 -0700 (Wed, 19 Mar 2008)
Log Message:
-----------
SingleInstance was being destroyed too soon
Modified Paths:
--------------
dcplusplus/trunk/changelog.txt
dcplusplus/trunk/win32/MainWindow.cpp
dcplusplus/trunk/win32/MainWindow.h
dcplusplus/trunk/win32/main.cpp
Modified: dcplusplus/trunk/changelog.txt
===================================================================
--- dcplusplus/trunk/changelog.txt 2008-03-18 22:12:38 UTC (rev 1047)
+++ dcplusplus/trunk/changelog.txt 2008-03-19 11:07:22 UTC (rev 1048)
@@ -3,6 +3,7 @@
* Fixed help links (thanks poy)
* Use setenv on unix (thanks yakov suraev)
* Fixed out of focus window when restoring from icon (poy)
+* [L#203865] Fixed multiple instances (poy)
-- 0.705 2008-03-14 --
* Several patches for better *nix compatibility of the core (thanks steven sheehy et al)
Modified: dcplusplus/trunk/win32/MainWindow.cpp
===================================================================
--- dcplusplus/trunk/win32/MainWindow.cpp 2008-03-18 22:12:38 UTC (rev 1047)
+++ dcplusplus/trunk/win32/MainWindow.cpp 2008-03-19 11:07:22 UTC (rev 1048)
@@ -88,7 +88,7 @@
onSized(std::tr1::bind(&MainWindow::handleSized, this, _1));
onSpeaker(std::tr1::bind(&MainWindow::handleSpeaker, this, _1, _2));
onHelp(std::tr1::bind(&MainWindow::handleHelp, this, IDC_HELP_CONTENTS));
- onRaw(std::tr1::bind(&MainWindow::handleTrayIcon, this, _1, _2), SmartWin::Message(WM_APP + 242));
+ onRaw(std::tr1::bind(&MainWindow::handleTrayIcon, this, _2), SmartWin::Message(WM_APP + 242));
updateStatus();
layout();
@@ -99,8 +99,9 @@
onClosing(std::tr1::bind(&MainWindow::closing, this));
onRaw(std::tr1::bind(&MainWindow::handleTrayMessage, this), SmartWin::Message(RegisterWindowMessage(_T("TaskbarCreated"))));
- onRaw(std::tr1::bind(&MainWindow::handleEndSession, this, _1, _2), SmartWin::Message(WM_ENDSESSION));
- onRaw(std::tr1::bind(&MainWindow::handleWhereAreYou, this, _1, _2), SmartWin::Message(SingleInstance::WMU_WHERE_ARE_YOU));
+ onRaw(std::tr1::bind(&MainWindow::handleEndSession, this), SmartWin::Message(WM_ENDSESSION));
+ onRaw(std::tr1::bind(&MainWindow::handleCopyData, this, _2), SmartWin::Message(WM_COPYDATA));
+ onRaw(std::tr1::bind(&MainWindow::handleWhereAreYou, this), SmartWin::Message(SingleInstance::WMU_WHERE_ARE_YOU));
TimerManager::getInstance()->start();
@@ -537,7 +538,7 @@
paned->setRect(r);
}
-LRESULT MainWindow::handleWhereAreYou(WPARAM, LPARAM) {
+LRESULT MainWindow::handleWhereAreYou() {
return SingleInstance::WMU_WHERE_ARE_YOU;
}
@@ -817,10 +818,9 @@
}
}
-LRESULT MainWindow::handleCopyData(WPARAM /*wParam*/, LPARAM lParam) {
- tstring cmdLine = (LPCTSTR) (((COPYDATASTRUCT *)lParam)->lpData);
- parseCommandLine(Text::toT(WinUtil::getAppName() + " ") + cmdLine);
- return true;
+LRESULT MainWindow::handleCopyData(LPARAM lParam) {
+ parseCommandLine(Text::toT(WinUtil::getAppName() + " ") + reinterpret_cast<LPCTSTR>(reinterpret_cast<COPYDATASTRUCT*>(lParam)->lpData));
+ return TRUE;
}
void MainWindow::handleHashProgress() {
@@ -914,7 +914,7 @@
::HtmlHelp(handle(), WinUtil::getHelpFile().c_str(), action, id);
}
-LRESULT MainWindow::handleEndSession(WPARAM wParam, LPARAM lParam) {
+LRESULT MainWindow::handleEndSession() {
if (c != NULL) {
c->removeListener(this);
delete c;
@@ -988,7 +988,7 @@
return handled;
}
-LRESULT MainWindow::handleTrayIcon(WPARAM /*wParam*/, LPARAM lParam)
+LRESULT MainWindow::handleTrayIcon(LPARAM lParam)
{
if (lParam == WM_LBUTTONUP) {
handleRestore();
Modified: dcplusplus/trunk/win32/MainWindow.h
===================================================================
--- dcplusplus/trunk/win32/MainWindow.h 2008-03-18 22:12:38 UTC (rev 1047)
+++ dcplusplus/trunk/win32/MainWindow.h 2008-03-19 11:07:22 UTC (rev 1048)
@@ -159,16 +159,16 @@
void handleCloseWindows(unsigned id);
void handleSize();
void handleActivate(bool active);
- LRESULT handleEndSession(WPARAM wParam, LPARAM lParam);
- LRESULT handleTrayIcon(WPARAM wParam, LPARAM lParam);
+ LRESULT handleEndSession();
+ LRESULT handleTrayIcon(LPARAM lParam);
// Other events
bool handleSized(const SmartWin::WidgetSizedEventResult& sz);
LRESULT handleSpeaker(WPARAM wParam, LPARAM lParam);
LRESULT handleTrayMessage();
- LRESULT handleCopyData(WPARAM wParam, LPARAM lParam);
- LRESULT handleWhereAreYou(WPARAM wParam, LPARAM lParam);
+ LRESULT handleCopyData(LPARAM lParam);
+ LRESULT handleWhereAreYou();
void handleTabsTitleChanged(const SmartUtil::tstring& title);
Modified: dcplusplus/trunk/win32/main.cpp
===================================================================
--- dcplusplus/trunk/win32/main.cpp 2008-03-18 22:12:38 UTC (rev 1047)
+++ dcplusplus/trunk/win32/main.cpp 2008-03-19 11:07:22 UTC (rev 1048)
@@ -32,23 +32,18 @@
const UINT SingleInstance::WMU_WHERE_ARE_YOU = ::RegisterWindowMessage(WMU_WHERE_ARE_YOU_MSG);
-static void sendCmdLine(HWND hOther, const tstring& cmdLine)
-{
- LRESULT result;
-
+static void sendCmdLine(HWND hOther, const tstring& cmdLine) {
COPYDATASTRUCT cpd;
cpd.dwData = 0;
cpd.cbData = sizeof(TCHAR)*(cmdLine.length() + 1);
cpd.lpData = (void *)cmdLine.c_str();
- result = SendMessage(hOther, WM_COPYDATA, NULL, (LPARAM)&cpd);
+ ::SendMessage(hOther, WM_COPYDATA, 0, reinterpret_cast<LPARAM>(&cpd));
}
BOOL CALLBACK searchOtherInstance(HWND hWnd, LPARAM lParam) {
DWORD result;
- LRESULT ok = ::SendMessageTimeout(hWnd, SingleInstance::WMU_WHERE_ARE_YOU, 0, 0,
- SMTO_BLOCK | SMTO_ABORTIFHUNG, 5000, &result);
-
- if(ok && result == SingleInstance::WMU_WHERE_ARE_YOU) {
+ if(::SendMessageTimeout(hWnd, SingleInstance::WMU_WHERE_ARE_YOU, 0, 0, SMTO_BLOCK | SMTO_ABORTIFHUNG, 5000, &result) &&
+ result == SingleInstance::WMU_WHERE_ARE_YOU) {
// found it
HWND *target = (HWND *)lParam;
*target = hWnd;
@@ -57,14 +52,31 @@
return TRUE;
}
-bool checkOtherInstances(const tstring& cmdLine) {
+void callBack(void* ptr, const string& a) {
+ SplashWindow& splash = *((SplashWindow*)ptr);
+ splash(a);
+}
+
+#ifdef _DEBUG
+void (*old_handler)();
+
+// Dummy function to have something to break at
+void term_handler() {
+ old_handler();
+}
+#endif
+
+int SmartWinMain(SmartWin::Application& app) {
+ dcdebug("StartWinMain\n");
+
#ifndef _DEBUG
SingleInstance dcapp(_T("{DCPLUSPLUS-AEE8350A-B49A-4753-AB4B-E55479A48351}"));
#else
SingleInstance dcapp(_T("{DCPLUSPLUS-AEE8350A-B49A-4753-AB4B-E55479A48350}"));
#endif
-
if(dcapp.isRunning()) {
+ tstring cmdLine = app.getCommandLine().getParamsRaw();
+
HWND hOther = NULL;
::EnumWindows(&searchOtherInstance, (LPARAM)&hOther);
@@ -81,34 +93,11 @@
::ShowWindow(hOther, SW_RESTORE);
}
sendCmdLine(hOther, cmdLine);
- return false;
+ return 1;
}
}
- return true;
-}
-void callBack(void* ptr, const string& a) {
- SplashWindow& splash = *((SplashWindow*)ptr);
- splash(a);
-}
-
#ifdef _DEBUG
-void (*old_handler)();
-
-// Dummy function to have something to break at
-void term_handler() {
- old_handler();
-}
-#endif
-
-int SmartWinMain(SmartWin::Application& app) {
- dcdebug("StartWinMain\n");
-
- if(!checkOtherInstances(app.getCommandLine().getParamsRaw())) {
- return 1;
- }
-
-#ifdef _DEBUG
old_handler = set_terminate(&term_handler);
#endif
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <arn...@us...> - 2008-03-21 20:03:27
|
Revision: 1049
http://dcplusplus.svn.sourceforge.net/dcplusplus/?rev=1049&view=rev
Author: arnetheduck
Date: 2008-03-21 13:03:18 -0700 (Fri, 21 Mar 2008)
Log Message:
-----------
Change callback implementation
Modified Paths:
--------------
dcplusplus/trunk/smartwin/include/smartwin/Message.h
dcplusplus/trunk/smartwin/include/smartwin/Policies.h
dcplusplus/trunk/smartwin/include/smartwin/Widget.h
dcplusplus/trunk/smartwin/include/smartwin/aspects/AspectActivate.h
dcplusplus/trunk/smartwin/include/smartwin/aspects/AspectBackgroundColor.h
dcplusplus/trunk/smartwin/include/smartwin/aspects/AspectClickable.h
dcplusplus/trunk/smartwin/include/smartwin/aspects/AspectCommand.h
dcplusplus/trunk/smartwin/include/smartwin/aspects/AspectContextMenu.h
dcplusplus/trunk/smartwin/include/smartwin/aspects/AspectControl.h
dcplusplus/trunk/smartwin/include/smartwin/aspects/AspectDblClickable.h
dcplusplus/trunk/smartwin/include/smartwin/aspects/AspectDragDrop.h
dcplusplus/trunk/smartwin/include/smartwin/aspects/AspectEnabled.h
dcplusplus/trunk/smartwin/include/smartwin/aspects/AspectEraseBackground.h
dcplusplus/trunk/smartwin/include/smartwin/aspects/AspectFocus.h
dcplusplus/trunk/smartwin/include/smartwin/aspects/AspectHelp.h
dcplusplus/trunk/smartwin/include/smartwin/aspects/AspectKeyboard.h
dcplusplus/trunk/smartwin/include/smartwin/aspects/AspectMouse.h
dcplusplus/trunk/smartwin/include/smartwin/aspects/AspectPainting.h
dcplusplus/trunk/smartwin/include/smartwin/aspects/AspectRaw.h
dcplusplus/trunk/smartwin/include/smartwin/aspects/AspectScrollable.h
dcplusplus/trunk/smartwin/include/smartwin/aspects/AspectSelection.h
dcplusplus/trunk/smartwin/include/smartwin/aspects/AspectSizable.h
dcplusplus/trunk/smartwin/include/smartwin/aspects/AspectText.h
dcplusplus/trunk/smartwin/include/smartwin/aspects/AspectUpdate.h
dcplusplus/trunk/smartwin/include/smartwin/aspects/AspectVisible.h
dcplusplus/trunk/smartwin/include/smartwin/widgets/WidgetDateTimePicker.h
dcplusplus/trunk/smartwin/include/smartwin/widgets/WidgetListView.h
dcplusplus/trunk/smartwin/include/smartwin/widgets/WidgetListViewEditBox.h
dcplusplus/trunk/smartwin/include/smartwin/widgets/WidgetModalDialog.h
dcplusplus/trunk/smartwin/include/smartwin/widgets/WidgetTabSheet.h
dcplusplus/trunk/smartwin/include/smartwin/widgets/WidgetTextBox.h
dcplusplus/trunk/smartwin/include/smartwin/widgets/WidgetTreeView.h
dcplusplus/trunk/smartwin/include/smartwin/widgets/WidgetWindow.h
dcplusplus/trunk/smartwin/include/smartwin/widgets/WidgetWindowBase.h
dcplusplus/trunk/smartwin/source/Message.cpp
dcplusplus/trunk/smartwin/source/Widget.cpp
dcplusplus/trunk/smartwin/source/widgets/WidgetDialog.cpp
dcplusplus/trunk/smartwin/source/widgets/WidgetMDIChild.cpp
dcplusplus/trunk/smartwin/source/widgets/WidgetMDIParent.cpp
dcplusplus/trunk/smartwin/source/widgets/WidgetMenu.cpp
dcplusplus/trunk/smartwin/source/widgets/WidgetToolTip.cpp
dcplusplus/trunk/smartwin/source/widgets/WidgetToolbar.cpp
dcplusplus/trunk/win32/TypedListView.h
dcplusplus/trunk/win32/TypedTreeView.h
Modified: dcplusplus/trunk/smartwin/include/smartwin/Message.h
===================================================================
--- dcplusplus/trunk/smartwin/include/smartwin/Message.h 2008-03-19 11:07:22 UTC (rev 1048)
+++ dcplusplus/trunk/smartwin/include/smartwin/Message.h 2008-03-21 20:03:18 UTC (rev 1049)
@@ -30,6 +30,8 @@
#include "WindowsHeaders.h"
+#include <functional>
+
namespace SmartWin
{
// begin namespace SmartWin
@@ -43,8 +45,6 @@
struct Message
{
public:
- // Note!
- // We're asserting this constructor comes from a setter for an event callback
/// Constructor taking a System Message
/** Use this one if you need to e.g. handle an AspectRaw::onRaw Event and the
* only interesting parameter to figure out what Message to handle is the actual
@@ -70,12 +70,12 @@
// forceValues will if false "manipulate" the values for easy comparison
Message( const MSG& msg );
- ~Message()
- {}
+ ~Message() { }
bool operator<(const Message& rhs) const;
bool operator==(const Message& rhs) const;
private:
+ friend class std::tr1::hash<Message>;
/// Contains the actual Message
UINT msg;
@@ -83,7 +83,20 @@
LPARAM param;
};
+inline bool Message::operator==( const Message & right ) const {
+ return msg == right.msg && param == right.param;
+}
+
// end namespace SmartWin
}
+namespace std { namespace tr1 {
+template<>
+struct hash<SmartWin::Message> {
+ size_t operator()(const SmartWin::Message& message) const { return message.msg * 31 + message.param; }
+};
+
+} }
+
+
#endif
Modified: dcplusplus/trunk/smartwin/include/smartwin/Policies.h
===================================================================
--- dcplusplus/trunk/smartwin/include/smartwin/Policies.h 2008-03-19 11:07:22 UTC (rev 1048)
+++ dcplusplus/trunk/smartwin/include/smartwin/Policies.h 2008-03-21 20:03:18 UTC (rev 1049)
@@ -52,30 +52,21 @@
// Try to get the this pointer
Widget* w = hwnd_cast<Widget*>(handler);
- if(!w) {
- if(handler != hwnd) {
- Policy* p = hwnd_cast<Policy*>(hwnd);
- if(p) {
- return p->returnUnhandled(hwnd, uMsg, wParam, lParam);
- }
- }
- return Policy::returnUnknown(hwnd, uMsg, wParam, lParam);
- }
+ if(w) {
#ifdef WINCE
- if(uMsg == WM_DESTROY) {
+ if(uMsg == WM_DESTROY) {
#else
- if(uMsg == WM_NCDESTROY) {
+ if(uMsg == WM_NCDESTROY) {
#endif
-
- w->kill();
- return Policy::returnDestroyed(hwnd, uMsg, wParam, lParam);
- }
-
- LRESULT res = 0;
- if(w->tryFire(msg, res)) {
- return Policy::returnHandled(res, hwnd, uMsg, wParam, lParam);
- }
+ w->kill();
+ return Policy::returnDestroyed(hwnd, uMsg, wParam, lParam);
+ }
+ LRESULT res = 0;
+ if(w->tryFire(msg, res)) {
+ return Policy::returnHandled(res, hwnd, uMsg, wParam, lParam);
+ }
+ }
Policy* p;
if(handler != hwnd) {
@@ -104,21 +95,10 @@
handler = reinterpret_cast<HWND>(lParam);
} break;
- case WM_DRAWITEM : {
- /// @todo Not sure who should handle these....
- handler = hwnd;
- } break;
case WM_NOTIFY : {
NMHDR* nmhdr = reinterpret_cast<NMHDR*>(lParam);
handler = nmhdr->hwndFrom;
} break;
- /// @todo Not sure who should handle these....
- case WM_HSCROLL :
- case WM_VSCROLL :
- case WM_MEASUREITEM :
- case WM_INITMENUPOPUP : {
- handler = hwnd;
- } break;
case WM_COMMAND: {
if(lParam != 0) {
handler = reinterpret_cast<HWND>(lParam);
@@ -144,7 +124,6 @@
: public Widget
{
public:
- // Note; SmartWin::Widget won't actually be initialized here because of the virtual inheritance
Dialog(Widget* parent) : Widget(parent) { }
static LRESULT returnDestroyed(HWND hWnd, UINT msg, WPARAM wPar, LPARAM lPar) {
@@ -180,9 +159,8 @@
if ( uMsg == WM_INITDIALOG )
{
// extracting the this pointer and stuffing it into the Window with SetProp
- Widget* This = static_cast<Widget*>(reinterpret_cast< Widget * >( lParam ));
- This->setHandle( hwnd );
- This->setProp();
+ Dialog* This = reinterpret_cast<Dialog*>(lParam);
+ This->attach( hwnd );
}
}
};
@@ -236,9 +214,8 @@
if ( uMsg == WM_NCCREATE ) {
// extracting the this pointer and stuffing it into the Window with SetProp
CREATESTRUCT * cs = reinterpret_cast< CREATESTRUCT * >( lParam );
- Widget* This = static_cast<Widget*>(reinterpret_cast< Widget * >( cs->lpCreateParams ));
- This->setHandle( hWnd );
- This->setProp();
+ Normal* This = reinterpret_cast<Normal*>( cs->lpCreateParams );
+ This->attach( hWnd );
}
}
};
@@ -254,29 +231,15 @@
return Normal::returnUnhandled(hWnd, msg, wPar, lPar);
}
- virtual void attach( unsigned id ) {
- Normal::attach(id);
- createMessageMap();
+ virtual HWND create(const Widget::Seed& seed) {
+ attach(Widget::create(seed));
}
-
- void create( const Widget::Seed & cs) {
- Normal::create(cs);
- createMessageMap();
- }
virtual void attach(HWND hwnd) {
Normal::attach(hwnd);
- createMessageMap();
+ oldProc = reinterpret_cast< WNDPROC >( ::SetWindowLongPtr( handle(), GWL_WNDPROC, ( LONG_PTR ) &MessageMapPolicy<Subclassed>::wndProc ) );
}
-
- /// Call this function from your overridden create() if you add a new Widget to
- /// make the Windows Message Procedure dispatching map right.
- void createMessageMap() {
- if(!oldProc) {
- setProp();
- oldProc = reinterpret_cast< WNDPROC >( ::SetWindowLongPtr( handle(), GWL_WNDPROC, ( LONG_PTR ) &MessageMapPolicy<Subclassed>::wndProc ) );
- }
- }
+ using Normal::attach;
private:
WNDPROC oldProc;
@@ -330,9 +293,8 @@
CREATESTRUCT * cs = reinterpret_cast< CREATESTRUCT * >( lParam );
MDICREATESTRUCT * mcs = reinterpret_cast< MDICREATESTRUCT*>(cs->lpCreateParams);
- Widget* This = static_cast<Widget*>(reinterpret_cast< Widget * >( mcs->lParam ));
- This->setHandle( hWnd );
- This->setProp();
+ MDIChild* This = reinterpret_cast<MDIChild*>(mcs->lParam);
+ This->attach(hWnd);
}
}
};
@@ -356,8 +318,9 @@
WidgetType* This = static_cast<WidgetType*>(this);
if(!handled && msg.message == WM_COMMAND && This->getMDIParent()) {
Widget* active = hwnd_cast<Widget*>(This->getMDIParent()->getActive());
- if(active)
+ if(active) {
handled = active->tryFire(msg, retVal);
+ }
}
return handled;
}
Modified: dcplusplus/trunk/smartwin/include/smartwin/Widget.h
===================================================================
--- dcplusplus/trunk/smartwin/include/smartwin/Widget.h 2008-03-19 11:07:22 UTC (rev 1048)
+++ dcplusplus/trunk/smartwin/include/smartwin/Widget.h 2008-03-21 20:03:18 UTC (rev 1049)
@@ -35,8 +35,9 @@
#include <boost/noncopyable.hpp>
#include <memory>
+#include <list>
#include <functional>
-#include <map>
+#include <tr1/unordered_map>
namespace SmartWin
{
@@ -108,27 +109,23 @@
* If you need to do directly manipulation of the window use this function to
* retrieve the HWND of the Widget.
*/
- HWND handle() const { return itsHandle; }
+ HWND handle() const;
/// Send a message to the Widget
/** If you need to be able to send a message to a Widget then use this function
* as it will unroll into <br>
* a ::SendMessage from the Windows API
*/
- LRESULT sendMessage( UINT msg, WPARAM wParam = 0, LPARAM lParam = 0 ) const {
- return ::SendMessage(handle(), msg, wParam, lParam);
- }
+ LRESULT sendMessage( UINT msg, WPARAM wParam = 0, LPARAM lParam = 0) const;
- bool postMessage(UINT msg, WPARAM wParam = 0, LPARAM lParam = 0) const {
- return ::PostMessage(handle(), msg, wParam, lParam);
- }
+ bool postMessage(UINT msg, WPARAM wParam = 0, LPARAM lParam = 0) const;
/// Returns the parent Widget of the Widget
/** Most Widgets have got a parent, this function will retrieve a pointer to the
* Widgets parent, if the Widget doesn't have a parent it will return a null
* pointer.
*/
- Widget * getParent() const { return itsParent; }
+ Widget* getParent() const;
/// Repaints the whole window
/** Invalidate the window and repaints it.
@@ -155,20 +152,15 @@
* style (if true add style, else remove)
*/
void addRemoveExStyle( DWORD addStyle, bool add );
-
- void setProp() { ::SetProp(handle(), propAtom, reinterpret_cast<HANDLE>(this) ); }
typedef std::tr1::function<bool(const MSG& msg, LRESULT& ret)> CallbackType;
+ typedef std::list<CallbackType> CallbackList;
+ typedef std::tr1::unordered_map<Message, CallbackList> CallbackCollectionType;
- // We only support one Callback per message, so a map is appropriate
- typedef std::map<Message, CallbackType> CallbackCollectionType;
-
- /// Adds a new Callback into the Callback collection or replaces the existing one
- void setCallback(const Message& msg, const CallbackType& callback );
+ /// Adds a new callback - multiple callbacks for the same message will be called in the order they were added
+ void addCallback(const Message& msg, const CallbackType& callback );
- CallbackCollectionType & getCallbacks() {
- return itsCallbacks;
- }
+ CallbackCollectionType & getCallbacks();
/// Returns true if fired, else false
virtual bool tryFire( const MSG & msg, LRESULT & retVal );
@@ -176,16 +168,14 @@
/** This will be called when it's time to delete the widget */
virtual void kill();
- void setHandle(HWND hWnd) { itsHandle = hWnd; }
-
protected:
- Widget( Widget * parent, HWND hWnd = NULL );
+ Widget(Widget * parent);
virtual ~Widget();
// Creates the Widget, should NOT be called directly but overridden in the
// derived class (with no parameters)
- void create( const Seed & cs );
+ virtual HWND create( const Seed & cs );
virtual void attach(HWND wnd);
@@ -195,26 +185,50 @@
* Should normally not be called directly but rather called from e.g. one of the
* creational functions found in the WidgetFactory class.
*/
- virtual void attach( unsigned id );
+ void attach( unsigned id );
private:
friend class Application;
template<typename T> friend T hwnd_cast(HWND hwnd);
- HWND itsHandle;
- Widget * itsParent;
-
// Contains the list of signals we're (this window) processing
CallbackCollectionType itsCallbacks;
- /// The ATOM with which the pointer to the MessageMapBase is registered on the HWND
+ Widget * itsParent;
+ HWND itsHandle;
+
+ /// The atom with which the pointer to the MessageMapBase is registered on the HWND
static GlobalAtom propAtom;
};
+inline Widget::Widget( Widget * parent ) : itsParent(parent), itsHandle(NULL) {
+
+}
+
+inline LRESULT Widget::sendMessage( UINT msg, WPARAM wParam, LPARAM lParam) const {
+ return ::SendMessage(handle(), msg, wParam, lParam);
+}
+
+inline bool Widget::postMessage(UINT msg, WPARAM wParam, LPARAM lParam) const {
+ return ::PostMessage(handle(), msg, wParam, lParam);
+}
+
+inline HWND Widget::handle() const {
+ return itsHandle;
+}
+
+inline Widget* Widget::getParent() const {
+ return itsParent;
+}
+
inline bool Widget::hasStyle(DWORD style) {
return (::GetWindowLong(this->handle(), GWL_STYLE) & style) == style;
}
+inline Widget::CallbackCollectionType& Widget::getCallbacks() {
+ return itsCallbacks;
+}
+
template<typename T>
T hwnd_cast(HWND hwnd) {
Widget* w = reinterpret_cast<Widget*>(::GetProp(hwnd, Widget::propAtom));
Modified: dcplusplus/trunk/smartwin/include/smartwin/aspects/AspectActivate.h
===================================================================
--- dcplusplus/trunk/smartwin/include/smartwin/aspects/AspectActivate.h 2008-03-19 11:07:22 UTC (rev 1048)
+++ dcplusplus/trunk/smartwin/include/smartwin/aspects/AspectActivate.h 2008-03-21 20:03:18 UTC (rev 1049)
@@ -76,7 +76,7 @@
* Parameter passed is bool
*/
void onActivate(const typename Dispatcher::F& f) {
- static_cast<WidgetType*>(this)->setCallback(
+ static_cast<WidgetType*>(this)->addCallback(
Message(WM_ACTIVATE), Dispatcher(f)
);
}
Modified: dcplusplus/trunk/smartwin/include/smartwin/aspects/AspectBackgroundColor.h
===================================================================
--- dcplusplus/trunk/smartwin/include/smartwin/aspects/AspectBackgroundColor.h 2008-03-19 11:07:22 UTC (rev 1048)
+++ dcplusplus/trunk/smartwin/include/smartwin/aspects/AspectBackgroundColor.h 2008-03-21 20:03:18 UTC (rev 1049)
@@ -78,7 +78,7 @@
*/
void onBackgroundColor(const typename Dispatcher::F& f) {
WidgetType* This = static_cast<WidgetType*>(this);
- This->setCallback(
+ This->addCallback(
This->getBackgroundColorMessage(), Dispatcher(f, This )
);
}
Modified: dcplusplus/trunk/smartwin/include/smartwin/aspects/AspectClickable.h
===================================================================
--- dcplusplus/trunk/smartwin/include/smartwin/aspects/AspectClickable.h 2008-03-19 11:07:22 UTC (rev 1048)
+++ dcplusplus/trunk/smartwin/include/smartwin/aspects/AspectClickable.h 2008-03-21 20:03:18 UTC (rev 1049)
@@ -54,7 +54,7 @@
* something else. No parameters are passed.
*/
void onClicked(const typename Dispatcher::F& f) {
- static_cast<WidgetType*>(this)->setCallback(
+ static_cast<WidgetType*>(this)->addCallback(
static_cast<WidgetType*>(this)->getClickMessage(), Dispatcher(f)
);
}
Modified: dcplusplus/trunk/smartwin/include/smartwin/aspects/AspectCommand.h
===================================================================
--- dcplusplus/trunk/smartwin/include/smartwin/aspects/AspectCommand.h 2008-03-19 11:07:22 UTC (rev 1048)
+++ dcplusplus/trunk/smartwin/include/smartwin/aspects/AspectCommand.h 2008-03-21 20:03:18 UTC (rev 1049)
@@ -10,19 +10,19 @@
typedef Dispatchers::VoidVoid<> Dispatcher;
public:
void onCommand(const Dispatcher::F& f, unsigned id) {
- static_cast<WidgetType*>(this)->setCallback(
+ static_cast<WidgetType*>(this)->addCallback(
Message(WM_COMMAND, id), Dispatcher(f)
);
}
void onCommand(const Dispatcher::F& f, unsigned controlId, unsigned code) {
- static_cast<WidgetType*>(this)->setCallback(
+ static_cast<WidgetType*>(this)->addCallback(
Message(WM_COMMAND, MAKEWPARAM(controlId, code)), Dispatcher(f)
);
}
void onSysCommand(const Dispatcher::F& f, unsigned id) {
- static_cast<WidgetType*>(this)->setCallback(
+ static_cast<WidgetType*>(this)->addCallback(
Message(WM_SYSCOMMAND, id), Dispatcher(f)
);
}
Modified: dcplusplus/trunk/smartwin/include/smartwin/aspects/AspectContextMenu.h
===================================================================
--- dcplusplus/trunk/smartwin/include/smartwin/aspects/AspectContextMenu.h 2008-03-19 11:07:22 UTC (rev 1048)
+++ dcplusplus/trunk/smartwin/include/smartwin/aspects/AspectContextMenu.h 2008-03-21 20:03:18 UTC (rev 1049)
@@ -22,7 +22,7 @@
public:
void onContextMenu(const typename Dispatcher::F& f) {
- static_cast<WidgetType*>(this)->setCallback(
+ static_cast<WidgetType*>(this)->addCallback(
Message( WM_CONTEXTMENU ), Dispatcher(f)
);
}
Modified: dcplusplus/trunk/smartwin/include/smartwin/aspects/AspectControl.h
===================================================================
--- dcplusplus/trunk/smartwin/include/smartwin/aspects/AspectControl.h 2008-03-19 11:07:22 UTC (rev 1048)
+++ dcplusplus/trunk/smartwin/include/smartwin/aspects/AspectControl.h 2008-03-21 20:03:18 UTC (rev 1049)
@@ -39,7 +39,7 @@
unsigned int getControlId();
- void create(const Seed& cs);
+ virtual HWND create(const Seed& cs);
protected:
typedef AspectControl<WidgetType> ControlType;
@@ -52,9 +52,9 @@
}
template<typename WidgetType>
-void AspectControl<WidgetType>::create(const Seed& cs) {
+HWND AspectControl<WidgetType>::create(const Seed& cs) {
xAssert((cs.style & WS_CHILD) == WS_CHILD, _T("Common controls must have WS_CHILD style"));
- PolicyType::create(cs);
+ return PolicyType::create(cs);
}
template<typename WidgetType>
Modified: dcplusplus/trunk/smartwin/include/smartwin/aspects/AspectDblClickable.h
===================================================================
--- dcplusplus/trunk/smartwin/include/smartwin/aspects/AspectDblClickable.h 2008-03-19 11:07:22 UTC (rev 1048)
+++ dcplusplus/trunk/smartwin/include/smartwin/aspects/AspectDblClickable.h 2008-03-21 20:03:18 UTC (rev 1049)
@@ -52,7 +52,7 @@
*/
void onDblClicked(const Dispatcher::F& f) {
- static_cast<WidgetType*>(this)->setCallback(
+ static_cast<WidgetType*>(this)->addCallback(
WidgetType::getDblClickMessage(), Dispatcher(f)
);
}
Modified: dcplusplus/trunk/smartwin/include/smartwin/aspects/AspectDragDrop.h
===================================================================
--- dcplusplus/trunk/smartwin/include/smartwin/aspects/AspectDragDrop.h 2008-03-19 11:07:22 UTC (rev 1048)
+++ dcplusplus/trunk/smartwin/include/smartwin/aspects/AspectDragDrop.h 2008-03-21 20:03:18 UTC (rev 1049)
@@ -90,7 +90,7 @@
* }
*/
void onDragDrop(const typename Dispatcher::F& f) {
- static_cast<WidgetType*>(this)->setCallback(
+ static_cast<WidgetType*>(this)->addCallback(
Message( WM_DROPFILES ), Dispatcher(f)
);
}
Modified: dcplusplus/trunk/smartwin/include/smartwin/aspects/AspectEnabled.h
===================================================================
--- dcplusplus/trunk/smartwin/include/smartwin/aspects/AspectEnabled.h 2008-03-19 11:07:22 UTC (rev 1048)
+++ dcplusplus/trunk/smartwin/include/smartwin/aspects/AspectEnabled.h 2008-03-21 20:03:18 UTC (rev 1049)
@@ -84,7 +84,7 @@
* No parameters are passed.
*/
void onEnabled(const typename Dispatcher::F& f) {
- static_cast<WidgetType*>(this)->setCallback(
+ static_cast<WidgetType*>(this)->addCallback(
Message( WM_ENABLE ), Dispatcher(f)
);
}
Modified: dcplusplus/trunk/smartwin/include/smartwin/aspects/AspectEraseBackground.h
===================================================================
--- dcplusplus/trunk/smartwin/include/smartwin/aspects/AspectEraseBackground.h 2008-03-19 11:07:22 UTC (rev 1048)
+++ dcplusplus/trunk/smartwin/include/smartwin/aspects/AspectEraseBackground.h 2008-03-21 20:03:18 UTC (rev 1049)
@@ -70,13 +70,13 @@
* background property of the Widget.
*/
void onEraseBackground(const typename Dispatcher::F& f) {
- static_cast<WidgetType*>(this)->setCallback(
+ static_cast<WidgetType*>(this)->addCallback(
Message( WM_ERASEBKGND ), Dispatcher(f, static_cast<WidgetType*>(this) )
);
}
void noEraseBackground() {
- static_cast<WidgetType*>(this)->setCallback(
+ static_cast<WidgetType*>(this)->addCallback(
Message( WM_ERASEBKGND ), &AspectEraseBackground<WidgetType>::noEraseDispatcher
);
}
Modified: dcplusplus/trunk/smartwin/include/smartwin/aspects/AspectFocus.h
===================================================================
--- dcplusplus/trunk/smartwin/include/smartwin/aspects/AspectFocus.h 2008-03-19 11:07:22 UTC (rev 1048)
+++ dcplusplus/trunk/smartwin/include/smartwin/aspects/AspectFocus.h 2008-03-21 20:03:18 UTC (rev 1049)
@@ -68,7 +68,7 @@
* parameters are passed.
*/
void onKillFocus(const typename KillFocusDispatcher::F& f) {
- static_cast<WidgetType*>(this)->setCallback(
+ static_cast<WidgetType*>(this)->addCallback(
Message( WM_KILLFOCUS ), KillFocusDispatcher(f)
);
}
@@ -79,7 +79,7 @@
* parameters are passed.
*/
void onFocus(const typename FocusDispatcher::F& f) {
- static_cast<WidgetType*>(this)->setCallback(
+ static_cast<WidgetType*>(this)->addCallback(
Message( WM_SETFOCUS ), FocusDispatcher(f)
);
}
Modified: dcplusplus/trunk/smartwin/include/smartwin/aspects/AspectHelp.h
===================================================================
--- dcplusplus/trunk/smartwin/include/smartwin/aspects/AspectHelp.h 2008-03-19 11:07:22 UTC (rev 1048)
+++ dcplusplus/trunk/smartwin/include/smartwin/aspects/AspectHelp.h 2008-03-21 20:03:18 UTC (rev 1049)
@@ -9,7 +9,7 @@
public:
void onHelp(const typename Dispatcher::F& f) {
- static_cast<WidgetType*>(this)->setCallback(
+ static_cast<WidgetType*>(this)->addCallback(
Message( WM_HELP ), Dispatcher(f)
);
}
Modified: dcplusplus/trunk/smartwin/include/smartwin/aspects/AspectKeyboard.h
===================================================================
--- dcplusplus/trunk/smartwin/include/smartwin/aspects/AspectKeyboard.h 2008-03-19 11:07:22 UTC (rev 1048)
+++ dcplusplus/trunk/smartwin/include/smartwin/aspects/AspectKeyboard.h 2008-03-21 20:03:18 UTC (rev 1049)
@@ -157,7 +157,7 @@
{}
void onKey(UINT msg, const typename Dispatcher::F& f) {
- static_cast<WidgetType*>(this)->setCallback(
+ static_cast<WidgetType*>(this)->addCallback(
Message( msg ), Dispatcher(f)
);
}
Modified: dcplusplus/trunk/smartwin/include/smartwin/aspects/AspectMouse.h
===================================================================
--- dcplusplus/trunk/smartwin/include/smartwin/aspects/AspectMouse.h 2008-03-19 11:07:22 UTC (rev 1048)
+++ dcplusplus/trunk/smartwin/include/smartwin/aspects/AspectMouse.h 2008-03-21 20:03:18 UTC (rev 1049)
@@ -196,7 +196,7 @@
protected:
void onMouse(UINT msg, const typename Dispatcher::F& f) {
- static_cast<WidgetType*>(this)->setCallback(
+ static_cast<WidgetType*>(this)->addCallback(
Message( msg ), Dispatcher(f)
);
}
Modified: dcplusplus/trunk/smartwin/include/smartwin/aspects/AspectPainting.h
===================================================================
--- dcplusplus/trunk/smartwin/include/smartwin/aspects/AspectPainting.h 2008-03-19 11:07:22 UTC (rev 1048)
+++ dcplusplus/trunk/smartwin/include/smartwin/aspects/AspectPainting.h 2008-03-21 20:03:18 UTC (rev 1049)
@@ -66,7 +66,7 @@
* Parameters passed is Canvas &
*/
void onPainting(const typename Dispatcher::F& f) {
- static_cast<WidgetType*>(this)->setCallback(
+ static_cast<WidgetType*>(this)->addCallback(
Message( WM_PAINT ), Dispatcher(f, static_cast<WidgetType*>(this) )
);
}
Modified: dcplusplus/trunk/smartwin/include/smartwin/aspects/AspectRaw.h
===================================================================
--- dcplusplus/trunk/smartwin/include/smartwin/aspects/AspectRaw.h 2008-03-19 11:07:22 UTC (rev 1048)
+++ dcplusplus/trunk/smartwin/include/smartwin/aspects/AspectRaw.h 2008-03-21 20:03:18 UTC (rev 1049)
@@ -80,7 +80,7 @@
/// WARNING, this function uses the natural wparam/lparam order, not the inverted that previous
/// smartwin versions did. The two functions above emulate the old behaviour though...
void onRaw(const typename Dispatcher::F& f, const Message & msg) {
- static_cast<WidgetType*>(this)->setCallback(
+ static_cast<WidgetType*>(this)->addCallback(
msg, Dispatcher(f)
);
}
Modified: dcplusplus/trunk/smartwin/include/smartwin/aspects/AspectScrollable.h
===================================================================
--- dcplusplus/trunk/smartwin/include/smartwin/aspects/AspectScrollable.h 2008-03-19 11:07:22 UTC (rev 1048)
+++ dcplusplus/trunk/smartwin/include/smartwin/aspects/AspectScrollable.h 2008-03-21 20:03:18 UTC (rev 1049)
@@ -54,7 +54,7 @@
* No parameters are passed.
*/
void onScrollHorz(const Dispatcher::F& f) {
- static_cast<WidgetType*>(this)->setCallback(
+ static_cast<WidgetType*>(this)->addCallback(
Message( WM_HSCROLL ), Dispatcher(f)
);
}
@@ -67,7 +67,7 @@
* No parameters are passed.
*/
void onScrollVert(const Dispatcher::F& f) {
- static_cast<WidgetType*>(this)->setCallback(
+ static_cast<WidgetType*>(this)->addCallback(
Message( WM_VSCROLL ), Dispatcher(f)
);
}
Modified: dcplusplus/trunk/smartwin/include/smartwin/aspects/AspectSelection.h
===================================================================
--- dcplusplus/trunk/smartwin/include/smartwin/aspects/AspectSelection.h 2008-03-19 11:07:22 UTC (rev 1048)
+++ dcplusplus/trunk/smartwin/include/smartwin/aspects/AspectSelection.h 2008-03-21 20:03:18 UTC (rev 1049)
@@ -64,7 +64,7 @@
* No parameters are passed.
*/
void onSelectionChanged(const typename Dispatcher::F& f) {
- static_cast<WidgetType*>(this)->setCallback(
+ static_cast<WidgetType*>(this)->addCallback(
static_cast<WidgetType*>(this)->getSelectionChangedMessage(), Dispatcher(f)
);
}
Modified: dcplusplus/trunk/smartwin/include/smartwin/aspects/AspectSizable.h
===================================================================
--- dcplusplus/trunk/smartwin/include/smartwin/aspects/AspectSizable.h 2008-03-19 11:07:22 UTC (rev 1048)
+++ dcplusplus/trunk/smartwin/include/smartwin/aspects/AspectSizable.h 2008-03-21 20:03:18 UTC (rev 1049)
@@ -295,7 +295,7 @@
* information.
*/
void onSized(const typename SizeDispatcher::F& f) {
- static_cast<WidgetType*>(this)->setCallback(
+ static_cast<WidgetType*>(this)->addCallback(
Message( WM_SIZE ), SizeDispatcher(f)
);
}
@@ -306,7 +306,7 @@
* passed is Point which is the new position of the Widget
*/
void onMoved(const typename MoveDispatcher::F& f) {
- static_cast<WidgetType*>(this)->setCallback(
+ static_cast<WidgetType*>(this)->addCallback(
Message( WM_MOVE ), MoveDispatcher(f)
);
}
Modified: dcplusplus/trunk/smartwin/include/smartwin/aspects/AspectText.h
===================================================================
--- dcplusplus/trunk/smartwin/include/smartwin/aspects/AspectText.h 2008-03-19 11:07:22 UTC (rev 1048)
+++ dcplusplus/trunk/smartwin/include/smartwin/aspects/AspectText.h 2008-03-21 20:03:18 UTC (rev 1049)
@@ -88,7 +88,7 @@
* Widget.
*/
void onTextChanging(const typename Dispatcher::F& f) {
- static_cast<WidgetType*>(this)->setCallback(
+ static_cast<WidgetType*>(this)->addCallback(
Message( WM_SETTEXT ), Dispatcher(f)
);
}
Modified: dcplusplus/trunk/smartwin/include/smartwin/aspects/AspectUpdate.h
===================================================================
--- dcplusplus/trunk/smartwin/include/smartwin/aspects/AspectUpdate.h 2008-03-19 11:07:22 UTC (rev 1048)
+++ dcplusplus/trunk/smartwin/include/smartwin/aspects/AspectUpdate.h 2008-03-21 20:03:18 UTC (rev 1049)
@@ -52,7 +52,7 @@
/** When the Widget value/text is being updated this event will be raised.
*/
void onUpdate(const Dispatcher::F& f) {
- static_cast<WidgetType*>(this)->setCallback(
+ static_cast<WidgetType*>(this)->addCallback(
WidgetType::getUpdateMessage(), Dispatcher(f)
);
}
Modified: dcplusplus/trunk/smartwin/include/smartwin/aspects/AspectVisible.h
===================================================================
--- dcplusplus/trunk/smartwin/include/smartwin/aspects/AspectVisible.h 2008-03-19 11:07:22 UTC (rev 1048)
+++ dcplusplus/trunk/smartwin/include/smartwin/aspects/AspectVisible.h 2008-03-21 20:03:18 UTC (rev 1049)
@@ -81,7 +81,7 @@
* invisible.
*/
void onVisibilityChanged(const typename Dispatcher::F& f) {
- static_cast<WidgetType*>(this)->setCallback(
+ static_cast<WidgetType*>(this)->addCallback(
Message( WM_SHOWWINDOW ), Dispatcher(f)
);
}
Modified: dcplusplus/trunk/smartwin/include/smartwin/widgets/WidgetDateTimePicker.h
===================================================================
--- dcplusplus/trunk/smartwin/include/smartwin/widgets/WidgetDateTimePicker.h 2008-03-19 11:07:22 UTC (rev 1048)
+++ dcplusplus/trunk/smartwin/include/smartwin/widgets/WidgetD...
[truncated message content] |
|
From: <arn...@us...> - 2008-03-22 14:41:14
|
Revision: 1050
http://dcplusplus.svn.sourceforge.net/dcplusplus/?rev=1050&view=rev
Author: arnetheduck
Date: 2008-03-22 07:41:09 -0700 (Sat, 22 Mar 2008)
Log Message:
-----------
Fix messages for subclassed windows
Modified Paths:
--------------
dcplusplus/trunk/smartwin/include/smartwin/Policies.h
dcplusplus/trunk/smartwin/include/smartwin/Widget.h
dcplusplus/trunk/win32/HubFrame.cpp
dcplusplus/trunk/win32/MDIChildFrame.h
Modified: dcplusplus/trunk/smartwin/include/smartwin/Policies.h
===================================================================
--- dcplusplus/trunk/smartwin/include/smartwin/Policies.h 2008-03-21 20:03:18 UTC (rev 1049)
+++ dcplusplus/trunk/smartwin/include/smartwin/Policies.h 2008-03-22 14:41:09 UTC (rev 1050)
@@ -232,15 +232,12 @@
}
virtual HWND create(const Widget::Seed& seed) {
- attach(Widget::create(seed));
+ HWND hWnd = Widget::create(seed);
+ oldProc = reinterpret_cast< WNDPROC >( ::SetWindowLongPtr( hWnd, GWL_WNDPROC, ( LONG_PTR ) &MessageMapPolicy<Subclassed>::wndProc ) );
+ attach(hWnd);
+ return hWnd;
}
- virtual void attach(HWND hwnd) {
- Normal::attach(hwnd);
- oldProc = reinterpret_cast< WNDPROC >( ::SetWindowLongPtr( handle(), GWL_WNDPROC, ( LONG_PTR ) &MessageMapPolicy<Subclassed>::wndProc ) );
- }
- using Normal::attach;
-
private:
WNDPROC oldProc;
};
Modified: dcplusplus/trunk/smartwin/include/smartwin/Widget.h
===================================================================
--- dcplusplus/trunk/smartwin/include/smartwin/Widget.h 2008-03-21 20:03:18 UTC (rev 1049)
+++ dcplusplus/trunk/smartwin/include/smartwin/Widget.h 2008-03-22 14:41:09 UTC (rev 1050)
@@ -168,6 +168,16 @@
/** This will be called when it's time to delete the widget */
virtual void kill();
+ /// Subclasses the dialog item with the given dialog item id
+ /** Subclasses a dialog item, the id is the dialog item id from the resource
+ * editor. <br>
+ * Should normally not be called directly but rather called from e.g. one of the
+ * creational functions found in the WidgetFactory class.
+ */
+ void attach( unsigned id );
+
+ void attach(HWND wnd);
+
protected:
Widget(Widget * parent);
@@ -177,16 +187,6 @@
// derived class (with no parameters)
virtual HWND create( const Seed & cs );
- virtual void attach(HWND wnd);
-
- /// Subclasses the dialog item with the given dialog item id
- /** Subclasses a dialog item, the id is the dialog item id from the resource
- * editor. <br>
- * Should normally not be called directly but rather called from e.g. one of the
- * creational functions found in the WidgetFactory class.
- */
- void attach( unsigned id );
-
private:
friend class Application;
template<typename T> friend T hwnd_cast(HWND hwnd);
Modified: dcplusplus/trunk/win32/HubFrame.cpp
===================================================================
--- dcplusplus/trunk/win32/HubFrame.cpp 2008-03-21 20:03:18 UTC (rev 1049)
+++ dcplusplus/trunk/win32/HubFrame.cpp 2008-03-22 14:41:09 UTC (rev 1050)
@@ -95,7 +95,7 @@
WidgetTextBox::Seed cs = WinUtil::Seeds::textBox;
cs.style = WS_CHILD | WS_VISIBLE | WS_TABSTOP | WS_VSCROLL | ES_AUTOHSCROLL | ES_AUTOVSCROLL | ES_MULTILINE;
message = createTextBox(cs);
- addWidget(message, true);
+ addWidget(message, true, false);
message->onRaw(std::tr1::bind(&HubFrame::handleMessageGetDlgCode, this), SmartWin::Message(WM_GETDLGCODE));
message->onKeyDown(std::tr1::bind(&HubFrame::handleMessageKeyDown, this, _1));
message->onChar(std::tr1::bind(&HubFrame::handleMessageChar, this, _1));
Modified: dcplusplus/trunk/win32/MDIChildFrame.h
===================================================================
--- dcplusplus/trunk/win32/MDIChildFrame.h 2008-03-21 20:03:18 UTC (rev 1049)
+++ dcplusplus/trunk/win32/MDIChildFrame.h 2008-03-22 14:41:09 UTC (rev 1050)
@@ -89,9 +89,11 @@
void postClosing() { }
template<typename W>
- void addWidget(W* widget, bool alwaysFocus = false) {
- addDlgCodeMessage(widget);
-
+ void addWidget(W* widget, bool alwaysFocus = false, bool autoTab = true) {
+ if(autoTab) {
+ addDlgCodeMessage(widget);
+ }
+
addColor(widget);
if(alwaysFocus || (lastFocus == NULL)) {
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <zou...@us...> - 2008-03-22 16:09:57
|
Revision: 1051
http://dcplusplus.svn.sourceforge.net/dcplusplus/?rev=1051&view=rev
Author: zouzou123gen
Date: 2008-03-22 09:09:51 -0700 (Sat, 22 Mar 2008)
Log Message:
-----------
help stuff, towards context-sensitive help
Modified Paths:
--------------
dcplusplus/trunk/help/DCPlusPlus.hhp
dcplusplus/trunk/help/index.html
dcplusplus/trunk/help/toc.hhc
dcplusplus/trunk/smartwin/include/smartwin/aspects/AspectHelp.h
dcplusplus/trunk/win32/ADLSearchFrame.cpp
dcplusplus/trunk/win32/ADLSearchFrame.h
dcplusplus/trunk/win32/Advanced3Page.cpp
dcplusplus/trunk/win32/Advanced3Page.h
dcplusplus/trunk/win32/AdvancedPage.cpp
dcplusplus/trunk/win32/AdvancedPage.h
dcplusplus/trunk/win32/Appearance2Page.cpp
dcplusplus/trunk/win32/Appearance2Page.h
dcplusplus/trunk/win32/AppearancePage.cpp
dcplusplus/trunk/win32/AppearancePage.h
dcplusplus/trunk/win32/CertificatesPage.cpp
dcplusplus/trunk/win32/CertificatesPage.h
dcplusplus/trunk/win32/CommandDlg.cpp
dcplusplus/trunk/win32/CommandDlg.h
dcplusplus/trunk/win32/DCPlusPlus.rc
dcplusplus/trunk/win32/DirectoryListingFrame.cpp
dcplusplus/trunk/win32/DownloadPage.cpp
dcplusplus/trunk/win32/DownloadPage.h
dcplusplus/trunk/win32/FavHubsFrame.cpp
dcplusplus/trunk/win32/FavoriteDirsPage.cpp
dcplusplus/trunk/win32/FavoriteDirsPage.h
dcplusplus/trunk/win32/FinishedDLFrame.cpp
dcplusplus/trunk/win32/FinishedFrameBase.h
dcplusplus/trunk/win32/FinishedULFrame.cpp
dcplusplus/trunk/win32/GeneralPage.cpp
dcplusplus/trunk/win32/GeneralPage.h
dcplusplus/trunk/win32/HashProgressDlg.cpp
dcplusplus/trunk/win32/HubFrame.cpp
dcplusplus/trunk/win32/LogPage.cpp
dcplusplus/trunk/win32/LogPage.h
dcplusplus/trunk/win32/MDIChildFrame.h
dcplusplus/trunk/win32/MainWindow.cpp
dcplusplus/trunk/win32/MainWindow.h
dcplusplus/trunk/win32/NetworkPage.cpp
dcplusplus/trunk/win32/NetworkPage.h
dcplusplus/trunk/win32/NotepadFrame.cpp
dcplusplus/trunk/win32/PrivateFrame.cpp
dcplusplus/trunk/win32/PropPage.h
dcplusplus/trunk/win32/PublicHubsFrame.cpp
dcplusplus/trunk/win32/QueueFrame.cpp
dcplusplus/trunk/win32/QueuePage.cpp
dcplusplus/trunk/win32/QueuePage.h
dcplusplus/trunk/win32/SearchFrame.cpp
dcplusplus/trunk/win32/SettingsDialog.cpp
dcplusplus/trunk/win32/SettingsDialog.h
dcplusplus/trunk/win32/SpyFrame.cpp
dcplusplus/trunk/win32/StaticFrame.h
dcplusplus/trunk/win32/StatsFrame.cpp
dcplusplus/trunk/win32/SystemFrame.cpp
dcplusplus/trunk/win32/TabsPage.cpp
dcplusplus/trunk/win32/TabsPage.h
dcplusplus/trunk/win32/UCPage.cpp
dcplusplus/trunk/win32/UCPage.h
dcplusplus/trunk/win32/UploadPage.cpp
dcplusplus/trunk/win32/UsersFrame.cpp
dcplusplus/trunk/win32/WaitingUsersFrame.cpp
dcplusplus/trunk/win32/WinUtil.cpp
dcplusplus/trunk/win32/WinUtil.h
dcplusplus/trunk/win32/WindowsPage.cpp
dcplusplus/trunk/win32/WindowsPage.h
dcplusplus/trunk/win32/resource.h
Added Paths:
-----------
dcplusplus/trunk/help/dialog_indexing_progress.html
dcplusplus/trunk/help/resource.h
dcplusplus/trunk/help/window_directory_listing.html
dcplusplus/trunk/help/window_hub.html
dcplusplus/trunk/help/window_pm.html
dcplusplus/trunk/help/window_search.html
Removed Paths:
-------------
dcplusplus/trunk/help/help.vcproj
dcplusplus/trunk/help/window_indexing_progress.html
dcplusplus/trunk/help/window_search_frame.html
Modified: dcplusplus/trunk/help/DCPlusPlus.hhp
===================================================================
--- dcplusplus/trunk/help/DCPlusPlus.hhp 2008-03-22 14:41:09 UTC (rev 1050)
+++ dcplusplus/trunk/help/DCPlusPlus.hhp 2008-03-22 16:09:51 UTC (rev 1051)
@@ -36,19 +36,23 @@
plusplus_tag.html
netiquette.html
credits.html
-window_adlsearch.html
+window_hub.html
+window_pm.html
+window_directory_listing.html
window_public_hubs.html
window_favorite_hubs.html
window_favorite_users.html
window_download_queue.html
+window_finished_downloads.html
+window_waiting_users.html
+window_finished_uploads.html
+window_search.html
+window_adlsearch.html
window_search_spy.html
-window_search_frame.html
+window_notepad.html
window_system_log.html
-window_notepad.html
window_network_stats.html
-window_finished_downloads.html
-window_finished_uploads.html
-window_waiting_users.html
+dialog_indexing_progress.html
fdl.html
faq_keyboard_commands.html
faq_upnp.html
@@ -65,29 +69,44 @@
links.html
[ALIAS]
-IDC_HELP_CHANGELOG=changelog.html
-IDD_ADVANCED3PAGE=settings_expert.html
-IDD_ADVANCEDPAGE=settings_advanced.html
-IDD_APPEARANCE2PAGE=settings_colors_and_sounds.html
-IDD_APPEARANCEPAGE=settings_appearance.html
-IDD_DOWNLOADPAGE=settings_downloads.html
-IDD_DOWNLOADPAGE=settings_sharing.html
-IDD_FAVORITE_DIRSPAGE=settings_favoritedirs.html
-IDD_GENERALPAGE=settings_general.html
-IDD_KEYBOARD=faq_keyboard_commands.html
-IDD_LOGPAGE=settings_logs.html
-IDD_NETWORKPAGE=settings_connection.html
-IDD_QUEUEPAGE=settings_queue.html
-IDD_STARTPAGE=index.html
-IDD_UCPAGE=settings_usercommands.html
-IDD_UPLOADPAGE=settings_sharing.html
-IDD_WINDOWSPAGE=settings_windows.html
-IDR_ADLSEARCH=window_adlsearch.html
-IDD_CERTSPAGE=settings_certs.html
-IDD_TABSPAGE=settings_tabs.html
+IDH_CHANGELOG=changelog.html
+IDH_HUB=window_hub.html
+IDH_PM=window_pm.html
+IDH_DIRECTORY_LISTING=window_directory_listing.html
+IDH_PUBLIC_HUBS=window_public_hubs.html
+IDH_FAVORITE_HUBS=window_favorite_hubs.html
+IDH_FAVUSERS=window_favorite_users.html
+IDH_QUEUE=window_download_queue.html
+IDH_FINISHED_DL=window_finished_downloads.html
+IDH_WAITING_USERS=window_waiting_users.html
+IDH_FINISHED_UL=window_finished_uploads.html
+IDH_SEARCH=window_search.html
+IDH_ADL_SEARCH=window_adlsearch.html
+IDH_SEARCH_SPY=window_search_spy.html
+IDH_NOTEPAD=window_notepad.html
+IDH_SYSTEM_LOG=window_system_log.html
+IDH_NET_STATS=window_network_stats.html
+IDH_HASH_PROGRESS=dialog_indexing_progress.html
+IDH_ADVANCED3PAGE=settings_expert.html
+IDH_ADVANCEDPAGE=settings_advanced.html
+IDH_APPEARANCE2PAGE=settings_colors_and_sounds.html
+IDH_APPEARANCEPAGE=settings_appearance.html
+IDH_DOWNLOADPAGE=settings_downloads.html
+IDH_FAVORITE_DIRSPAGE=settings_favoritedirs.html
+IDH_GENERALPAGE=settings_general.html
+IDH_KEYBOARD=faq_keyboard_commands.html
+IDH_LOGPAGE=settings_logs.html
+IDH_NETWORKPAGE=settings_connection.html
+IDH_QUEUEPAGE=settings_queue.html
+IDH_STARTPAGE=index.html
+IDH_UCPAGE=settings_usercommands.html
+IDH_UPLOADPAGE=settings_sharing.html
+IDH_WINDOWSPAGE=settings_windows.html
+IDH_CERTIFICATESPAGE=settings_certs.html
+IDH_TABSPAGE=settings_tabs.html
[MAP]
-#include ..\win32\resource.h
+#include resource.h
[INFOTYPES]
Copied: dcplusplus/trunk/help/dialog_indexing_progress.html (from rev 1049, dcplusplus/trunk/help/window_indexing_progress.html)
===================================================================
--- dcplusplus/trunk/help/dialog_indexing_progress.html (rev 0)
+++ dcplusplus/trunk/help/dialog_indexing_progress.html 2008-03-22 16:09:51 UTC (rev 1051)
@@ -0,0 +1,18 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
+<html>
+<head>
+ <meta content="text/html; charset=us-ascii" http-equiv="content-type">
+ <link type="text/css" rel="stylesheet" href="office11.css">
+ <title>Indexing progress</title>
+</head>
+<body>
+<h1>Indexing progress</h1>
+This window will display what file is currently being indexed (hashed) by DC++, at what rate and approximately how long time there is left.
+<br>
+<br>
+With this window open, DC++ will index at the priority level of "normal". If DC++ index in the background, the priority level is "lowest" (below "normal"). The priority level affect how much access time DC++ should get for indexing files. A higher priority mean that DC++ will index more frequent, but will also put on more strain on the computer and it will possibly perform slower.
+<br>
+<br>
+Note that files will not be shared until they are indexed.
+</body>
+</html>
Deleted: dcplusplus/trunk/help/help.vcproj
===================================================================
--- dcplusplus/trunk/help/help.vcproj 2008-03-22 14:41:09 UTC (rev 1050)
+++ dcplusplus/trunk/help/help.vcproj 2008-03-22 16:09:51 UTC (rev 1051)
@@ -1,296 +0,0 @@
-<?xml version="1.0" encoding="Windows-1252"?>
-<VisualStudioProject
- ProjectType="Visual C++"
- Version="8.00"
- Name="help"
- ProjectGUID="{9011F311-1280-4C2D-888C-B3202DC2A6ED}"
- RootNamespace="help"
- >
- <Platforms>
- <Platform
- Name="Win32"
- />
- </Platforms>
- <ToolFiles>
- </ToolFiles>
- <Configurations>
- <Configuration
- Name="Release|Win32"
- OutputDirectory="$(SolutionDir)app"
- IntermediateDirectory="$(SolutionDir)vc7\$(ConfigurationName)\$(ProjectName)"
- ConfigurationType="10"
- InheritedPropertySheets="$(VCInstallDir)VCProjectDefaults\UpgradeFromVC71.vsprops"
- >
- <Tool
- Name="VCPreBuildEventTool"
- />
- <Tool
- Name="VCCustomBuildTool"
- />
- <Tool
- Name="VCMIDLTool"
- />
- <Tool
- Name="VCPostBuildEventTool"
- />
- </Configuration>
- </Configurations>
- <References>
- </References>
- <Files>
- <Filter
- Name="Project File"
- Filter="hpp"
- UniqueIdentifier="{4FC737F1-C7A5-4376-A066-2A32D752A2FF}"
- >
- <File
- RelativePath=".\DCPlusPlus.hhp"
- DeploymentContent="true"
- >
- <FileConfiguration
- Name="Release|Win32"
- >
- <Tool
- Name="VCCustomBuildTool"
- Description="Compiling Help File"
- CommandLine="compile.cmd
"
- AdditionalDependencies="$(ProjectDir)changelog.html;$(ProjectDir)index.hhk;$(ProjectDir)toc.hhc;..\windows\resource.h"
- Outputs="$(SolutionDir)app\DCPlusPlus.chm"
- />
- </FileConfiguration>
- </File>
- <File
- RelativePath=".\index.hhk"
- >
- </File>
- <File
- RelativePath=".\toc.hhc"
- >
- </File>
- </Filter>
- <Filter
- Name="HTML Files"
- Filter="cpp"
- UniqueIdentifier="{93995380-89BD-4b04-88EB-625FBE52EBFB}"
- >
- <File
- RelativePath=".\changelog.html"
- >
- </File>
- <File
- RelativePath=".\chat_commands.html"
- >
- </File>
- <File
- RelativePath=".\credits.html"
- >
- </File>
- <File
- RelativePath=".\dev_applypatch.html"
- >
- </File>
- <File
- RelativePath=".\dev_createpatch.html"
- >
- </File>
- <File
- RelativePath=".\faq.html"
- >
- </File>
- <File
- RelativePath=".\faq_activemode.html"
- >
- </File>
- <File
- RelativePath=".\faq_different_icons.html"
- >
- </File>
- <File
- RelativePath=".\faq_install.html"
- >
- </File>
- <File
- RelativePath=".\faq_keyboard_commands.html"
- >
- </File>
- <File
- RelativePath=".\faq_nosearch.html"
- >
- </File>
- <File
- RelativePath=".\faq_secret.html"
- >
- </File>
- <File
- RelativePath=".\faq_slowdownload.html"
- >
- </File>
- <File
- RelativePath=".\faq_units.html"
- >
- </File>
- <File
- RelativePath=".\faq_university.html"
- >
- </File>
- <File
- RelativePath=".\faq_upnp.html"
- >
- </File>
- <File
- RelativePath=".\fdl.html"
- >
- </File>
- <File
- RelativePath=".\index.html"
- >
- </File>
- <File
- RelativePath=".\keyboard_commands.html"
- >
- </File>
- <File
- RelativePath=".\Links.html"
- >
- </File>
- <File
- RelativePath=".\menu_help.html"
- >
- </File>
- <File
- RelativePath=".\netiquette.html"
- >
- </File>
- <File
- RelativePath=".\non-routable.html"
- >
- </File>
- <File
- RelativePath=".\plusplus_tag.html"
- >
- </File>
- <File
- RelativePath=".\settings_advanced.html"
- >
- </File>
- <File
- RelativePath=".\settings_appearance.html"
- >
- </File>
- <File
- RelativePath=".\settings_certs.html"
- >
- </File>
- <File
- RelativePath=".\settings_colors_and_sounds.html"
- >
- </File>
- <File
- RelativePath=".\settings_connection.html"
- >
- </File>
- <File
- RelativePath=".\settings_downloads.html"
- >
- </File>
- <File
- RelativePath=".\settings_expert.html"
- >
- </File>
- <File
- RelativePath=".\settings_favoritedirs.html"
- >
- </File>
- <File
- RelativePath=".\settings_general.html"
- >
- </File>
- <File
- RelativePath=".\settings_logs.html"
- >
- </File>
- <File
- RelativePath=".\settings_queue.html"
- >
- </File>
- <File
- RelativePath=".\settings_sharing.html"
- >
- </File>
- <File
- RelativePath=".\settings_tabs.html"
- >
- </File>
- <File
- RelativePath=".\settings_usercommands.html"
- >
- </File>
- <File
- RelativePath=".\settings_windows.html"
- >
- </File>
- <File
- RelativePath=".\template.html"
- >
- </File>
- <File
- RelativePath=".\window_adlsearch.html"
- >
- </File>
- <File
- RelativePath=".\window_download_queue.html"
- >
- </File>
- <File
- RelativePath=".\window_favorite_hubs.html"
- >
- </File>
- <File
- RelativePath=".\window_favorite_users.html"
- >
- </File>
- <File
- RelativePath=".\window_finished_downloads.html"
- >
- </File>
- <File
- RelativePath=".\window_finished_uploads.html"
- >
- </File>
- <File
- RelativePath=".\window_indexing_progress.html"
- >
- </File>
- <File
- RelativePath=".\window_network_stats.html"
- >
- </File>
- <File
- RelativePath=".\window_notepad.html"
- >
- </File>
- <File
- RelativePath=".\window_public_hubs.html"
- >
- </File>
- <File
- RelativePath=".\window_search_frame.html"
- >
- </File>
- <File
- RelativePath=".\window_search_spy.html"
- >
- </File>
- <File
- RelativePath=".\window_system_log.html"
- >
- </File>
- <File
- RelativePath=".\window_waiting_users.html"
- >
- </File>
- </Filter>
- </Files>
- <Globals>
- </Globals>
-</VisualStudioProject>
Modified: dcplusplus/trunk/help/index.html
===================================================================
--- dcplusplus/trunk/help/index.html 2008-03-22 14:41:09 UTC (rev 1050)
+++ dcplusplus/trunk/help/index.html 2008-03-22 16:09:51 UTC (rev 1051)
@@ -34,20 +34,28 @@
View the credits and license of this help file.
<br>
<h2>Windows</h2>
-<div style="margin-left: 40px;"><a href="window_public_hubs.html">Public hubs</a><br>
+<div style="margin-left: 40px;">
+<a href="window_hub.html">Hub</a><br>
+<a href="window_pm.html">Private Message</a><br>
+<a href="window_directory_listing.html">File List</a><br>
+<a href="window_public_hubs.html">Public hubs</a><br>
+<a href="window_favorite_hubs.html">Favorite Hubs</a><br>
+<a href="window_favorite_users.html">Favorite Users</a><br>
<a href="window_download_queue.html">Download queue</a><br>
+<a href="window_finished_downloads.html">Finished downloads</a><br>
<a href="window_waiting_users.html">Waiting users</a><br>
-<a href="window_finished_downloads.html">Finished downloads</a><br>
<a href="window_finished_uploads.html">Finished uploads</a><br>
-<a href="window_favorite_hubs.html">Favorite Hubs</a><br>
-<a href="window_favorite_users.html">Favorite Users</a>
-<a href="window_search_frame.html">Search</a><br>
+<a href="window_search.html">Search</a><br>
<a href="window_adlsearch.html">ADLSearch</a><br>
<a href="window_search_spy.html">Search spy</a><br>
-<a href="window_network_stats.html">Network stattistics</a><br>
<a href="window_notepad.html">Notepad</a><br>
-<a href="window_indexing_progress.html">Indexing progress</a><br>
-<a href="window_system_log.html">System log</a><br></div>
+<a href="window_system_log.html">System log</a><br>
+<a href="window_network_stats.html">Network statistics</a><br>
+</div>
+<h2>Dialogs</h2>
+<div style="margin-left: 40px;">
+<a href="dialog_indexing_progress.html">Indexing progress</a><br>
+</div>
<h2>Frequently Asked Questions</h2>
<div style="margin-left: 40px;"> <a href="faq_activemode.html">How to
set up active mode?</a><br>
Added: dcplusplus/trunk/help/resource.h
===================================================================
--- dcplusplus/trunk/help/resource.h (rev 0)
+++ dcplusplus/trunk/help/resource.h 2008-03-22 16:09:51 UTC (rev 1051)
@@ -0,0 +1,40 @@
+#ifndef DCPLUSPLUS_HELP_RESOURCE_H
+#define DCPLUSPLUS_HELP_RESOURCE_H
+
+#define IDH_CHANGELOG 500
+#define IDH_HUB 501
+#define IDH_PM 502
+#define IDH_DIRECTORY_LISTING 503
+#define IDH_PUBLIC_HUBS 504
+#define IDH_FAVORITE_HUBS 505
+#define IDH_FAVUSERS 506
+#define IDH_QUEUE 507
+#define IDH_FINISHED_DL 508
+#define IDH_WAITING_USERS 509
+#define IDH_FINISHED_UL 510
+#define IDH_SEARCH 511
+#define IDH_ADL_SEARCH 512
+#define IDH_SEARCH_SPY 513
+#define IDH_NOTEPAD 514
+#define IDH_SYSTEM_LOG 515
+#define IDH_NET_STATS 516
+#define IDH_HASH_PROGRESS 517
+#define IDH_ADVANCED3PAGE 518
+#define IDH_ADVANCEDPAGE 519
+#define IDH_APPEARANCE2PAGE 520
+#define IDH_APPEARANCEPAGE 521
+#define IDH_DOWNLOADPAGE 522
+#define IDH_UPLOADPAGE 523
+#define IDH_FAVORITE_DIRSPAGE 524
+#define IDH_GENERALPAGE 525
+#define IDH_KEYBOARD 526
+#define IDH_LOGPAGE 527
+#define IDH_NETWORKPAGE 528
+#define IDH_QUEUEPAGE 529
+#define IDH_STARTPAGE 530
+#define IDH_UCPAGE 531
+#define IDH_WINDOWSPAGE 532
+#define IDH_CERTIFICATESPAGE 533
+#define IDH_TABSPAGE 534
+
+#endif
Modified: dcplusplus/trunk/help/toc.hhc
===================================================================
--- dcplusplus/trunk/help/toc.hhc 2008-03-22 14:41:09 UTC (rev 1050)
+++ dcplusplus/trunk/help/toc.hhc 2008-03-22 16:09:51 UTC (rev 1051)
@@ -25,36 +25,48 @@
</OBJECT>
<UL>
<LI> <OBJECT type="text/sitemap">
+ <param name="Name" value="Hub">
+ <param name="Local" value="window_hub.html">
+ </OBJECT>
+ <LI> <OBJECT type="text/sitemap">
+ <param name="Name" value="Private Message">
+ <param name="Local" value="window_pm.html">
+ </OBJECT>
+ <LI> <OBJECT type="text/sitemap">
+ <param name="Name" value="File List">
+ <param name="Local" value="window_directory_listing.html">
+ </OBJECT>
+ <LI> <OBJECT type="text/sitemap">
<param name="Name" value="Public Hubs">
<param name="Local" value="window_public_hubs.html">
</OBJECT>
<LI> <OBJECT type="text/sitemap">
+ <param name="Name" value="Favorite Hubs">
+ <param name="Local" value="window_favorite_hubs.html">
+ </OBJECT>
+ <LI> <OBJECT type="text/sitemap">
+ <param name="Name" value="Favorite Users">
+ <param name="Local" value="window_favorite_users.html">
+ </OBJECT>
+ <LI> <OBJECT type="text/sitemap">
<param name="Name" value="Download queue">
<param name="Local" value="window_download_queue.html">
</OBJECT>
<LI> <OBJECT type="text/sitemap">
+ <param name="Name" value="Finished downloads">
+ <param name="Local" value="window_finished_downloads.html">
+ </OBJECT>
+ <LI> <OBJECT type="text/sitemap">
<param name="Name" value="Waiting users">
<param name="Local" value="window_waiting_users.html">
</OBJECT>
<LI> <OBJECT type="text/sitemap">
- <param name="Name" value="Finished downloads">
- <param name="Local" value="window_finished_downloads.html">
- </OBJECT>
- <LI> <OBJECT type="text/sitemap">
<param name="Name" value="Finished uploads">
<param name="Local" value="window_finished_uploads.html">
</OBJECT>
<LI> <OBJECT type="text/sitemap">
- <param name="Name" value="Favorite Hubs">
- <param name="Local" value="window_favorite_hubs.html">
- </OBJECT>
- <LI> <OBJECT type="text/sitemap">
- <param name="Name" value="Favorite Users">
- <param name="Local" value="window_favorite_users.html">
- </OBJECT>
- <LI> <OBJECT type="text/sitemap">
<param name="Name" value="Search">
- <param name="Local" value="window_search_frame.html">
+ <param name="Local" value="window_search.html">
</OBJECT>
<LI> <OBJECT type="text/sitemap">
<param name="Name" value="ADLSearch">
@@ -65,23 +77,28 @@
<param name="Local" value="window_search_spy.html">
</OBJECT>
<LI> <OBJECT type="text/sitemap">
- <param name="Name" value="Network statistics">
- <param name="Local" value="window_network_stats.html">
- </OBJECT>
- <LI> <OBJECT type="text/sitemap">
<param name="Name" value="Notepad">
<param name="Local" value="window_notepad.html">
</OBJECT>
<LI> <OBJECT type="text/sitemap">
- <param name="Name" value="Indexing progress">
- <param name="Local" value="window_indexing_progress.html">
- </OBJECT>
- <LI> <OBJECT type="text/sitemap">
<param name="Name" value="System log">
<param name="Local" value="window_system_log.html">
</OBJECT>
+ <LI> <OBJECT type="text/sitemap">
+ <param name="Name" value="Network statistics">
+ <param name="Local" value="window_network_stats.html">
+ </OBJECT>
</UL>
<LI> <OBJECT type="text/sitemap">
+ <param name="Name" value="Dialogs">
+ </OBJECT>
+ <UL>
+ <LI> <OBJECT type="text/sitemap">
+ <param name="Name" value="Indexing progress">
+ <param name="Local" value="dialog_indexing_progress.html">
+ </OBJECT>
+ </UL>
+ <LI> <OBJECT type="text/sitemap">
<param name="Name" value="Frequently Asked Questions">
</OBJECT>
<UL>
Added: dcplusplus/trunk/help/window_directory_listing.html
===================================================================
--- dcplusplus/trunk/help/window_directory_listing.html (rev 0)
+++ dcplusplus/trunk/help/window_directory_listing.html 2008-03-22 16:09:51 UTC (rev 1051)
@@ -0,0 +1,12 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
+<html>
+<head>
+ <meta content="text/html; charset=us-ascii" http-equiv="content-type">
+ <link type="text/css" rel="stylesheet" href="office11.css">
+ <title>File List</title>
+</head>
+<body>
+<h1>File List</h1>
+This help file is a stub; please complete it.
+</body>
+</html>
Added: dcplusplus/trunk/help/window_hub.html
===================================================================
--- dcplusplus/trunk/help/window_hub.html (rev 0)
+++ dcplusplus/trunk/help/window_hub.html 2008-03-22 16:09:51 UTC (rev 1051)
@@ -0,0 +1,12 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
+<html>
+<head>
+ <meta content="text/html; charset=us-ascii" http-equiv="content-type">
+ <link type="text/css" rel="stylesheet" href="office11.css">
+ <title>Hub</title>
+</head>
+<body>
+<h1>Hub</h1>
+This help file is a stub; please complete it.
+</body>
+</html>
Deleted: dcplusplus/trunk/help/window_indexing_progress.html
===================================================================
--- dcplusplus/trunk/help/window_indexing_progress.html 2008-03-22 14:41:09 UTC (rev 1050)
+++ dcplusplus/trunk/help/window_indexing_progress.html 2008-03-22 16:09:51 UTC (rev 1051)
@@ -1,18 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
-<html>
-<head>
- <meta content="text/html; charset=us-ascii" http-equiv="content-type">
- <link type="text/css" rel="stylesheet" href="office11.css">
- <title>Indexing progress</title>
-</head>
-<body>
-<h1>Indexing progress</h1>
-This window will display what file is currently being indexed (hashed) by DC++, at what rate and approximately how long time there is left.
-<br>
-<br>
-With this window open, DC++ will index at the priority level of "normal". If DC++ index in the background, the priority level is "lowest" (below "normal"). The priority level affect how much access time DC++ should get for indexing files. A higher priority mean that DC++ will index more frequent, but will also put on more strain on the computer and it will possibly perform slower.
-<br>
-<br>
-Note that files will not be shared until they are indexed.
-</body>
-</html>
Added: dcplusplus/trunk/help/window_pm.html
===================================================================
--- dcplusplus/trunk/help/window_pm.html (rev 0)
+++ dcplusplus/trunk/help/window_pm.html 2008-03-22 16:09:51 UTC (rev 1051)
@@ -0,0 +1,12 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
+<html>
+<head>
+ <meta content="text/html; charset=us-ascii" http-equiv="content-type">
+ <link type="text/css" rel="stylesheet" href="office11.css">
+ <title>Private Message</title>
+</head>
+<body>
+<h1>Private Message</h1>
+This help file is a stub; please complete it.
+</body>
+</html>
Copied: dcplusplus/trunk/help/window_search.html (from rev 1049, dcplusplus/trunk/help/window_search_frame.html)
===================================================================
--- dcplusplus/trunk/help/window_search.html (rev 0)
+++ dcplusplus/trunk/help/window_search.html 2008-03-22 16:09:51 UTC (rev 1051)
@@ -0,0 +1,62 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
+<html>
+<head>
+ <meta content="text/html; charset=us-ascii" http-equiv="content-type">
+ <link type="text/css" rel="stylesheet" href="office11.css">
+ <title>Search</title>
+</head>
+<body>
+<h1>Search</h1>
+<h2>Search Options</h2>
+<dl style="margin-left: 40px;">
+ <dt>Search for</dt>
+ <dd>This is the set of search strings to search for. Words beginning with "-" will be filtered away.</dd>
+ <dt>Purge</dt>
+ <dd>Will remove <a href="settings_experts_only#searchhistory">search history</a>.</dd>
+ <dt>Size</dt>
+ <dd>Filter away files depending on their file size.</dd>
+ <dt>File type</dt>
+ <dd>Filter away files depending on their file type (extension).</dd>
+ <dt>Only users with free slots</dt>
+ <dd>Filter away files depending on the users free slots</dd>
+ <dt>Hubs</dt>
+ <dd>Search only selected hubs.</dd>
+</dl>
+<h2>Columns</h2>
+<dl style="margin-left: 80px;">
+ <dt>File</dt>
+ <dd>The file name.</dd>
+ <dt>User</dt>
+ <dd>The user's nick name.</dd>
+ <dt>Type</dt>
+ <dd>The file's extension (file type).</dd>
+ <dt>Size</dt>
+ <dd>The file's size.</dd>
+ <dt>Slots</dt>
+ <dd>x/y: x slots available of a total y.</dd>
+ <dt>Path</dt>
+ <dd>The path in the user's file list where the file is stored.</dd>
+ <dt>Connection</dt>
+ <dd>The user's possible <a href="settings_general#linespeed">line speed in upload</a>.</dd>
+ <dt>Hub</dt>
+ <dd>In which hub the user is in.</dd>
+ <dt>Exact size</dt>
+ <dd>The exact size of the file.</dd>
+ <dt>IP</dt>
+ <dd>The user's IP.</dd>
+ <dt>TTH root</dt>
+ <dd>The TTH root for the file.</dd>
+ <dt>CID</dt>
+ <dd>The unique ID that DC++ use to identify other users.</dd>
+</dl>
+<h2>Status bar</h2>
+<dl style="margin-left: 40px;">
+ <dt>Unnamed checkbox</dt>
+ <dd>Toggle the displayment of the search options.</dd>
+ <dt># items</dt>
+ <dd>The amount of items that are displayed in the window.</dd>
+ <dt># filtered</dt>
+ <dd>The amount of files that have been filtered away from the view.</dd>
+</dl>
+</body>
+</html>
Deleted: dcplusplus/trunk/help/window_search_frame.html
===================================================================
--- dcplusplus/trunk/help/window_search_frame.html 2008-03-22 14:41:09 UTC (rev 1050)
+++ dcplusplus/trunk/help/window_search_frame.html 2008-03-22 16:09:51 UTC (rev 1051)
@@ -1,62 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
-<html>
-<head>
- <meta content="text/html; charset=us-ascii" http-equiv="content-type">
- <link type="text/css" rel="stylesheet" href="office11.css">
- <title>Search</title>
-</head>
-<body>
-<h1>Search</h1>
-<h2>Search Options</h2>
-<dl style="margin-left: 40px;">
- <dt>Search for</dt>
- <dd>This is the set of search strings to search for. Words beginning with "-" will be filtered away.</dd>
- <dt>Purge</dt>
- <dd>Will remove <a href="settings_experts_only#searchhistory">search history</a>.</dd>
- <dt>Size</dt>
- <dd>Filter away files depending on their file size.</dd>
- <dt>File type</dt>
- <dd>Filter away files depending on their file type (extension).</dd>
- <dt>Only users with free slots</dt>
- <dd>Filter away files depending on the users free slots</dd>
- <dt>Hubs</dt>
- <dd>Search only selected hubs.</dd>
-</dl>
-<h2>Columns</h2>
-<dl style="margin-left: 80px;">
- <dt>File</dt>
- <dd>The file name.</dd>
- <dt>User</dt>
- <dd>The user's nick name.</dd>
- <dt>Type</dt>
- <dd>The file's extension (file type).</dd>
- <dt>Size</dt>
- <dd>The file's size.</dd>
- <dt>Slots</dt>
- <dd>x/y: x slots available of a total y.</dd>
- <dt>Path</dt>
- <dd>The path in the user's file list where the file is stored.</dd>
- <dt>Connection</dt>
- <dd>The user's possible <a href="settings_general#linespeed">line speed in upload</a>.</dd>
- <dt>Hub</dt>
- <dd>In which hub the user is in.</dd>
- <dt>Exact size</dt>
- <dd>The exact size of the file.</dd>
- <dt>IP</dt>
- <dd>The user's IP.</dd>
- <dt>TTH root</dt>
- <dd>The TTH root for the file.</dd>
- <dt>CID</dt>
- <dd>The unique ID that DC++ use to identify other users.</dd>
-</dl>
-<h2>Status bar</h2>
-<dl style="margin-left: 40px;">
- <dt>Unnamed checkbox</dt>
- <dd>Toggle the displayment of the search options.</dd>
- <dt># items</dt>
- <dd>The amount of items that are displayed in the window.</dd>
- <dt># filtered</dt>
- <dd>The amount of files that have been filtered away from the view.</dd>
-</dl>
-</body>
-</html>
Modified: dcplusplus/trunk/smartwin/include/smartwin/aspects/AspectHelp.h
===================================================================
--- dcplusplus/trunk/smartwin/include/smartwin/aspects/AspectHelp.h 2008-03-22 14:41:09 UTC (rev 1050)
+++ dcplusplus/trunk/smartwin/include/smartwin/aspects/AspectHelp.h 2008-03-22 16:09:51 UTC (rev 1051)
@@ -5,9 +5,32 @@
template<typename WidgetType>
class AspectHelp {
- typedef Dispatchers::VoidVoid<TRUE> Dispatcher;
+ struct Dispatcher {
+ typedef std::tr1::function<void (HWND, unsigned)> F;
+ Dispatcher(const F& f_) : f(f_) { }
+
+ bool operator()(const MSG& msg, LRESULT& ret) {
+ LPHELPINFO lphi = reinterpret_cast<LPHELPINFO>(msg.lParam);
+ if(lphi->iContextType != HELPINFO_WINDOW)
+ return false;
+ f(reinterpret_cast<HWND>(lphi->hItemHandle), lphi->dwContextId);
+ ret = TRUE;
+ return true;
+ }
+
+ F f;
+ };
+
public:
+ unsigned getHelpId() {
+ return ::GetWind...
[truncated message content] |
|
From: <arn...@us...> - 2008-03-23 18:41:25
|
Revision: 1052
http://dcplusplus.svn.sourceforge.net/dcplusplus/?rev=1052&view=rev
Author: arnetheduck
Date: 2008-03-23 11:41:22 -0700 (Sun, 23 Mar 2008)
Log Message:
-----------
Add language script and ignore some stuff
Added Paths:
-----------
dcplusplus/trunk/.bzrignore
dcplusplus/trunk/update-languages.sh
Property Changed:
----------------
dcplusplus/trunk/
Property changes on: dcplusplus/trunk
___________________________________________________________________
Name: bzr:revision-info
+ timestamp: 2008-03-23 19:39:26.720000029 +0100
committer: Jacek Sieka <arn...@gm...>
properties:
branch-nick: dcplusplus
Name: bzr:file-ids
+ update-languages.sh updatelanguages.sh-20080323172209-blm3rymztdyit6k9-1
.bzrignore bzrignore-20080323172312-t83zl06ak2a2csed-1
Name: bzr:revision-id:v3-trunk1
+ 1027 arn...@gm...-20080323183926-schknwnkgeo7ivdn
Added: dcplusplus/trunk/.bzrignore
===================================================================
--- dcplusplus/trunk/.bzrignore (rev 0)
+++ dcplusplus/trunk/.bzrignore 2008-03-23 18:41:22 UTC (rev 1052)
@@ -0,0 +1,10 @@
+./build
+./.project
+./.cproject
+./.sconsign.dblite
+./.settings
+custom.py
+*.h.gch
+./htmlhelp/include/htmlhelp.h
+./htmlhelp/lib/htmlhelp.lib
+natupnp.h
Added: dcplusplus/trunk/update-languages.sh
===================================================================
--- dcplusplus/trunk/update-languages.sh (rev 0)
+++ dcplusplus/trunk/update-languages.sh 2008-03-23 18:41:22 UTC (rev 1052)
@@ -0,0 +1,39 @@
+#!/bin/bash
+
+SOURCE=$1
+if [[ ! -d $SOURCE ]] ; then
+ echo $SOURCE is not a directory && exit 1
+fi
+
+shopt -s nullglob
+
+process() {
+
+PREFIX=$1
+DIR=$2
+
+mv $SOURCE/$PREFIX/*.po $SOURCE
+
+cd $DIR/po
+
+for a in $SOURCE/${PREFIX}-*.po ; do
+ FILE=${a#$SOURCE/${PREFIX}-}
+ echo $FILE
+
+ if [ -f $FILE ] ; then
+ msgmerge -U -C $FILE $a $PREFIX.pot
+ else
+ msgmerge -U $a $PREFIX.pot
+ fi
+ mv $a $FILE
+done
+
+cd ../..
+
+}
+
+scons i18n=true
+
+process libdcpp dcpp
+process dcpp-win32 win32
+
Property changes on: dcplusplus/trunk/update-languages.sh
___________________________________________________________________
Name: svn:executable
+ *
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <arn...@us...> - 2008-03-26 13:24:57
|
Revision: 1053
http://dcplusplus.svn.sourceforge.net/dcplusplus/?rev=1053&view=rev
Author: arnetheduck
Date: 2008-03-26 06:24:55 -0700 (Wed, 26 Mar 2008)
Log Message:
-----------
Context-sensitive help
Modified Paths:
--------------
dcplusplus/trunk/changelog.txt
dcplusplus/trunk/help/DCPlusPlus.hhp
dcplusplus/trunk/help/compile.cmd
dcplusplus/trunk/help/index.html
dcplusplus/trunk/help/resource.h
dcplusplus/trunk/help/settings_advanced.html
dcplusplus/trunk/help/settings_appearance.html
dcplusplus/trunk/help/settings_certs.html
dcplusplus/trunk/help/settings_colors_and_sounds.html
dcplusplus/trunk/help/settings_connection.html
dcplusplus/trunk/help/settings_expert.html
dcplusplus/trunk/help/settings_favoritedirs.html
dcplusplus/trunk/help/settings_logs.html
dcplusplus/trunk/help/settings_queue.html
dcplusplus/trunk/help/settings_sharing.html
dcplusplus/trunk/help/settings_tabs.html
dcplusplus/trunk/help/settings_windows.html
dcplusplus/trunk/help/toc.hhc
dcplusplus/trunk/smartwin/include/smartwin/aspects/AspectControl.h
dcplusplus/trunk/smartwin/include/smartwin/aspects/AspectHelp.h
dcplusplus/trunk/win32/ADLSearchFrame.cpp
dcplusplus/trunk/win32/Advanced3Page.cpp
dcplusplus/trunk/win32/Advanced3Page.h
dcplusplus/trunk/win32/Appearance2Page.cpp
dcplusplus/trunk/win32/Appearance2Page.h
dcplusplus/trunk/win32/AppearancePage.cpp
dcplusplus/trunk/win32/AppearancePage.h
dcplusplus/trunk/win32/CertificatesPage.cpp
dcplusplus/trunk/win32/CertificatesPage.h
dcplusplus/trunk/win32/CommandDlg.cpp
dcplusplus/trunk/win32/DCPlusPlus.rc
dcplusplus/trunk/win32/DownloadPage.cpp
dcplusplus/trunk/win32/DownloadPage.h
dcplusplus/trunk/win32/FavoriteDirsPage.cpp
dcplusplus/trunk/win32/FavoriteDirsPage.h
dcplusplus/trunk/win32/GeneralPage.cpp
dcplusplus/trunk/win32/GeneralPage.h
dcplusplus/trunk/win32/LogPage.cpp
dcplusplus/trunk/win32/LogPage.h
dcplusplus/trunk/win32/MainWindow.cpp
dcplusplus/trunk/win32/NetworkPage.cpp
dcplusplus/trunk/win32/NetworkPage.h
dcplusplus/trunk/win32/PropPage.cpp
dcplusplus/trunk/win32/PropPage.h
dcplusplus/trunk/win32/QueuePage.cpp
dcplusplus/trunk/win32/QueuePage.h
dcplusplus/trunk/win32/SettingsDialog.cpp
dcplusplus/trunk/win32/SettingsDialog.h
dcplusplus/trunk/win32/UCPage.cpp
dcplusplus/trunk/win32/UCPage.h
dcplusplus/trunk/win32/UploadPage.cpp
dcplusplus/trunk/win32/UploadPage.h
dcplusplus/trunk/win32/WinUtil.cpp
dcplusplus/trunk/win32/WinUtil.h
dcplusplus/trunk/win32/resource.h
dcplusplus/trunk/win32/stdafx.h
Added Paths:
-----------
dcplusplus/trunk/help/cshelp.h
dcplusplus/trunk/help/cshelp.txt
dcplusplus/trunk/help/dialog_user_command.html
dcplusplus/trunk/help/settings_user_commands.html
Removed Paths:
-------------
dcplusplus/trunk/help/settings_usercommands.html
Property Changed:
----------------
dcplusplus/trunk/
Property changes on: dcplusplus/trunk
___________________________________________________________________
Name: bzr:revision-info
- timestamp: 2008-03-23 19:39:26.720000029 +0100
committer: Jacek Sieka <arn...@gm...>
properties:
branch-nick: dcplusplus
+ timestamp: 2008-03-23 23:04:11.335000038 +0100
committer: zouzou123gen
properties:
branch-nick: bzr
Name: bzr:file-ids
- update-languages.sh updatelanguages.sh-20080323172209-blm3rymztdyit6k9-1
.bzrignore bzrignore-20080323172312-t83zl06ak2a2csed-1
+ help/cshelp.h cshelp.h-20080323211545-fxj0529zte7sgs2e-1
help/cshelp.txt cshelp.txt-20080323211550-4lqhpnxmjuu3efy2-1
help/dialog_user_command.html 377@f586c4b0-9d0d-0410-bc51-f1fe239209fc:dcplusplus%2Ftrunk:help%2Fsettings_usercommands.html
help/settings_user_commands.html settings_user_comman-20080323211611-j86066ug4dxbfwgl-1
Name: bzr:revision-id:v3-trunk1
- 1027 arn...@gm...-20080323183926-schknwnkgeo7ivdn
+ 1027 arn...@gm...-20080323183926-schknwnkgeo7ivdn
1028 zouzou123gen-20080323220411-r8usuc3qxwuh7zsn
Modified: dcplusplus/trunk/changelog.txt
===================================================================
--- dcplusplus/trunk/changelog.txt 2008-03-23 18:41:22 UTC (rev 1052)
+++ dcplusplus/trunk/changelog.txt 2008-03-26 13:24:55 UTC (rev 1053)
@@ -4,6 +4,7 @@
* Use setenv on unix (thanks yakov suraev)
* Fixed out of focus window when restoring from icon (poy)
* [L#203865] Fixed multiple instances (poy)
+* Context-sensitive help (poy)
-- 0.705 2008-03-14 --
* Several patches for better *nix compatibility of the core (thanks steven sheehy et al)
Modified: dcplusplus/trunk/help/DCPlusPlus.hhp
===================================================================
--- dcplusplus/trunk/help/DCPlusPlus.hhp 2008-03-23 18:41:22 UTC (rev 1052)
+++ dcplusplus/trunk/help/DCPlusPlus.hhp 2008-03-26 13:24:55 UTC (rev 1053)
@@ -8,11 +8,13 @@
Enhanced decompilation=Yes
Full-text search=Yes
Index file=index.hhk
-Language=0x409 English (United States)
+Language=0x409 Anglais (\xC9tats-Unis)
Title=Help for DC++
[FILES]
+cshelp.h
+cshelp.txt
office11.css
index.html
changelog.html
@@ -22,7 +24,7 @@
settings_general.html
settings_logs.html
settings_sharing.html
-settings_usercommands.html
+settings_user_commands.html
settings_colors_and_sounds.html
settings_expert.html
settings_connection.html
@@ -53,6 +55,7 @@
window_system_log.html
window_network_stats.html
dialog_indexing_progress.html
+dialog_user_command.html
fdl.html
faq_keyboard_commands.html
faq_upnp.html
@@ -69,7 +72,9 @@
links.html
[ALIAS]
+IDH_STARTPAGE=index.html
IDH_CHANGELOG=changelog.html
+IDH_KEYBOARD=faq_keyboard_commands.html
IDH_HUB=window_hub.html
IDH_PM=window_pm.html
IDH_DIRECTORY_LISTING=window_directory_listing.html
@@ -87,6 +92,7 @@
IDH_SYSTEM_LOG=window_system_log.html
IDH_NET_STATS=window_network_stats.html
IDH_HASH_PROGRESS=dialog_indexing_progress.html
+IDH_USER_COMMAND=dialog_user_command.html
IDH_ADVANCED3PAGE=settings_expert.html
IDH_ADVANCEDPAGE=settings_advanced.html
IDH_APPEARANCE2PAGE=settings_colors_and_sounds.html
@@ -94,12 +100,10 @@
IDH_DOWNLOADPAGE=settings_downloads.html
IDH_FAVORITE_DIRSPAGE=settings_favoritedirs.html
IDH_GENERALPAGE=settings_general.html
-IDH_KEYBOARD=faq_keyboard_commands.html
IDH_LOGPAGE=settings_logs.html
IDH_NETWORKPAGE=settings_connection.html
IDH_QUEUEPAGE=settings_queue.html
-IDH_STARTPAGE=index.html
-IDH_UCPAGE=settings_usercommands.html
+IDH_UCPAGE=settings_user_commands.html
IDH_UPLOADPAGE=settings_sharing.html
IDH_WINDOWSPAGE=settings_windows.html
IDH_CERTIFICATESPAGE=settings_certs.html
@@ -108,6 +112,9 @@
[MAP]
#include resource.h
+[TEXT POPUPS]
+cshelp.h
+cshelp.txt
[INFOTYPES]
Modified: dcplusplus/trunk/help/compile.cmd
===================================================================
--- dcplusplus/trunk/help/compile.cmd 2008-03-23 18:41:22 UTC (rev 1052)
+++ dcplusplus/trunk/help/compile.cmd 2008-03-26 13:24:55 UTC (rev 1053)
@@ -7,3 +7,5 @@
hhc.exe DCPlusPlus.hhp
del users.bmp
+
+pause
Added: dcplusplus/trunk/help/cshelp.h
===================================================================
--- dcplusplus/trunk/help/cshelp.h (rev 0)
+++ dcplusplus/trunk/help/cshelp.h 2008-03-26 13:24:55 UTC (rev 1053)
@@ -0,0 +1,95 @@
+// this file contains help ids for field-level help tooltips
+
+#ifndef DCPLUSPLUS_HELP_CSHELP_H
+#define DCPLUSPLUS_HELP_CSHELP_H
+
+#define IDH_SETTINGS_TREE 11000
+#define IDH_SETTINGS_OK 11001
+#define IDH_SETTINGS_CANCEL 11002
+#define IDH_SETTINGS_HELP 11003
+#define IDH_SETTINGS_GENERAL_PERSONAL_INFORMATION 11004
+#define IDH_SETTINGS_GENERAL_NICK 11005
+#define IDH_SETTINGS_GENERAL_EMAIL 11006
+#define IDH_SETTINGS_GENERAL_DESCRIPTION 11007
+#define IDH_SETTINGS_GENERAL_CONNECTION 11008
+#define IDH_SETTINGS_NETWORK_DIRECT 11009
+#define IDH_SETTINGS_NETWORK_FIREWALL_UPNP 11010
+#define IDH_SETTINGS_NETWORK_FIREWALL_NAT 11011
+#define IDH_SETTINGS_NETWORK_FIREWALL_PASSIVE 11012
+#define IDH_SETTINGS_NETWORK_PORT_TCP 11013
+#define IDH_SETTINGS_NETWORK_PORT_UDP 11014
+#define IDH_SETTINGS_NETWORK_PORT_TLS 11015
+#define IDH_SETTINGS_NETWORK_EXTERNAL_IP 11016
+#define IDH_SETTINGS_NETWORK_OVERRIDE 11017
+#define IDH_SETTINGS_NETWORK_DIRECT_OUT 11018
+#define IDH_SETTINGS_NETWORK_SOCKS5 11019
+#define IDH_SETTINGS_NETWORK_SOCKS_SERVER 11020
+#define IDH_SETTINGS_NETWORK_SOCKS_PORT 11021
+#define IDH_SETTINGS_NETWORK_SOCKS_USER 11022
+#define IDH_SETTINGS_NETWORK_SOCKS_PASSWORD 11023
+#define IDH_SETTINGS_NETWORK_SOCKS_RESOLVE 11024
+#define IDH_SETTINGS_DOWNLOAD_DOWNLOADDIR 11025
+#define IDH_SETTINGS_DOWNLOAD_TEMP_DOWNLOAD_DIRECTORY 11026
+#define IDH_SETTINGS_DOWNLOAD_LIMITS 11027
+#define IDH_SETTINGS_DOWNLOAD_DOWNLOADS 11028
+#define IDH_SETTINGS_DOWNLOAD_MAXSPEED 11029
+#define IDH_SETTINGS_DOWNLOAD_PROXY 11030
+#define IDH_SETTINGS_FAVORITE_DIRS_FAVORITE_DIRECTORIES 11031
+#define IDH_SETTINGS_FAVORITE_DIRS_RENAME 11032
+#define IDH_SETTINGS_FAVORITE_DIRS_REMOVE 11033
+#define IDH_SETTINGS_FAVORITE_DIRS_ADD 11034
+#define IDH_SETTINGS_QUEUE_AUTOPRIO 11035
+#define IDH_SETTINGS_QUEUE_PRIO_HIGHEST 11036
+#define IDH_SETTINGS_QUEUE_PRIO_NORMAL 11037
+#define IDH_SETTINGS_QUEUE_PRIO_HIGH 11038
+#define IDH_SETTINGS_QUEUE_PRIO_LOW 11039
+#define IDH_SETTINGS_QUEUE_AUTODROP 11040
+#define IDH_SETTINGS_QUEUE_AUTODROP_SPEED 11041
+#define IDH_SETTINGS_QUEUE_AUTODROP_ELAPSED 11042
+#define IDH_SETTINGS_QUEUE_AUTODROP_MINSOURCES 11043
+#define IDH_SETTINGS_QUEUE_AUTODROP_INTERVAL 11044
+#define IDH_SETTINGS_QUEUE_AUTODROP_INACTIVITY 11045
+#define IDH_SETTINGS_QUEUE_AUTODROP_FILESIZE 11046
+#define IDH_SETTINGS_UPLOAD_DIRECTORIES 11047
+#define IDH_SETTINGS_UPLOAD_SHAREHIDDEN 11048
+#define IDH_SETTINGS_UPLOAD_RENAME 11049
+#define IDH_SETTINGS_UPLOAD_REMOVE 11050
+#define IDH_SETTINGS_UPLOAD_ADD 11051
+#define IDH_SETTINGS_UPLOAD_MIN_UPLOAD_SPEED 11052
+#define IDH_SETTINGS_UPLOAD_SLOTS 11053
+#define IDH_SETTINGS_APPEARANCE_DEFAULT_AWAY_MESSAGE 11054
+#define IDH_SETTINGS_APPEARANCE_TIME_STAMPS_FORMAT 11055
+#define IDH_SETTINGS_APPEARANCE_LANGUAGE 11056
+#define IDH_SETTINGS_APPEARANCE_REQUIRES_RESTART 11057
+#define IDH_SETTINGS_APPEARANCE2_COLORS 11058
+#define IDH_SETTINGS_APPEARANCE2_SELWINCOLOR 11059
+#define IDH_SETTINGS_APPEARANCE2_SELTEXT 11060
+#define IDH_SETTINGS_APPEARANCE2_UPLOAD_BAR_COLOR 11061
+#define IDH_SETTINGS_APPEARANCE2_DOWNLOAD_BAR_COLOR 11062
+#define IDH_SETTINGS_APPEARANCE2_BEEPFILE 11063
+#define IDH_SETTINGS_LOG_DIRECTORY 11064
+#define IDH_SETTINGS_ADVANCED3_ROLLBACK 11065
+#define IDH_SETTINGS_ADVANCED3_MAX_HASH_SPEED 11066
+#define IDH_SETTINGS_ADVANCED3_PM_HISTORY 11067
+#define IDH_SETTINGS_ADVANCED3_MINISLOT_SIZE 11068
+#define IDH_SETTINGS_ADVANCED3_MAX_FILELIST_SIZE 11069
+#define IDH_SETTINGS_ADVANCED3_PRIVATE_ID 11070
+#define IDH_SETTINGS_ADVANCED3_AUTO_REFRESH_TIME 11071
+#define IDH_SETTINGS_ADVANCED3_BUFFERSIZE 11072
+#define IDH_SETTINGS_ADVANCED3_AUTO_SEARCH_LIMIT 11073
+#define IDH_SETTINGS_ADVANCED3_SEARCH_HISTORY 11074
+#define IDH_SETTINGS_ADVANCED3_BIND_ADDRESS 11075
+#define IDH_SETTINGS_ADVANCED3_SOCKET_IN_BUFFER 11076
+#define IDH_SETTINGS_ADVANCED3_SOCKET_OUT_BUFFER 11077
+#define IDH_SETTINGS_ADVANCED3_MIN_SEGMENT_SIZE 11078
+#define IDH_SETTINGS_UC_LIST 11079
+#define IDH_SETTINGS_UC_ADD 11080
+#define IDH_SETTINGS_UC_CHANGE 11081
+#define IDH_SETTINGS_UC_MOVE_UP 11082
+#define IDH_SETTINGS_UC_MOVE_DOWN 11083
+#define IDH_SETTINGS_UC_REMOVE 11084
+#define IDH_SETTINGS_CERTIFICATES_PRIVATE_KEY_FILE 11085
+#define IDH_SETTINGS_CERTIFICATES_CERTIFICATE_FILE 11086
+#define IDH_SETTINGS_CERTIFICATES_TRUSTED_CERTIFICATES_PATH 11087
+
+#endif
Added: dcplusplus/trunk/help/cshelp.txt
===================================================================
--- dcplusplus/trunk/help/cshelp.txt (rev 0)
+++ dcplusplus/trunk/help/cshelp.txt 2008-03-26 13:24:55 UTC (rev 1053)
@@ -0,0 +1,176 @@
+.topic IDH_SETTINGS_TREE
+Choose a settings category here.
+.topic IDH_SETTINGS_OK
+Press this button to save your changes and close this dialog.
+.topic IDH_SETTINGS_CANCEL
+Press this button to close this dialog without saving your changes.
+.topic IDH_SETTINGS_HELP
+Press this button to launch the help file.
+.topic IDH_SETTINGS_GENERAL_PERSONAL_INFORMATION
+This is general information about yourself. The nick is required, though it's suggested that you pick the correct connection type as well.
+.topic IDH_SETTINGS_GENERAL_NICK
+This nickname, or handle, will identify you when you join a hub. It can be overridden on a per-hub basis in the Favorite Hub Properties.
+.topic IDH_SETTINGS_GENERAL_EMAIL
+This field is for sharing your email address, if you wish it.
+.topic IDH_SETTINGS_GENERAL_DESCRIPTION
+This description will show in the user list. It can be overridden on a per-hub basis in the Favorite Hub Properties.
+.topic IDH_SETTINGS_GENERAL_CONNECTION
+This drop-down contains a number of common upload speeds (in MiB/s), please choose the one closest to your own. Do not put in your download speed; this setting is a measure of how fast a source you are likely to be for other users.
+.topic IDH_SETTINGS_NETWORK_DIRECT
+Select this mode if your computer is hooked directly to the internet. Do not select this mode if you have a router (firewall) or a software firewall.
+.topic IDH_SETTINGS_NETWORK_FIREWALL_UPNP
+Select this mode if you are behind a firewall that supports the UPnP standard for program auto-configuration. DC++ will automatically open the ports it needs and obtain your external IP address. This mode is not available on operating systems before Windows XP, as it was the first version to have UPnP support.
+.topic IDH_SETTINGS_NETWORK_FIREWALL_NAT
+Select this mode if you are behind a firewall (router), and will set up the TCP and UDP port forwarding on your own. You will need to specify the external IP address of your router using the setting below if you want downloads to work properly.
+.topic IDH_SETTINGS_NETWORK_FIREWALL_PASSIVE
+Select this mode if none of the previous options apply. In this mode, DC++ will not try to make inbound connections, only outbound ones. This mode carries some limitations: - only 5 results per user will be returned in response to searches; - you will not be able to download from other passive users.
+.topic IDH_SETTINGS_NETWORK_PORT_TCP
+This is the port that DC++ listens on for incoming client connections. If this setting is blank, DC++ will use a random port between 1025 and 32000.
+.topic IDH_SETTINGS_NETWORK_PORT_UDP
+This is the port that DC++ listens on for incoming search results. If this setting is blank, DC++ will use a random port between 1025 and 32000.
+.topic IDH_SETTINGS_NETWORK_PORT_TLS
+This is the port that DC++ listens on for TLS connections. If this setting is blank, DC++ will use a random port between 1025 and 32000.
+.topic IDH_SETTINGS_NETWORK_EXTERNAL_IP
+If you're directly connected to the internet, DC++ will tell remote users to connect to your local IP. Fill in this box only if you need to override the auto-detection. Ordinarily, only users behind a home router (NAT device) will need to fill in this box. If you put a DNS name here, DC++ will try to resolve it into an IP address before use.
+.topic IDH_SETTINGS_NETWORK_OVERRIDE
+Enable this to always use the IP address in "External / WAN IP", and not let either UPnP or connected hubs change it.
+.topic IDH_SETTINGS_NETWORK_DIRECT_OUT
+Select this mode if you can make unrestricted outbound connections. This includes connecting to any IP address on any port.
+.topic IDH_SETTINGS_NETWORK_SOCKS5
+Select this mode if you want to make outbound connections through a SOCKS proxy. The caveats for Firewall (passive) mode also apply here. SOCKS5 proxies are not the same as HTTP proxies. DC++'s SOCKS5 support does not include GSSAPI.
+.topic IDH_SETTINGS_NETWORK_SOCKS_SERVER
+This is the IP, not host name, of your SOCKS5 server.
+.topic IDH_SETTINGS_NETWORK_SOCKS_PORT
+The port that your SOCKS5 server runs on. The default is 1080.
+.topic IDH_SETTINGS_NETWORK_SOCKS_USER
+Login name for the SOCKS5 proxy; may be required.
+.topic IDH_SETTINGS_NETWORK_SOCKS_PASSWORD
+Password for the SOCKS5 proxy; may be required.
+.topic IDH_SETTINGS_NETWORK_SOCKS_RESOLVE
+Enable this to use the SOCKS5 proxy, instead of the local name server, to resolve host names into IP addresses.
+.topic IDH_SETTINGS_DOWNLOAD_DOWNLOADDIR
+After a download is complete, DC++ tries to move your just finished file to this directory. It defaults to the "Downloads\" subdirectory under where the DC++ executable is located.
+.topic IDH_SETTINGS_DOWNLOAD_TEMP_DOWNLOAD_DIRECTORY
+All incomplete downloads will be stored in this directory. If empty, temporary downloads will be stored in the "Incomplete\" subdirectory under where the DC++ executable is located. You can use %[targetdrive] for optional unfinished directory for target drive. If the file has been downloaded with a TTH, the incomplete file will bear the name <filename>.<ext>.<TTH>.dctmp. If the file has no TTH, it will be named<filename>.<ext>.dctmp. If "Use AntiFragmentation Method for Downloads" is enabled the files will have ".antifrag" added to the end of it's name. As in <filename>.<ext>.<TTH>.dctmp.antifrag.
+.topic IDH_SETTINGS_DOWNLOAD_LIMITS
+For both values listed below, certain conditions can result in the limits not being obeyed. Specifically, up to 3 files that are set to the 'highest' priority can be transferred while other downloads are going. File lists and small files (64 kibibytes or smaller) are queued with 'highest' as their priority. When either of the limits are hit, DC++ shows "All download slots taken" next to each source in the Transfer View.
+.topic IDH_SETTINGS_DOWNLOAD_DOWNLOADS
+This limits the number of simultaneous downloads. The default value of this option is 3, and a value of 0 means no limit.
+.topic IDH_SETTINGS_DOWNLOAD_MAXSPEED
+This is another method of limiting simultaneous downloads, designed to prevent new downloads if your existing downloads exceed a specific threshold. It's measured in kibibytes per second, and a value of zero will disable this limit.
+.topic IDH_SETTINGS_DOWNLOAD_PROXY
+This HTTP proxy will only be used to request the Public Hub List specified above. It's not used for uploads, downloads, or connecting to a hub.
+.topic IDH_SETTINGS_FAVORITE_DIRS_FAVORITE_DIRECTORIES
+To add directories to your "Download to" menu (right click on a file in the search frame), you can use the Add and Remove buttons, or drag and drop folders from a Windows Explorer window.
+.topic IDH_SETTINGS_FAVORITE_DIRS_RENAME
+Rename the selected folder(s).
+.topic IDH_SETTINGS_FAVORITE_DIRS_REMOVE
+Remove the selected folder(s).
+.topic IDH_SETTINGS_FAVORITE_DIRS_ADD
+Browse for a new folder to add to your share. After selecting the directory to add, you will be able to pick the Virtual Name name for it that will be shown in the menu.
+.topic IDH_SETTINGS_QUEUE_AUTOPRIO
+Autoprio allows setting the queue item priority automatically when adding it to the download queue. A user can then change the priority of a file manually. Priority conditions are checked from the Highest to the Lowest priority, when assigning a priority to a new queue item. A zero means that the given priority level won't be used - except Normal priority, which is the default priority. Lowest possible value for the Highest priority is 16 KiB.
+.topic IDH_SETTINGS_QUEUE_PRIO_HIGHEST
+Files with the same or under the entered size will be set to Highest as priority. (default: 64 KiB)
+.topic IDH_SETTINGS_QUEUE_PRIO_NORMAL
+Files with the same or under the entered size, but above Highest and High prio max size, will be set to Normal as priority. (default: 0 KiB)
+.topic IDH_SETTINGS_QUEUE_PRIO_HIGH
+Files with the same or under the entered size, but above Highest prio max size, will be set to High as priority. (default: 0 KiB)
+.topic IDH_SETTINGS_QUEUE_PRIO_LOW
+Files with the same or under the entered size, but above Highest, High and Normal prio max size, will be set to Low as priority. (default: 0 KiB)
+.topic IDH_SETTINGS_QUEUE_AUTODROP
+Autodrop allows automatical removal (or disconnecting) of slow download sources. By default, slow sources are removed. All of these autodrop options are necessary to estimate and disconnect/drop sources properly.
+.topic IDH_SETTINGS_QUEUE_AUTODROP_SPEED
+If the download speed of a file is below the entered value, the source will be dropped. (default: 1024 B/s)
+.topic IDH_SETTINGS_QUEUE_AUTODROP_ELAPSED
+Amount of time (in seconds) that has to pass since the download started before a source can be dropped. (default: 15 s)
+.topic IDH_SETTINGS_QUEUE_AUTODROP_MINSOURCES
+Minimum amount of sources before any sources will be dropped. (default: 1)
+.topic IDH_SETTINGS_QUEUE_AUTODROP_INTERVAL
+Check every x second(s) if the source is slow. (default: 10 s)
+.topic IDH_SETTINGS_QUEUE_AUTODROP_INACTIVITY
+This is the maximal time since the last chunk of data for the file was recieved. It is meant to improve speed measurement accuracy and to prevent dropping sources that are going to be disconnected only because of their current inactivity. (default: 10 s)
+.topic IDH_SETTINGS_QUEUE_AUTODROP_FILESIZE
+Minimum filesize before sources will be dropped (in KiB). (default: 0 KiB)
+.topic IDH_SETTINGS_UPLOAD_DIRECTORIES
+To add directories to your share, you can use the Add and Remove buttons, or drag and drop folders from a Windows Explorer window. Beginning with version 0.4032, files will be shared only once they have been hashed. If you enter the Sharing tab and press OK; the client may appear to freeze, this is due to a refresh of the file list.
+.topic IDH_SETTINGS_UPLOAD_SHAREHIDDEN
+Share files with the Hidden attribute set and files inside directory with the Hidden attribute set. With this option off, files starting with a . (full stop) will not be shared. Note: this option requires a refresh of the file list, and may cause the client to appear to freeze.
+.topic IDH_SETTINGS_UPLOAD_RENAME
+Change the virtual name on a shared folder. Note: the client will appear to freeze when you exit settings, this is due to a refresh of the file list.
+.topic IDH_SETTINGS_UPLOAD_REMOVE
+Remove the selected folder(s).
+.topic IDH_SETTINGS_UPLOAD_ADD
+Browse for a new folder to add to your share. If another existing file shares that name, the new name will be made unique by adding another letter to its name. After selecting the directory to add, you will be able to pick the Virtual Name that it will be shown under when other users see your files. If the newly added files have not been hashed, the Hash Progress Dialog will display. You can choose to let it display, or let hashing continue in the background.
+.topic IDH_SETTINGS_UPLOAD_MIN_UPLOAD_SPEED
+If the average upload speed drops below the given number, an additional upload slot will be granted. These slots are granted once every 30 seconds at maximum. If the speed of the original uploads increases, the granted slot will not be closed.
+.topic IDH_SETTINGS_UPLOAD_SLOTS
+Configure the number of slots that other users can occupy to download files from you. A remote user can use only one slot for each hub that they're on with you. DC++ supports uploading file lists and files below 64 KiB to other DC++ users without requiring a slot. There's a max of 3 connections in addition to normal slots, these are called mini slots. Note: If a user leaves the hub, DC++ will close his slots; if the user is back within 10 minutes, DC++ will grant him a slot. (This will only happen if "Automatically Disconnect Users Who Leave the Hub" is enabled.) This can cause your upload slots going over maximum set in settings.
+.topic IDH_SETTINGS_APPEARANCE_DEFAULT_AWAY_MESSAGE
+This is the default away message that will appear when someone PMs you for the first time while you are in the away mode. You can activate away mode by using the /away <message> and /back chat commands or "Auto-away on Minimize" option. All time formatting variables are available. Use Ctrl + Enter to create a new line. (default: "I'm away. State your business and I might answer later if you're lucky.")
+.topic IDH_SETTINGS_APPEARANCE_TIME_STAMPS_FORMAT
+This lets you select the format of the time stamps that can appear in the chat and private message windows. All time formatting variables are available. (default: %H:%M)
+.topic IDH_SETTINGS_APPEARANCE_LANGUAGE
+This drop-down list allows you to choose which language DC++ should use for its user interface and messages. "Default" means "use the same language as my operating system".
+.topic IDH_SETTINGS_APPEARANCE_REQUIRES_RESTART
+Note: Most of these options require that you restart DC++. (Fonts, colors and icons are loaded at startup only. Window settings are loaded when opening a new window.)
+.topic IDH_SETTINGS_APPEARANCE2_COLORS
+You can preview the background color and text style before applying them
+.topic IDH_SETTINGS_APPEARANCE2_SELWINCOLOR
+This setting determines the background color of the windows in DC++.
+.topic IDH_SETTINGS_APPEARANCE2_SELTEXT
+This setting determines the color and font used in many DC++ windows.
+.topic IDH_SETTINGS_APPEARANCE2_UPLOAD_BAR_COLOR
+This will set the coloring for the upload progress bars, if you have them enabled in "Advanced". (default: RGB(205, 60, 55))
+.topic IDH_SETTINGS_APPEARANCE2_DOWNLOAD_BAR_COLOR
+This will set the coloring for the download progress bars, if you have them enabled in "Advanced". (default: RGB(55, 170, 85))
+.topic IDH_SETTINGS_APPEARANCE2_BEEPFILE
+Instead of the system's computer beep, you can select a different beep or tune for above options.
+.topic IDH_SETTINGS_LOG_DIRECTORY
+All logs generated by DC++ will be put in this subdirectory. Default: The "Logs" subdirectory under where you've installed the application.
+.topic IDH_SETTINGS_ADVANCED3_ROLLBACK
+This option is not used currently.
+.topic IDH_SETTINGS_ADVANCED3_MAX_HASH_SPEED
+This is the speed at which DC++ will hash your files, in MiB/s. It is limited by the speed of your disk subsystem, but it can be used to make hashing slower and less noticable. A "normal" hash speed may be anywhere from 20 to 30 MiB/s. (no default)
+.topic IDH_SETTINGS_ADVANCED3_PM_HISTORY
+The number of lines that will be read from the private message log and displayed when a new PM is received. (no default)
+.topic IDH_SETTINGS_ADVANCED3_MINISLOT_SIZE
+This defines the size of the mini slot. The minimum value for this setting is 64 KiB. (default: 64 KiB)
+.topic IDH_SETTINGS_ADVANCED3_MAX_FILELIST_SIZE
+This setting controls the size of the maximum file list that DC++ will open, in mebibytes. This setting helps protect against malformed file lists that require large amounts of memory to decode. You may need to reduce or increase the value of this setting based on personal experience. (default: 512 MiB)
+.topic IDH_SETTINGS_ADVANCED3_PRIVATE_ID
+This is your unique private ID (PID). This will later with an algorithm be used to identify you on ADC hubs. Do not share this with other users.
+.topic IDH_SETTINGS_ADVANCED3_AUTO_REFRESH_TIME
+This controls the interval at which your shared directories are rescanned for new and changed content. This is measured in minutes. (default: 60 minutes)
+.topic IDH_SETTINGS_ADVANCED3_BUFFERSIZE
+This controls the size of the chunks that DC++ writes to disk for downloads. Measured in kibibytes. (default: 16 KiB)
+.topic IDH_SETTINGS_ADVANCED3_AUTO_SEARCH_LIMIT
+This will limit the amount of sources a file can have before it will no longer be auto searched for. For example, if this option is set to 2, if a file has more than or exactly 2 sources, the file will be excluded from the auto-search list.
+.topic IDH_SETTINGS_ADVANCED3_SEARCH_HISTORY
+Number of old search lines that will be shown in the Search Window. (default: 10)
+.topic IDH_SETTINGS_ADVANCED3_BIND_ADDRESS
+This setting allows you to bind DC++ to a particular IP address on your machine. Most users do not need to change the default value, 0.0.0.0. However, if you have more than one network interface connected to the internet, you can force DC++ to use a particular connection by entering its IP here. If binding fails, it will do so silently and INADDR_ANY will be used instead. If you experience connection problems make sure that this is set to default. (default: 0.0.0.0) This feature requires a restart to be fully effective.
+.topic IDH_SETTINGS_ADVANCED3_SOCKET_IN_BUFFER
+The size of the buffer DC++ use to read sockets. Measured in bytes. (default: 8192 bytes)
+.topic IDH_SETTINGS_ADVANCED3_SOCKET_OUT_BUFFER
+The size of the buffer DC++ use to write to sockets. Measured in bytes. (default: 8192 bytes)
+.topic IDH_SETTINGS_ADVANCED3_MIN_SEGMENT_SIZE
+DC++ now uses segment downloading. i.e. it downloads each file in many little parts. This setting lets you specifiy the mimium size of these parts. (default: 1MiB)
+.topic IDH_SETTINGS_UC_LIST
+List of your current user commands.
+.topic IDH_SETTINGS_UC_ADD
+Open the User Command dialog to create a new user command and add it to the list.
+.topic IDH_SETTINGS_UC_CHANGE
+Open the currently selected user command in the User Command dialog in order to change it.
+.topic IDH_SETTINGS_UC_MOVE_UP
+Move the currently selected user command upwards in the list.
+.topic IDH_SETTINGS_UC_MOVE_DOWN
+Move the currently selected user command downwards in the list.
+.topic IDH_SETTINGS_UC_REMOVE
+Remove the currently selected user command.
+.topic IDH_SETTINGS_CERTIFICATES_PRIVATE_KEY_FILE
+This file is your personal and private certificate file. Do not share this with other users or hubs. If you do, you risk allowing others to use your certificate and in essence pose as you.
+.topic IDH_SETTINGS_CERTIFICATES_CERTIFICATE_FILE
+This file is the certificate file you should give to other users and hubs that you want to consider "trusted".
+.topic IDH_SETTINGS_CERTIFICATES_TRUSTED_CERTIFICATES_PATH
+Where trusted certificates from users or hubs will be stored. (default: the "Certificates\" subdirectory of where you've installed the application.)
Copied: dcplusplus/trunk/help/dialog_user_command.html (from rev 1052, dcplusplus/trunk/help/se...
[truncated message content] |
|
From: <arn...@us...> - 2008-03-26 13:25:36
|
Revision: 1054
http://dcplusplus.svn.sourceforge.net/dcplusplus/?rev=1054&view=rev
Author: arnetheduck
Date: 2008-03-26 06:25:32 -0700 (Wed, 26 Mar 2008)
Log Message:
-----------
ignore changelog.html
Modified Paths:
--------------
dcplusplus/trunk/.bzrignore
Property Changed:
----------------
dcplusplus/trunk/
Property changes on: dcplusplus/trunk
___________________________________________________________________
Name: bzr:revision-info
- timestamp: 2008-03-23 23:04:11.335000038 +0100
committer: zouzou123gen
properties:
branch-nick: bzr
+ timestamp: 2008-03-23 23:12:49.148000002 +0100
committer: zouzou123gen
properties:
branch-nick: bzr
Name: bzr:file-ids
- help/cshelp.h cshelp.h-20080323211545-fxj0529zte7sgs2e-1
help/cshelp.txt cshelp.txt-20080323211550-4lqhpnxmjuu3efy2-1
help/dialog_user_command.html 377@f586c4b0-9d0d-0410-bc51-f1fe239209fc:dcplusplus%2Ftrunk:help%2Fsettings_usercommands.html
help/settings_user_commands.html settings_user_comman-20080323211611-j86066ug4dxbfwgl-1
+
Name: bzr:revision-id:v3-trunk1
- 1027 arn...@gm...-20080323183926-schknwnkgeo7ivdn
1028 zouzou123gen-20080323220411-r8usuc3qxwuh7zsn
+ 1027 arn...@gm...-20080323183926-schknwnkgeo7ivdn
1028 zouzou123gen-20080323220411-r8usuc3qxwuh7zsn
1029 zouzou123gen-20080323221249-0su72zaj13e706mk
Modified: dcplusplus/trunk/.bzrignore
===================================================================
--- dcplusplus/trunk/.bzrignore 2008-03-26 13:24:55 UTC (rev 1053)
+++ dcplusplus/trunk/.bzrignore 2008-03-26 13:25:32 UTC (rev 1054)
@@ -8,3 +8,4 @@
./htmlhelp/include/htmlhelp.h
./htmlhelp/lib/htmlhelp.lib
natupnp.h
+./help/changelog.html
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <arn...@us...> - 2008-03-26 13:39:44
|
Revision: 1055
http://dcplusplus.svn.sourceforge.net/dcplusplus/?rev=1055&view=rev
Author: arnetheduck
Date: 2008-03-26 06:39:40 -0700 (Wed, 26 Mar 2008)
Log Message:
-----------
Remove some boost stuff that's no longer needed
Modified Paths:
--------------
dcplusplus/trunk/.bzrignore
dcplusplus/trunk/SConstruct
dcplusplus/trunk/smartwin/SmartUtil/DateTime.cpp
dcplusplus/trunk/smartwin/SmartUtil/DateTime.h
dcplusplus/trunk/smartwin/include/smartwin/Application.h
dcplusplus/trunk/smartwin/include/smartwin/widgets/WidgetMenu.h
dcplusplus/trunk/smartwin/source/Application.cpp
dcplusplus/trunk/win32/AspectUserCommand.h
dcplusplus/trunk/win32/SConscript
Removed Paths:
-------------
dcplusplus/trunk/boost/SConscript
dcplusplus/trunk/boost/boost/graph/
dcplusplus/trunk/boost/boost/mpl/
dcplusplus/trunk/boost/boost/numeric/
dcplusplus/trunk/boost/boost/preprocessor/
dcplusplus/trunk/boost/boost/spirit/
dcplusplus/trunk/boost/boost/test/
dcplusplus/trunk/boost/boost/xpressive/
dcplusplus/trunk/boost/libs/
Property Changed:
----------------
dcplusplus/trunk/
Property changes on: dcplusplus/trunk
___________________________________________________________________
Name: bzr:revision-info
- timestamp: 2008-03-23 23:12:49.148000002 +0100
committer: zouzou123gen
properties:
branch-nick: bzr
+ timestamp: 2008-03-24 15:06:23.664999962 +0100
committer: Jacek Sieka <arn...@gm...>
properties:
branch-nick: dcplusplus
Name: bzr:revision-id:v3-trunk1
- 1027 arn...@gm...-20080323183926-schknwnkgeo7ivdn
1028 zouzou123gen-20080323220411-r8usuc3qxwuh7zsn
1029 zouzou123gen-20080323221249-0su72zaj13e706mk
+ 1027 arn...@gm...-20080323183926-schknwnkgeo7ivdn
1028 zouzou123gen-20080323220411-r8usuc3qxwuh7zsn
1029 zouzou123gen-20080323221249-0su72zaj13e706mk
1030 arn...@gm...-20080324140623-muba1dl46m000o8c
Modified: dcplusplus/trunk/.bzrignore
===================================================================
--- dcplusplus/trunk/.bzrignore 2008-03-26 13:25:32 UTC (rev 1054)
+++ dcplusplus/trunk/.bzrignore 2008-03-26 13:39:40 UTC (rev 1055)
@@ -9,3 +9,4 @@
./htmlhelp/lib/htmlhelp.lib
natupnp.h
./help/changelog.html
+./.pydevproject
Modified: dcplusplus/trunk/SConstruct
===================================================================
--- dcplusplus/trunk/SConstruct 2008-03-26 13:25:32 UTC (rev 1054)
+++ dcplusplus/trunk/SConstruct 2008-03-26 13:39:40 UTC (rev 1055)
@@ -169,7 +169,6 @@
dev.zlib = dev.build('zlib/')
dev.bzip2 = dev.build('bzip2/')
dev.intl = dev.build('intl/')
-dev.boost = dev.build('boost/')
dev.client = dev.build('dcpp/')
dev.smartwin = dev.build('smartwin/')
dev.win32 = dev.build('win32/')
Deleted: dcplusplus/trunk/boost/SConscript
===================================================================
--- dcplusplus/trunk/boost/SConscript 2008-03-26 13:25:32 UTC (rev 1054)
+++ dcplusplus/trunk/boost/SConscript 2008-03-26 13:39:40 UTC (rev 1055)
@@ -1,8 +0,0 @@
-# vim: set filetype=py
-
-Import('dev source_path')
-
-ret = dev.build('libs/signals/src/')
-
-Return('ret')
-
Modified: dcplusplus/trunk/smartwin/SmartUtil/DateTime.cpp
===================================================================
--- dcplusplus/trunk/smartwin/SmartUtil/DateTime.cpp 2008-03-26 13:25:32 UTC (rev 1054)
+++ dcplusplus/trunk/smartwin/SmartUtil/DateTime.cpp 2008-03-26 13:39:40 UTC (rev 1055)
@@ -28,7 +28,6 @@
*/
#include "UtilSystemHeaders.h"
#include "DateTime.h"
-#include <boost/lexical_cast.hpp>
namespace SmartUtil
{
@@ -48,49 +47,6 @@
: itsSysTime( sysTime )
{}
-DateTime::DateTime( const tstring & date, const tstring & format )
-{
- itsSysTime.wYear = 1601;
- itsSysTime.wMonth = 1;
- itsSysTime.wDayOfWeek = 0;
- itsSysTime.wDay = 1;
- itsSysTime.wHour = 0;
- itsSysTime.wMinute = 0;
- itsSysTime.wSecond = 0;
- itsSysTime.wMilliseconds = 0;
-
- size_t yearsStart = format.find( _T( "yyyy" ) );
- size_t monthsStart = format.find( _T( "MM" ) );
- size_t daysStart = format.find( _T( "dd" ) );
- size_t hoursStart = format.find( _T( "HH" ) );
- size_t minutesStart = format.find( _T( "mm" ) );
- size_t secondsStart = format.find( _T( "ss" ) );
- if ( yearsStart != tstring::npos )
- {
- itsSysTime.wYear = boost::lexical_cast< WORD >( date.substr( yearsStart, 4 ) );
- }
- if ( monthsStart != tstring::npos )
- {
- itsSysTime.wMonth = boost::lexical_cast< WORD >( date.substr( monthsStart, 2 ) );
- }
- if ( daysStart != tstring::npos )
- {
- itsSysTime.wDay = boost::lexical_cast< WORD >( date.substr( daysStart, 2 ) );
- }
- if ( hoursStart != tstring::npos )
- {
- itsSysTime.wHour = boost::lexical_cast< WORD >( date.substr( hoursStart, 2 ) );
- }
- if ( minutesStart != tstring::npos )
- {
- itsSysTime.wMinute = boost::lexical_cast< WORD >( date.substr( minutesStart, 2 ) );
- }
- if ( secondsStart != tstring::npos )
- {
- itsSysTime.wSecond = boost::lexical_cast< WORD >( date.substr( secondsStart, 2 ) );
- }
-}
-
DateTime::DateTime( unsigned year, unsigned month, unsigned day, unsigned hour, unsigned minute, unsigned seconds, unsigned milliseconds )
{
itsSysTime.wDayOfWeek = 0;
Modified: dcplusplus/trunk/smartwin/SmartUtil/DateTime.h
===================================================================
--- dcplusplus/trunk/smartwin/SmartUtil/DateTime.h 2008-03-26 13:25:32 UTC (rev 1054)
+++ dcplusplus/trunk/smartwin/SmartUtil/DateTime.h 2008-03-26 13:39:40 UTC (rev 1055)
@@ -59,11 +59,6 @@
/// Construct a new DateTime from the given SYSTEMTIME
explicit DateTime( const SYSTEMTIME & sysTime );
- /// Construct a DateTime object from the given "date" which is being expected to be in the given "format"
- /** format could be e.g. "yyyy.MM.dd" while date could be e.g. "2006.11.29"
- */
- DateTime( const tstring & date, const tstring & format );
-
/// Constructs a date according to the values given
DateTime( unsigned year, unsigned month, unsigned day, unsigned hour = 0, unsigned minute = 0, unsigned seconds = 0, unsigned milliseconds = 0 );
Modified: dcplusplus/trunk/smartwin/include/smartwin/Application.h
===================================================================
--- dcplusplus/trunk/smartwin/include/smartwin/Application.h 2008-03-26 13:25:32 UTC (rev 1054)
+++ dcplusplus/trunk/smartwin/include/smartwin/Application.h 2008-03-26 13:39:40 UTC (rev 1055)
@@ -34,10 +34,9 @@
#include "ApplicationPlatform.h"
#include "xCeption.h"
#include <vector>
-#include <memory>
-#include <boost/noncopyable.hpp>
-#include <boost/signal.hpp>
+#include <list>
#include <map>
+#include <boost/noncopyable.hpp>
#include "Message.h"
#ifdef _MSC_VER
@@ -172,9 +171,8 @@
*/
bool isAppAlreadyRunning();
- /// Since boost::signal is noncopyable we use smart pointers of signals
- typedef std::tr1::shared_ptr < boost::signal < void () > > SignalPtr;
-
+ typedef std::tr1::function<void()> Callback;
+
/// Adds a waitable event HANDLE and the according signal
/** You can feed in here HANDLEs of thread handles, console inputs, mutexes,
* processes, semaphores etc. (see Win32-API on MsgWaitForMultipleObjects) you
@@ -183,7 +181,7 @@
* Windows signals the HANDLE. (Since boost::signal is noncopyable we actually
* need here a smart pointer to the signal.)
*/
- bool addWaitEvent( HANDLE hEvent, SignalPtr );
+ bool addWaitEvent( HANDLE hEvent, const Callback& );
/// Removes the waitable event HANDLE and the according signal
/** Remove the event HANDLE in case we are not longer interested in being
@@ -211,7 +209,7 @@
std::vector< HANDLE > itsVHEvents;
// The according signals we must raise, go in this vector.
- std::vector< SignalPtr > itsVSignals;
+ std::vector< Callback > itsVSignals;
FilterList filters;
Modified: dcplusplus/trunk/smartwin/include/smartwin/widgets/WidgetMenu.h
===================================================================
--- dcplusplus/trunk/smartwin/include/smartwin/widgets/WidgetMenu.h 2008-03-26 13:25:32 UTC (rev 1054)
+++ dcplusplus/trunk/smartwin/include/smartwin/widgets/WidgetMenu.h 2008-03-26 13:39:40 UTC (rev 1055)
@@ -125,7 +125,7 @@
* WidgetWindow. <br>
* Note for Desktop version only! <br>
*/
-class WidgetMenu : public boost::enable_shared_from_this< WidgetMenu >, boost::noncopyable
+class WidgetMenu : public boost::noncopyable
{
// friends
friend class WidgetCreator< WidgetMenu >;
Modified: dcplusplus/trunk/smartwin/source/Application.cpp
===================================================================
--- dcplusplus/trunk/smartwin/source/Application.cpp 2008-03-26 13:25:32 UTC (rev 1054)
+++ dcplusplus/trunk/smartwin/source/Application.cpp 2008-03-26 13:39:40 UTC (rev 1055)
@@ -32,8 +32,6 @@
#include "../include/smartwin/aspects/AspectMouse.h"
#include "../include/smartwin/aspects/AspectSizable.h"
-#include <boost/lexical_cast.hpp>
-
using namespace SmartWin;
// link to Common Controls to relieve user of explicitly doing so
@@ -195,7 +193,7 @@
}
}
-bool Application::addWaitEvent( HANDLE hWaitEvent, Application::SignalPtr pSignal )
+bool Application::addWaitEvent( HANDLE hWaitEvent, const Application::Callback& pSignal )
{
// in case the maximum number of objects is already achieved return false
if ( itsVHEvents.size() >= MAXIMUM_WAIT_OBJECTS - 1 )
@@ -213,7 +211,7 @@
{
if ( hWaitEvent != INVALID_HANDLE_VALUE )
{
- std::vector< Application::SignalPtr >::iterator pSig;
+ std::vector< Callback >::iterator pSig;
std::vector< HANDLE >::iterator pH;
for ( pSig = itsVSignals.begin(), pH = itsVHEvents.begin();
pSig != itsVSignals.end(); pSig++, pH++ )
@@ -314,7 +312,7 @@
{
// the wait event was signalled by Windows
// signal its handlers
- ( * itsVSignals[dwWaitResult - WAIT_OBJECT_0] )();
+ itsVSignals[dwWaitResult - WAIT_OBJECT_0]();
}
else if ( dwWaitResult == WAIT_OBJECT_0 + itsVHEvents.size() )
{
@@ -345,12 +343,7 @@
}
else if ( dwWaitResult < WAIT_ABANDONED_0 + itsVHEvents.size() )
{
- SmartUtil::tstring strX =
- _T( "Application::run : Encountered an abandoned wait mutex object (index " );
- strX += boost::lexical_cast< SmartUtil::tstring >( dwWaitResult - WAIT_ABANDONED_0 );
- strX += _T( " )." );
-
- throw xCeption( strX );
+ throw xCeption( _T( "Application::run : Encountered an abandoned wait mutex object ") );
}
else if ( dwWaitResult != WAIT_TIMEOUT )
{
Modified: dcplusplus/trunk/win32/AspectUserCommand.h
===================================================================
--- dcplusplus/trunk/win32/AspectUserCommand.h 2008-03-26 13:25:32 UTC (rev 1054)
+++ dcplusplus/trunk/win32/AspectUserCommand.h 2008-03-26 13:39:40 UTC (rev 1055)
@@ -59,7 +59,7 @@
StringTokenizer<tstring> t(Text::toT(uc->getName()), _T('\\'));
for(TStringIter i = t.getTokens().begin(); i != t.getTokens().end(); ++i) {
if(i+1 == t.getTokens().end()) {
- cur->appendItem(IDC_USER_COMMAND + n, *i, std::tr1::bind(&T::runUserCommand, static_cast<T*>(this), boost::cref(*uc)));
+ cur->appendItem(IDC_USER_COMMAND + n, *i, std::tr1::bind(&T::runUserCommand, static_cast<T*>(this), std::tr1::cref(*uc)));
} else {
bool found = false;
// Let's see if we find an existing item...
Modified: dcplusplus/trunk/win32/SConscript
===================================================================
--- dcplusplus/trunk/win32/SConscript 2008-03-26 13:25:32 UTC (rev 1054)
+++ dcplusplus/trunk/win32/SConscript 2008-03-26 13:39:40 UTC (rev 1055)
@@ -17,5 +17,5 @@
headers=dev.get_sources(source_path, "*.h")
dev.i18n(source_path, env, [sources,headers], 'dcpp-win32')
-ret = env.Program(target, [sources, res, dev.client, dev.zlib, dev.bzip2, dev.smartwin, dev.boost, dev.intl])
+ret = env.Program(target, [sources, res, dev.client, dev.zlib, dev.bzip2, dev.smartwin, dev.intl])
Return('ret')
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <arn...@us...> - 2008-03-26 13:41:31
|
Revision: 1056
http://dcplusplus.svn.sourceforge.net/dcplusplus/?rev=1056&view=rev
Author: arnetheduck
Date: 2008-03-26 06:41:27 -0700 (Wed, 26 Mar 2008)
Log Message:
-----------
cshelp in the user command dialog, moved setHelpIds in WinUtil
Modified Paths:
--------------
dcplusplus/trunk/help/cshelp.h
dcplusplus/trunk/help/cshelp.txt
dcplusplus/trunk/help/dialog_user_command.html
dcplusplus/trunk/win32/Advanced3Page.cpp
dcplusplus/trunk/win32/Advanced3Page.h
dcplusplus/trunk/win32/Appearance2Page.cpp
dcplusplus/trunk/win32/Appearance2Page.h
dcplusplus/trunk/win32/AppearancePage.cpp
dcplusplus/trunk/win32/AppearancePage.h
dcplusplus/trunk/win32/CertificatesPage.cpp
dcplusplus/trunk/win32/CertificatesPage.h
dcplusplus/trunk/win32/CommandDlg.cpp
dcplusplus/trunk/win32/DCPlusPlus.rc
dcplusplus/trunk/win32/DownloadPage.cpp
dcplusplus/trunk/win32/DownloadPage.h
dcplusplus/trunk/win32/FavoriteDirsPage.cpp
dcplusplus/trunk/win32/FavoriteDirsPage.h
dcplusplus/trunk/win32/GeneralPage.cpp
dcplusplus/trunk/win32/GeneralPage.h
dcplusplus/trunk/win32/LogPage.cpp
dcplusplus/trunk/win32/LogPage.h
dcplusplus/trunk/win32/NetworkPage.cpp
dcplusplus/trunk/win32/NetworkPage.h
dcplusplus/trunk/win32/PropPage.cpp
dcplusplus/trunk/win32/PropPage.h
dcplusplus/trunk/win32/QueuePage.cpp
dcplusplus/trunk/win32/QueuePage.h
dcplusplus/trunk/win32/SettingsDialog.cpp
dcplusplus/trunk/win32/UCPage.cpp
dcplusplus/trunk/win32/UCPage.h
dcplusplus/trunk/win32/UploadPage.cpp
dcplusplus/trunk/win32/UploadPage.h
dcplusplus/trunk/win32/WinUtil.cpp
dcplusplus/trunk/win32/WinUtil.h
Property Changed:
----------------
dcplusplus/trunk/
Property changes on: dcplusplus/trunk
___________________________________________________________________
Name: bzr:revision-info
- timestamp: 2008-03-24 15:06:23.664999962 +0100
committer: Jacek Sieka <arn...@gm...>
properties:
branch-nick: dcplusplus
+ timestamp: 2008-03-24 15:19:33.282999992 +0100
committer: zouzou123gen
properties:
branch-nick: bzr
Name: bzr:revision-id:v3-trunk1
- 1027 arn...@gm...-20080323183926-schknwnkgeo7ivdn
1028 zouzou123gen-20080323220411-r8usuc3qxwuh7zsn
1029 zouzou123gen-20080323221249-0su72zaj13e706mk
1030 arn...@gm...-20080324140623-muba1dl46m000o8c
+ 1027 arn...@gm...-20080323183926-schknwnkgeo7ivdn
1028 zouzou123gen-20080323220411-r8usuc3qxwuh7zsn
1029 zouzou123gen-20080323221249-0su72zaj13e706mk
1030 arn...@gm...-20080324140623-muba1dl46m000o8c
1031 zouzou123gen-20080324141933-qbgr93ugpe0297m6
Modified: dcplusplus/trunk/help/cshelp.h
===================================================================
--- dcplusplus/trunk/help/cshelp.h 2008-03-26 13:39:40 UTC (rev 1055)
+++ dcplusplus/trunk/help/cshelp.h 2008-03-26 13:41:27 UTC (rev 1056)
@@ -3,10 +3,10 @@
#ifndef DCPLUSPLUS_HELP_CSHELP_H
#define DCPLUSPLUS_HELP_CSHELP_H
-#define IDH_SETTINGS_TREE 11000
-#define IDH_SETTINGS_OK 11001
-#define IDH_SETTINGS_CANCEL 11002
-#define IDH_SETTINGS_HELP 11003
+#define IDH_DCPP_OK 11000
+#define IDH_DCPP_CANCEL 11001
+#define IDH_DCPP_HELP 11002
+#define IDH_SETTINGS_TREE 11003
#define IDH_SETTINGS_GENERAL_PERSONAL_INFORMATION 11004
#define IDH_SETTINGS_GENERAL_NICK 11005
#define IDH_SETTINGS_GENERAL_EMAIL 11006
@@ -91,5 +91,19 @@
#define IDH_SETTINGS_CERTIFICATES_PRIVATE_KEY_FILE 11085
#define IDH_SETTINGS_CERTIFICATES_CERTIFICATE_FILE 11086
#define IDH_SETTINGS_CERTIFICATES_TRUSTED_CERTIFICATES_PATH 11087
+#define IDH_USER_COMMAND_SEPARATOR 11088
+#define IDH_USER_COMMAND_RAW 11089
+#define IDH_USER_COMMAND_CHAT 11090
+#define IDH_USER_COMMAND_PM 11091
+#define IDH_USER_COMMAND_CONTEXT 11092
+#define IDH_USER_COMMAND_HUB_MENU 11093
+#define IDH_USER_COMMAND_USER_MENU 11094
+#define IDH_USER_COMMAND_SEARCH_MENU 11095
+#define IDH_USER_COMMAND_FILELIST_MENU 11096
+#define IDH_USER_COMMAND_NAME 11097
+#define IDH_USER_COMMAND_COMMAND 11098
+#define IDH_USER_COMMAND_HUB 11099
+#define IDH_USER_COMMAND_NICK 11100
+#define IDH_USER_COMMAND_ONCE 11101
#endif
Modified: dcplusplus/trunk/help/cshelp.txt
===================================================================
--- dcplusplus/trunk/help/cshelp.txt 2008-03-26 13:39:40 UTC (rev 1055)
+++ dcplusplus/trunk/help/cshelp.txt 2008-03-26 13:41:27 UTC (rev 1056)
@@ -1,11 +1,11 @@
-.topic IDH_SETTINGS_TREE
-Choose a settings category here.
-.topic IDH_SETTINGS_OK
+.topic IDH_DCPP_OK
Press this button to save your changes and close this dialog.
-.topic IDH_SETTINGS_CANCEL
+.topic IDH_DCPP_CANCEL
Press this button to close this dialog without saving your changes.
-.topic IDH_SETTINGS_HELP
+.topic IDH_DCPP_HELP
Press this button to launch the help file.
+.topic IDH_SETTINGS_TREE
+Choose a settings category here.
.topic IDH_SETTINGS_GENERAL_PERSONAL_INFORMATION
This is general information about yourself. The nick is required, though it's suggested that you pick the correct connection type as well.
.topic IDH_SETTINGS_GENERAL_NICK
@@ -174,3 +174,31 @@
This file is the certificate file you should give to other users and hubs that you want to consider "trusted".
.topic IDH_SETTINGS_CERTIFICATES_TRUSTED_CERTIFICATES_PATH
Where trusted certificates from users or hubs will be stored. (default: the "Certificates\" subdirectory of where you've installed the application.)
+.topic IDH_USER_COMMAND_SEPARATOR
+Adds a separator to the menu
+.topic IDH_USER_COMMAND_RAW
+Sends raw command to the hub (experts only, end it with '|' in NMDC hubs and '\n' in ADC hubs!)
+.topic IDH_USER_COMMAND_CHAT
+Sends command as if you were typing it in the chat
+.topic IDH_USER_COMMAND_PM
+Sends command as if you sent it by PM
+.topic IDH_USER_COMMAND_CONTEXT
+Contexts determine where the command is shown.
+.topic IDH_USER_COMMAND_HUB_MENU
+Hub tab (at the bottom of the screen) right-click menu
+.topic IDH_USER_COMMAND_USER_MENU
+User right-click menu in chat and PM tab menu
+.topic IDH_USER_COMMAND_SEARCH_MENU
+Search right-click menu
+.topic IDH_USER_COMMAND_FILELIST_MENU
+File list right-click menu
+.topic IDH_USER_COMMAND_NAME
+Name (use '\' to create submenus)
+.topic IDH_USER_COMMAND_COMMAND
+Command text (may contain any of the variables listed below). Use Ctrl + Enter to create a new line.
+.topic IDH_USER_COMMAND_HUB
+Hub ip as typed when connecting (empty = all NMDC hubs, "op" = NMDC hubs where you're an operator, "adc://" = all ADC hubs, "adc://op" = ADC hubs where you're an operator, "adcs://" = all TLS enabled hubs)
+.topic IDH_USER_COMMAND_NICK
+Private Message recipient
+.topic IDH_USER_COMMAND_ONCE
+Send only once per user from search frame, regardless of how many files you've selected from that user
Modified: dcplusplus/trunk/help/dialog_user_command.html
===================================================================
--- dcplusplus/trunk/help/dialog_user_command.html 2008-03-26 13:39:40 UTC (rev 1055)
+++ dcplusplus/trunk/help/dialog_user_command.html 2008-03-26 13:41:27 UTC (rev 1056)
@@ -16,7 +16,7 @@
<dt>Chat</dt>
<dd>Sends command as if you were typing it in the chat</dd>
<dt>PM</dt>
- <dd>Sends command as if you sent it by pm</dd>
+ <dd>Sends command as if you sent it by PM</dd>
</dl>
<h2>Context</h2>
Contexts determine where the command is shown.<br>
Modified: dcplusplus/trunk/win32/Advanced3Page.cpp
===================================================================
--- dcplusplus/trunk/win32/Advanced3Page.cpp 2008-03-26 13:39:40 UTC (rev 1055)
+++ dcplusplus/trunk/win32/Advanced3Page.cpp 2008-03-26 13:41:27 UTC (rev 1056)
@@ -23,8 +23,9 @@
#include "Advanced3Page.h"
#include <dcpp/SettingsManager.h>
+#include "WinUtil.h"
-PropPage::HelpItem Advanced3Page::helpItems[] = {
+static const WinUtil::HelpItem helpItems[] = {
{ IDC_SETTINGS_ROLLBACK, IDH_SETTINGS_ADVANCED3_ROLLBACK },
{ IDC_ROLLBACK, IDH_SETTINGS_ADVANCED3_ROLLBACK },
{ IDC_SETTINGS_B, IDH_SETTINGS_ADVANCED3_ROLLBACK },
@@ -112,7 +113,7 @@
createDialog(IDD_ADVANCED3PAGE);
setHelpId(IDH_ADVANCED3PAGE);
- PropPage::setHelpIds(handle(), helpItems);
+ WinUtil::setHelpIds(handle(), helpItems);
PropPage::translate(handle(), texts);
PropPage::read(handle(), items, 0, 0);
Modified: dcplusplus/trunk/win32/Advanced3Page.h
===================================================================
--- dcplusplus/trunk/win32/Advanced3Page.h 2008-03-26 13:39:40 UTC (rev 1055)
+++ dcplusplus/trunk/win32/Advanced3Page.h 2008-03-26 13:41:27 UTC (rev 1056)
@@ -30,7 +30,6 @@
virtual void write();
private:
- static HelpItem helpItems[];
static Item items[];
static TextItem texts[];
};
Modified: dcplusplus/trunk/win32/Appearance2Page.cpp
===================================================================
--- dcplusplus/trunk/win32/Appearance2Page.cpp 2008-03-26 13:39:40 UTC (rev 1055)
+++ dcplusplus/trunk/win32/Appearance2Page.cpp 2008-03-26 13:41:27 UTC (rev 1056)
@@ -25,7 +25,7 @@
#include <dcpp/SettingsManager.h>
#include "WinUtil.h"
-PropPage::HelpItem Appearance2Page::helpItems[] = {
+static const WinUtil::HelpItem helpItems[] = {
{ IDC_SETTINGS_COLORS, IDH_SETTINGS_APPEARANCE2_COLORS },
{ IDC_SELWINCOLOR, IDH_SETTINGS_APPEARANCE2_SELWINCOLOR },
{ IDC_SELTEXT, IDH_SETTINGS_APPEARANCE2_SELTEXT },
@@ -66,7 +66,7 @@
createDialog(IDD_APPEARANCE2PAGE);
setHelpId(IDH_APPEARANCE2PAGE);
- PropPage::setHelpIds(handle(), helpItems);
+ WinUtil::setHelpIds(handle(), helpItems);
PropPage::translate(handle(), texts);
PropPage::read(handle(), items, 0, 0);
Modified: dcplusplus/trunk/win32/Appearance2Page.h
===================================================================
--- dcplusplus/trunk/win32/Appearance2Page.h 2008-03-26 13:39:40 UTC (rev 1055)
+++ dcplusplus/trunk/win32/Appearance2Page.h 2008-03-26 13:41:27 UTC (rev 1056)
@@ -30,7 +30,6 @@
virtual void write();
private:
- static HelpItem helpItems[];
static Item items[];
static TextItem texts[];
Modified: dcplusplus/trunk/win32/AppearancePage.cpp
===================================================================
--- dcplusplus/trunk/win32/AppearancePage.cpp 2008-03-26 13:39:40 UTC (rev 1055)
+++ dcplusplus/trunk/win32/AppearancePage.cpp 2008-03-26 13:41:27 UTC (rev 1056)
@@ -27,7 +27,7 @@
#include "WinUtil.h"
-PropPage::HelpItem AppearancePage::helpItems[] = {
+static const WinUtil::HelpItem helpItems[] = {
{ IDC_SETTINGS_DEFAULT_AWAY_MSG, IDH_SETTINGS_APPEARANCE_DEFAULT_AWAY_MESSAGE },
{ IDC_DEFAULT_AWAY_MESSAGE, IDH_SETTINGS_APPEARANCE_DEFAULT_AWAY_MESSAGE },
{ IDC_SETTINGS_TIME_STAMPS_FORMAT, IDH_SETTINGS_APPEARANCE_TIME_STAMPS_FORMAT },
@@ -72,7 +72,7 @@
createDialog(IDD_APPEARANCEPAGE);
setHelpId(IDH_APPEARANCEPAGE);
- PropPage::setHelpIds(handle(), helpItems);
+ WinUtil::setHelpIds(handle(), helpItems);
PropPage::translate(handle(), texts);
PropPage::read(handle(), items, listItems, ::GetDlgItem(handle(), IDC_APPEARANCE_BOOLEANS));
Modified: dcplusplus/trunk/win32/AppearancePage.h
===================================================================
--- dcplusplus/trunk/win32/AppearancePage.h 2008-03-26 13:39:40 UTC (rev 1055)
+++ dcplusplus/trunk/win32/AppearancePage.h 2008-03-26 13:41:27 UTC (rev 1056)
@@ -30,7 +30,6 @@
virtual void write();
private:
- static HelpItem helpItems[];
static Item items[];
static TextItem texts[];
static ListItem listItems[];
Modified: dcplusplus/trunk/win32/CertificatesPage.cpp
===================================================================
--- dcplusplus/trunk/win32/CertificatesPage.cpp 2008-03-26 13:39:40 UTC (rev 1055)
+++ dcplusplus/trunk/win32/CertificatesPage.cpp 2008-03-26 13:41:27 UTC (rev 1056)
@@ -26,7 +26,7 @@
#include <dcpp/CryptoManager.h>
#include "WinUtil.h"
-PropPage::HelpItem CertificatesPage::helpItems[] = {
+static const WinUtil::HelpItem helpItems[] = {
{ IDC_SETTINGS_PRIVATE_KEY_FILE, IDH_SETTINGS_CERTIFICATES_PRIVATE_KEY_FILE },
{ IDC_TLS_PRIVATE_KEY_FILE, IDH_SETTINGS_CERTIFICATES_PRIVATE_KEY_FILE },
{ IDC_BROWSE_PRIVATE_KEY, IDH_SETTINGS_CERTIFICATES_PRIVATE_KEY_FILE },
@@ -65,7 +65,7 @@
createDialog(IDD_CERTIFICATESPAGE);
setHelpId(IDH_CERTIFICATESPAGE);
- PropPage::setHelpIds(handle(), helpItems);
+ WinUtil::setHelpIds(handle(), helpItems);
PropPage::translate(handle(), texts);
PropPage::read(handle(), items, listItems, ::GetDlgItem(handle(), IDC_TLS_OPTIONS));
Modified: dcplusplus/trunk/win32/CertificatesPage.h
===================================================================
--- dcplusplus/trunk/win32/CertificatesPage.h 2008-03-26 13:39:40 UTC (rev 1055)
+++ dcplusplus/trunk/win32/CertificatesPage.h 2008-03-26 13:41:27 UTC (rev 1056)
@@ -30,7 +30,6 @@
virtual void write();
private:
- static HelpItem helpItems[];
static Item items[];
static TextItem texts[];
static ListItem listItems[];
Modified: dcplusplus/trunk/win32/CommandDlg.cpp
===================================================================
--- dcplusplus/trunk/win32/CommandDlg.cpp 2008-03-26 13:39:40 UTC (rev 1055)
+++ dcplusplus/trunk/win32/CommandDlg.cpp 2008-03-26 13:41:27 UTC (rev 1056)
@@ -27,6 +27,31 @@
#include <dcpp/version.h>
#include "WinUtil.h"
+static const WinUtil::HelpItem helpItems[] = {
+ { IDC_SETTINGS_SEPARATOR, IDH_USER_COMMAND_SEPARATOR },
+ { IDC_SETTINGS_RAW, IDH_USER_COMMAND_RAW },
+ { IDC_SETTINGS_CHAT, IDH_USER_COMMAND_CHAT },
+ { IDC_SETTINGS_PM, IDH_USER_COMMAND_PM },
+ { IDC_SETTINGS_CONTEXT, IDH_USER_COMMAND_CONTEXT },
+ { IDC_SETTINGS_HUB_MENU, IDH_USER_COMMAND_HUB_MENU },
+ { IDC_SETTINGS_USER_MENU, IDH_USER_COMMAND_USER_MENU },
+ { IDC_SETTINGS_SEARCH_MENU, IDH_USER_COMMAND_SEARCH_MENU },
+ { IDC_SETTINGS_FILELIST_MENU, IDH_USER_COMMAND_FILELIST_MENU },
+ { IDC_SETTINGS_NAME, IDH_USER_COMMAND_NAME },
+ { IDC_NAME, IDH_USER_COMMAND_NAME },
+ { IDC_SETTINGS_COMMAND, IDH_USER_COMMAND_COMMAND },
+ { IDC_COMMAND, IDH_USER_COMMAND_COMMAND },
+ { IDC_SETTINGS_HUB, IDH_USER_COMMAND_HUB },
+ { IDC_HUB, IDH_USER_COMMAND_HUB },
+ { IDC_SETTINGS_TO, IDH_USER_COMMAND_NICK },
+ { IDC_NICK, IDH_USER_COMMAND_NICK },
+ { IDC_SETTINGS_ONCE, IDH_USER_COMMAND_ONCE },
+ { IDOK, IDH_DCPP_OK },
+ { IDCANCEL, IDH_DCPP_CANCEL },
+ { IDHELP, IDH_DCPP_HELP },
+ { 0, 0 }
+};
+
CommandDlg::CommandDlg(SmartWin::Widget* parent, int type_, int ctx_, const tstring& name_, const tstring& command_, const tstring& hub_) :
WidgetFactory<SmartWin::WidgetModalDialog>(parent),
separator(0),
@@ -61,8 +86,10 @@
bool CommandDlg::handleInitDialog() {
setHelpId(IDH_USER_COMMAND);
+ WinUtil::setHelpIds(handle(), helpItems);
+
// Translate
- setText(T_("Create / Modify Command"));
+ setText(T_("Create / Modify User Command"));
::SetDlgItemText(handle(), IDC_SETTINGS_TYPE, CT_("Command Type"));
::SetDlgItemText(handle(), IDC_SETTINGS_CONTEXT, CT_("Context"));
::SetDlgItemText(handle(), IDC_SETTINGS_PARAMETERS, CT_("Parameters"));
Modified: dcplusplus/trunk/win32/DCPlusPlus.rc
===================================================================
--- dcplusplus/trunk/win32/DCPlusPlus.rc 2008-03-26 13:39:40 UTC (rev 1055)
+++ dcplusplus/trunk/win32/DCPlusPlus.rc 2008-03-26 13:41:27 UTC (rev 1056)
@@ -253,7 +253,7 @@
IDD_USER_COMMAND DIALOGEX 0, 0, 195, 295
STYLE DS_SETFONT | DS_MODALFRAME | DS_3DLOOK | DS_FIXEDSYS | DS_CONTEXTHELP | WS_POPUP | WS_CAPTION | WS_SYSMENU
-CAPTION "Create / Modify Command"
+CAPTION "Create / Modify User Command"
FONT 8, "MS Shell Dlg", 400, 0, 0x1
BEGIN
GROUPBOX "Command Type",IDC_SETTINGS_TYPE,7,7,181,37
Modified: dcplusplus/trunk/win32/DownloadPage.cpp
===================================================================
--- dcplusplus/trunk/win32/DownloadPage.cpp 2008-03-26 13:39:40 UTC (rev 1055)
+++ dcplusplus/trunk/win32/DownloadPage.cpp 2008-03-26 13:41:27 UTC (rev 1056)
@@ -26,7 +26,7 @@
#include "WinUtil.h"
#include "HubListsDlg.h"
-PropPage::HelpItem DownloadPage::helpItems[] = {
+static const WinUtil::HelpItem helpItems[] = {
{ IDC_SETTINGS_DOWNLOAD_DIRECTORY, IDH_SETTINGS_DOWNLOAD_DOWNLOADDIR },
{ IDC_DOWNLOADDIR, IDH_SETTINGS_DOWNLOAD_DOWNLOADDIR },
{ IDC_BROWSEDIR, IDH_SETTINGS_DOWNLOAD_DOWNLOADDIR },
@@ -76,7 +76,7 @@
createDialog(IDD_DOWNLOADPAGE);
setHelpId(IDH_DOWNLOADPAGE);
- PropPage::setHelpIds(handle(), helpItems);
+ WinUtil::setHelpIds(handle(), helpItems);
PropPage::translate(handle(), texts);
PropPage::read(handle(), items);
Modified: dcplusplus/trunk/win32/DownloadPage.h
===================================================================
--- dcplusplus/trunk/win32/DownloadPage.h 2008-03-26 13:39:40 UTC (rev 1055)
+++ dcplusplus/trunk/win32/DownloadPage.h 2008-03-26 13:41:27 UTC (rev 1056)
@@ -30,7 +30,6 @@
virtual void write();
private:
- static HelpItem helpItems[];
static Item items[];
static TextItem texts[];
Modified: dcplusplus/trunk/win32/FavoriteDirsPage.cpp
===================================================================
--- dcplusplus/trunk/win32/FavoriteDirsPage.cpp 2008-03-26 13:39:40 UTC (rev 1055)
+++ dcplusplus/trunk/win32/FavoriteDirsPage.cpp 2008-03-26 13:41:27 UTC (rev 1056)
@@ -28,7 +28,7 @@
#include "WinUtil.h"
#include "LineDlg.h"
-PropPage::HelpItem FavoriteDirsPage::helpItems[] = {
+static const WinUtil::HelpItem helpItems[] = {
{ IDC_SETTINGS_FAVORITE_DIRECTORIES, IDH_SETTINGS_FAVORITE_DIRS_FAVORITE_DIRECTORIES },
{ IDC_FAVORITE_DIRECTORIES, IDH_SETTINGS_FAVORITE_DIRS_FAVORITE_DIRECTORIES },
{ IDC_RENAME, IDH_SETTINGS_FAVORITE_DIRS_RENAME },
@@ -49,7 +49,7 @@
createDialog(IDD_FAVORITE_DIRSPAGE);
setHelpId(IDH_FAVORITE_DIRSPAGE);
- PropPage::setHelpIds(handle(), helpItems);
+ WinUtil::setHelpIds(handle(), helpItems);
PropPage::translate(handle(), texts);
directories = attachList(IDC_FAVORITE_DIRECTORIES);
Modified: dcplusplus/trunk/win32/FavoriteDirsPage.h
===================================================================
--- dcplusplus/trunk/win32/FavoriteDirsPage.h 2008-03-26 13:39:40 UTC (rev 1055)
+++ dcplusplus/trunk/win32/FavoriteDirsPage.h 2008-03-26 13:41:27 UTC (rev 1056)
@@ -30,7 +30,6 @@
virtual void write();
private:
- static HelpItem helpItems[];
static TextItem texts[];
WidgetListViewPtr directories;
Modified: dcplusplus/trunk/win32/GeneralPage.cpp
===================================================================
--- dcplusplus/trunk/win32/GeneralPage.cpp 2008-03-26 13:39:40 UTC (rev 1055)
+++ dcplusplus/trunk/win32/GeneralPage.cpp 2008-03-26 13:41:27 UTC (rev 1056)
@@ -23,8 +23,9 @@
#include "GeneralPage.h"
#include <dcpp/SettingsManager.h>
+#include "WinUtil.h"
-PropPage::HelpItem GeneralPage::helpItems[] = {
+static const WinUtil::HelpItem helpItems[] = {
{ IDC_SETTINGS_PERSONAL_INFORMATION, IDH_SETTINGS_GENERAL_PERSONAL_INFORMATION },
{ IDC_SETTINGS_NICK, IDH_SETTINGS_GENERAL_NICK },
{ IDC_NICK, IDH_SETTINGS_GENERAL_NICK },
@@ -60,7 +61,7 @@
createDialog(IDD_GENERALPAGE);
setHelpId(IDH_GENERALPAGE);
- PropPage::setHelpIds(handle(), helpItems);
+ WinUtil::setHelpIds(handle(), helpItems);
PropPage::translate(handle(), texts);
PropPage::read(handle(), items);
Modified: dcplusplus/trunk/win32/GeneralPage.h
===================================================================
--- dcplusplus/trunk/win32/GeneralPage.h 2008-03-26 13:39:40 UTC (rev 1055)
+++ dcplusplus/trunk/win32/GeneralPage.h 2008-03-26 13:41:27 UTC (rev 1056)
@@ -30,7 +30,6 @@
virtual void write();
private:
- static HelpItem helpItems[];
static Item items[];
static TextItem texts[];
Modified: dcplusplus/trunk/win32/LogPage.cpp
===================================================================
--- dcplusplus/trunk/win32/LogPage.cpp 2008-03-26 13:39:40 UTC (rev 1055)
+++ dcplusplus/trunk/win32/LogPage.cpp 2008-03-26 13:41:27 UTC (rev 1056)
@@ -27,7 +27,7 @@
#include <dcpp/LogManager.h>
#include "WinUtil.h"
-PropPage::HelpItem LogPage::helpItems[] = {
+static const WinUtil::HelpItem helpItems[] = {
{ IDC_SETTINGS_LOG_DIR, IDH_SETTINGS_LOG_DIRECTORY },
{ IDC_LOG_DIRECTORY, IDH_SETTINGS_LOG_DIRECTORY },
{ IDC_BROWSE_LOG, IDH_SETTINGS_LOG_DIRECTORY },
@@ -63,7 +63,7 @@
createDialog(IDD_LOGPAGE);
setHelpId(IDH_LOGPAGE);
- PropPage::setHelpIds(handle(), helpItems);
+ WinUtil::setHelpIds(handle(), helpItems);
PropPage::translate(handle(), texts);
PropPage::read(handle(), items, listItems, ::GetDlgItem(handle(), IDC_LOG_OPTIONS));
Modified: dcplusplus/trunk/win32/LogPage.h
===================================================================
--- dcplusplus/trunk/win32/LogPage.h 2008-03-26 13:39:40 UTC (rev 1055)
+++ dcplusplus/trunk/win32/LogPage.h 2008-03-26 13:41:27 UTC (rev 1056)
@@ -31,7 +31,6 @@
virtual void write();
private:
- static HelpItem helpItems[];
static Item items[];
static TextItem texts[];
static ListItem listItems[];
Modified: dcplusplus/trunk/win32/NetworkPage.cpp
===================================================================
--- dcplusplus/trunk/win32/NetworkPage.cpp 2008-03-26 13:39:40 UTC (rev 1055)
+++ dcplusplus/trunk/win32/NetworkPage.cpp 2008-03-26 13:41:27 UTC (rev 1056)
@@ -26,7 +26,7 @@
#include <dcpp/Socket.h>
#include "WinUtil.h"
-PropPage::HelpItem NetworkPage::helpItems[] = {
+static const WinUtil::HelpItem helpItems[] = {
{ IDC_DIRECT, IDH_SETTINGS_NETWORK_DIRECT },
{ IDC_FIREWALL_UPNP, IDH_SETTINGS_NETWORK_FIREWALL_UPNP },
{ IDC_FIREWALL_NAT, IDH_SETTINGS_NETWORK_FIREWALL_NAT },
@@ -95,7 +95,7 @@
createDialog(IDD_NETWORKPAGE);
setHelpId(IDH_NETWORKPAGE);
- PropPage::setHelpIds(handle(), helpItems);
+ WinUtil::setHelpIds(handle(), helpItems);
PropPage::translate(handle(), texts);
if(!(WinUtil::getOsMajor() >= 5 && WinUtil::getOsMinor() >= 1 //WinXP & WinSvr2003
Modified: dcplusplus/trunk/win32/NetworkPage.h
===================================================================
--- dcplusplus/trunk/win32/NetworkPage.h 2008-03-26 13:39:40 UTC (rev 1055)
+++ dcplusplus/trunk/win32/NetworkPage.h 2008-03-26 13:41:27 UTC (rev 1056)
@@ -31,7 +31,6 @@
virtual void write();
private:
- static HelpItem helpItems[];
static Item items[];
static TextItem texts[];
Modified: dcplusplus/trunk/win32/PropPage.cpp
===================================================================
--- dcplusplus/trunk/win32/PropPage.cpp 2008-03-26 13:39:40 UTC (rev 1055)
+++ dcplusplus/trunk/win32/PropPage.cpp 2008-03-26 13:41:27 UTC (rev 1056)
@@ -31,12 +31,6 @@
PropPage::~PropPage() {
}
-void PropPage::setHelpIds(HWND page, HelpItem* items) {
- if(items)
- for(size_t i = 0; items[i].ctrlId != 0; ++i)
- ::SetWindowContextHelpId(::GetDlgItem(page, items[i].ctrlId), items[i].helpId);
-}
-
void PropPage::read(HWND page, Item const* items, ListItem* listItems /* = NULL */, HWND list /* = 0 */)
{
dcassert(page != NULL);
@@ -127,12 +121,9 @@
}
}
- if(listItems) {
- int i;
- for(i = 0; listItems[i].setting != 0; i++) {
+ if(listItems)
+ for(size_t i = 0; listItems[i].setting != 0; ++i)
settings->set(SettingsManager::IntSetting(listItems[i].setting), ListView_GetCheckState(list, i) > 0);
- }
- }
}
void PropPage::translate(HWND page, TextItem* items) {
Modified: dcplusplus/trunk/win32/PropPage.h
===================================================================
--- dcplusplus/trunk/win32/PropPage.h 2008-03-26 13:39:40 UTC (rev 1055)
+++ dcplusplus/trunk/win32/PropPage.h 2008-03-26 13:41:27 UTC (rev 1056)
@@ -33,11 +33,6 @@
enum Type { T_STR, T_INT, T_BOOL, T_CUSTOM, T_END };
- struct HelpItem {
- unsigned ctrlId;
- unsigned helpId;
- };
-
struct Item {
WORD itemID;
int setting;
@@ -55,7 +50,6 @@
};
protected:
- void setHelpIds(HWND page, HelpItem* items);
void read(HWND page, Item const* items, ListItem* listItems = NULL, HWND list = NULL);
void write(HWND page, Item const* items, ListItem* listItems = NULL, HWND list = NULL);
void translate(HWND page, TextItem* items);
Modified: dcplusplus/trunk/win32/QueuePage.cpp
===================================================================
--- dcplusplus/trunk/win32/QueuePage.cpp 2008-03-26 13:39:40 UTC (rev 1055)
+++ dcplusplus/trunk/win32/QueuePage.cpp 2008-03-26 13:41:27 UTC (rev 1056)
@@ -23,8 +23,9 @@
#include "QueuePage.h"
#include <dcpp/SettingsManager.h>
+#include "WinUtil.h"
-PropPage::HelpItem QueuePage::helpItems[] = {
+static const WinUtil::HelpItem helpItems[] = {
{ IDC_SETTINGS_AUTOPRIO, IDH_SETTINGS_QUEUE_AUTOPRIO },
{ IDC_SETTINGS_PRIO_HIGHEST, IDH_SETTINGS_QUEUE_PRIO_HIGHEST },
{ IDC_PRIO_HIGHEST_SIZE, IDH_SETTINGS_QUEUE_PRIO_HIGHEST },
@@ -117,7 +118,7 @@
createDialog(IDD_QUEUEPAGE);
setHelpId(IDH_QUEUEPAGE);
- PropPage::setHelpIds(handle(), helpItems);
+ WinUtil::setHelpIds(handle(), helpItems);
PropPage::translate(handle(), texts);
PropPage::read(handle(), items, 0, 0);
PropPage::read(handle(), items, optionItems, ::GetDlgItem(handle(), IDC_OTHER_QUEUE_OPTIONS));
Modified: dcplusplus/trunk/win32/QueuePage.h
===================================================================
--- dcplusplus/trunk/win32/QueuePage.h 2008-03-26 13:39:40 UTC (rev 1055)
+++ dcplusplus/trunk/win32/QueuePage.h 2008-03-26 13:41:27 UTC (rev 1056)
@@ -31,7 +31,6 @@
virtual void write();
private:
- static HelpItem helpItems[];
static Item items[];
static TextItem texts[];
static ListItem optionItems[];
Modified: dcplusplus/trunk/win32/SettingsDialog.cpp
===================================================================
--- dcplusplus/trunk/win32/SettingsDialog.cpp 2008-03-26 13:39:40 UTC (rev 1055)
+++ dcplusplus/trunk/win32/SettingsDialog.cpp 2008-03-26 13:41:27 UTC (rev 1056)
@@ -39,6 +39,14 @@
#include "UCPage.h"
#include "CertificatesPage.h"
+static const WinUtil::HelpItem helpItems[] = {
+ { IDC_SETTINGS_PAGES, IDH_SETTINGS_TREE },
+ { IDOK, IDH_DCPP_OK },
+ { IDCANCEL, IDH_DCPP_CANCEL },
+ { IDHELP, IDH_DCPP_HELP },
+ { 0, 0 }
+};
+
static const TCHAR SEPARATOR = _T('\\');
static const size_t MAX_NAME_LENGTH = 256;
@@ -55,27 +63,28 @@
}
bool SettingsDialog::initDialog() {
+ // set this to IDH_STARTPAGE so that clicking in an empty space of the dialog generates a WM_HELP message with no error; then SettingsDialog::handleHelp will convert IDH_STARTPAGE to the current page's help id
+ setHelpId(IDH_STARTPAGE);
+
+ WinUtil::setHelpIds(handle(), helpItems);
+
setText(T_("Settings"));
pageTree = attachTreeView(IDC_SETTINGS_PAGES);
- pageTree->setHelpId(IDH_SETTINGS_TREE);
pageTree->onSelectionChanged(std::tr1::bind(&SettingsDialog::selectionChanged, this));
{
WidgetButtonPtr button = attachButton(IDOK);
- button->setHelpId(IDH_SETTINGS_OK);
button->setText(T_("OK"));
button->onClicked(std::tr1::bind(&SettingsDialog::handleOKClicked, this));
button = attachButton(IDCANCEL);
- button->setHelpId(IDH_SETTINGS_CANCEL);
button->setText(T_("Cancel"));
button->onClicked(std::tr1::bind(&SettingsDialog::endDialog, this, IDCANCEL));
button = attachButton(IDHELP);
- button->setHelpId(IDH_SETTINGS_HELP);
button->setText(T_("Help"));
- button->onClicked(std::tr1::bind(&SettingsDialog::handleHelp, this, 0, handle(), 0));
+ button->onClicked(std::tr1::bind(&SettingsDialog::handleHelp, this, 0, handle(), IDH_STARTPAGE));
}
addPage(T_("Personal information"), new GeneralPage(this));
@@ -98,7 +107,7 @@
}
void SettingsDialog::handleHelp(unsigned ctrlId, HWND hWnd, unsigned helpId) {
- if(helpId == 0 && currentPage)
+ if(helpId == IDH_STARTPAGE && currentPage)
helpId = currentPage->getHelpId();
WinUtil::help(ctrlId, hWnd, helpId);
}
Modified: dcplusplus/trunk/win32/UCPage.cpp
===================================================================
--- dcplusplus/trunk/win32/UCPage.cpp 2008-03-26 13:39:40 UTC (rev 1055)
+++ dcplusplus/trunk/win32/UCPage.cpp 2008-03-26 13:41:27 UTC (rev 1056)
@@ -26,8 +26,9 @@
#include <dcpp/FavoriteManager.h>
#include "CommandDlg.h"
#include "HoldRedraw.h"
+#include "WinUtil.h"
-PropPage::HelpItem UCPage::helpItems[] = {
+static const WinUtil::HelpItem helpItems[] = {
{ IDC_MENU_ITEMS, IDH_SETTINGS_UC_LIST },
{ IDC_ADD_MENU, IDH_SETTINGS_UC_ADD },
{ IDC_CHANGE_MENU, IDH_SETTINGS_UC_CHANGE },
@@ -54,7 +55,7 @@
createDialog(IDD_UCPAGE);
setHelpId(IDH_UCPAGE);
- PropPage::setHelpIds(handle(), helpItems);
+ WinUtil::setHelpIds(handle(), helpItems);
PropPage::translate(handle(), texts);
PropPage::read(handle(), items);
Modified: dcplusplus/trunk/win32/UCPage.h
===================================================================
--- dcplusplus/trunk/win32/UCPage.h 2008-03-26 13:39:40 UTC (rev 1055)
+++ dcplusplus/trunk/win32/UCPage.h 2008-03-26 13:41:27 UTC (rev 1056)
@@ -32,7 +32,6 @@
virtual void write();
private:
- static HelpItem helpItems[];
static Item items[];
static TextItem texts[];
Modified: dcplusplus/trunk/win32/UploadPage.cpp
===================================================================
--- dcplusplus/trunk/win32/UploadPage.cpp 2008-03-26 13:39:40 UTC (rev 1055)
+++ dcplusplus/trunk/win32/UploadPage.cpp 2008-03-26 13:41:27 UTC (rev 1056)
@@ -29,7 +29,7 @@
#include "LineDlg.h"
#include "HashProgressDlg.h"
-PropPage::HelpItem UploadPage::helpItems[] = {
+static const WinUtil::HelpItem helpItems[] = {
{ IDC_SETTINGS_SHARED_DIRECTORIES, IDH_SETTINGS_UPLOAD_DIRECTORIES },
{ IDC_DIRECTORIES, IDH_SETTINGS_UPLOAD_DIRECTORIES },
{ IDC_SETTINGS_ONLY_HASHED, IDH_SETTINGS_UPLOAD_DIRECTORIES },
@@ -74,7 +74,7 @@
createDialog(IDD_UPLOADPAGE);
setHelpId(IDH_UPLOADPAGE);
- PropPage::setHelpIds(handle(), helpItems);
+ WinUtil::setHelpIds(handle(), helpItems);
PropPage::translate(handle(), texts);
PropPage::read(handle(), items);
Modified: dcplusplus/trunk/win32/UploadPage.h
===================================================================
--- dcplusplus/trunk/win32/UploadPage.h 2008-03-26 13:39:40 UTC (rev 1055)
+++ dcplusplus/trunk/win32/UploadPage.h 2008-03-26 13:41:27 UTC (rev 1056)
@@ -32,7 +32,6 @@
virtual int getHelpId() { return IDD_UPLOADPAGE; }
private:
- static HelpItem helpItems[];
static Item items[];
static TextItem texts[];
Modified: dcplusplus/trunk/win32/WinUtil.cpp
===================================================================
--- dcplusplus/trunk/win32/WinUtil.cpp 2008-03-26 13:39:40 ...
[truncated message content] |
|
From: <arn...@us...> - 2008-03-26 13:42:20
|
Revision: 1057
http://dcplusplus.svn.sourceforge.net/dcplusplus/?rev=1057&view=rev
Author: arnetheduck
Date: 2008-03-26 06:42:18 -0700 (Wed, 26 Mar 2008)
Log Message:
-----------
upgrade bzip2
Modified Paths:
--------------
dcplusplus/trunk/bzip2/LICENSE
dcplusplus/trunk/bzip2/blocksort.c
dcplusplus/trunk/bzip2/bzlib.c
dcplusplus/trunk/bzip2/bzlib.h
dcplusplus/trunk/bzip2/bzlib_private.h
dcplusplus/trunk/bzip2/compress.c
dcplusplus/trunk/bzip2/crctable.c
dcplusplus/trunk/bzip2/decompress.c
dcplusplus/trunk/bzip2/huffman.c
dcplusplus/trunk/bzip2/randtable.c
Removed Paths:
-------------
dcplusplus/trunk/bzip2/bzip2.c
Property Changed:
----------------
dcplusplus/trunk/
Property changes on: dcplusplus/trunk
___________________________________________________________________
Name: bzr:revision-info
- timestamp: 2008-03-24 15:19:33.282999992 +0100
committer: zouzou123gen
properties:
branch-nick: bzr
+ timestamp: 2008-03-24 16:37:06.799999952 +0100
committer: Jacek Sieka <arn...@gm...>
properties:
branch-nick: dcplusplus
Name: bzr:revision-id:v3-trunk1
- 1027 arn...@gm...-20080323183926-schknwnkgeo7ivdn
1028 zouzou123gen-20080323220411-r8usuc3qxwuh7zsn
1029 zouzou123gen-20080323221249-0su72zaj13e706mk
1030 arn...@gm...-20080324140623-muba1dl46m000o8c
1031 zouzou123gen-20080324141933-qbgr93ugpe0297m6
+ 1027 arn...@gm...-20080323183926-schknwnkgeo7ivdn
1028 zouzou123gen-20080323220411-r8usuc3qxwuh7zsn
1029 zouzou123gen-20080323221249-0su72zaj13e706mk
1030 arn...@gm...-20080324140623-muba1dl46m000o8c
1031 zouzou123gen-20080324141933-qbgr93ugpe0297m6
1032 arn...@gm...-20080324153706-siidja05n84i00b1
Modified: dcplusplus/trunk/bzip2/LICENSE
===================================================================
--- dcplusplus/trunk/bzip2/LICENSE 2008-03-26 13:41:27 UTC (rev 1056)
+++ dcplusplus/trunk/bzip2/LICENSE 2008-03-26 13:42:18 UTC (rev 1057)
@@ -2,7 +2,7 @@
--------------------------------------------------------------------------
This program, "bzip2", the associated library "libbzip2", and all
-documentation, are copyright (C) 1996-2006 Julian R Seward. All
+documentation, are copyright (C) 1996-2007 Julian R Seward. All
rights reserved.
Redistribution and use in source and binary forms, with or without
@@ -36,8 +36,7 @@
NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-Julian Seward, Cambridge, UK.
-js...@bz...
-bzip2/libbzip2 version 1.0.4 of 20 December 2006
+Julian Seward, js...@bz...
+bzip2/libbzip2 version 1.0.5 of 10 December 2007
--------------------------------------------------------------------------
Modified: dcplusplus/trunk/bzip2/blocksort.c
===================================================================
--- dcplusplus/trunk/bzip2/blocksort.c 2008-03-26 13:41:27 UTC (rev 1056)
+++ dcplusplus/trunk/bzip2/blocksort.c 2008-03-26 13:42:18 UTC (rev 1057)
@@ -8,8 +8,8 @@
This file is part of bzip2/libbzip2, a program and library for
lossless, block-sorting data compression.
- bzip2/libbzip2 version 1.0.4 of 20 December 2006
- Copyright (C) 1996-2006 Julian Seward <js...@bz...>
+ bzip2/libbzip2 version 1.0.5 of 10 December 2007
+ Copyright (C) 1996-2007 Julian Seward <js...@bz...>
Please read the WARNING, DISCLAIMER and PATENTS sections in the
README file.
Deleted: dcplusplus/trunk/bzip2/bzip2.c
===================================================================
--- dcplusplus/trunk/bzip2/bzip2.c 2008-03-26 13:41:27 UTC (rev 1056)
+++ dcplusplus/trunk/bzip2/bzip2.c 2008-03-26 13:42:18 UTC (rev 1057)
@@ -1,2035 +0,0 @@
-#if 0
-/*-----------------------------------------------------------*/
-/*--- A block-sorting, lossless compressor bzip2.c ---*/
-/*-----------------------------------------------------------*/
-
-/* ------------------------------------------------------------------
- This file is part of bzip2/libbzip2, a program and library for
- lossless, block-sorting data compression.
-
- bzip2/libbzip2 version 1.0.4 of 20 December 2006
- Copyright (C) 1996-2006 Julian Seward <js...@bz...>
-
- Please read the WARNING, DISCLAIMER and PATENTS sections in the
- README file.
-
- This program is released under the terms of the license contained
- in the file LICENSE.
- ------------------------------------------------------------------ */
-
-
-/* Place a 1 beside your platform, and 0 elsewhere.
- Generic 32-bit Unix.
- Also works on 64-bit Unix boxes.
- This is the default.
-*/
-#define BZ_UNIX 1
-
-/*--
- Win32, as seen by Jacob Navia's excellent
- port of (Chris Fraser & David Hanson)'s excellent
- lcc compiler. Or with MS Visual C.
- This is selected automatically if compiled by a compiler which
- defines _WIN32, not including the Cygwin GCC.
---*/
-#define BZ_LCCWIN32 0
-
-#if defined(_WIN32) && !defined(__CYGWIN__)
-#undef BZ_LCCWIN32
-#define BZ_LCCWIN32 1
-#undef BZ_UNIX
-#define BZ_UNIX 0
-#endif
-
-
-/*---------------------------------------------*/
-/*--
- Some stuff for all platforms.
---*/
-
-#include <stdio.h>
-#include <stdlib.h>
-#include <string.h>
-#include <signal.h>
-#include <math.h>
-#include <errno.h>
-#include <ctype.h>
-#include "bzlib.h"
-
-#define ERROR_IF_EOF(i) { if ((i) == EOF) ioError(); }
-#define ERROR_IF_NOT_ZERO(i) { if ((i) != 0) ioError(); }
-#define ERROR_IF_MINUS_ONE(i) { if ((i) == (-1)) ioError(); }
-
-
-/*---------------------------------------------*/
-/*--
- Platform-specific stuff.
---*/
-
-#if BZ_UNIX
-# include <fcntl.h>
-# include <sys/types.h>
-# include <utime.h>
-# include <unistd.h>
-# include <sys/stat.h>
-# include <sys/times.h>
-
-# define PATH_SEP '/'
-# define MY_LSTAT lstat
-# define MY_STAT stat
-# define MY_S_ISREG S_ISREG
-# define MY_S_ISDIR S_ISDIR
-
-# define APPEND_FILESPEC(root, name) \
- root=snocString((root), (name))
-
-# define APPEND_FLAG(root, name) \
- root=snocString((root), (name))
-
-# define SET_BINARY_MODE(fd) /**/
-
-# ifdef __GNUC__
-# define NORETURN __attribute__ ((noreturn))
-# else
-# define NORETURN /**/
-# endif
-
-# ifdef __DJGPP__
-# include <io.h>
-# include <fcntl.h>
-# undef MY_LSTAT
-# undef MY_STAT
-# define MY_LSTAT stat
-# define MY_STAT stat
-# undef SET_BINARY_MODE
-# define SET_BINARY_MODE(fd) \
- do { \
- int retVal = setmode ( fileno ( fd ), \
- O_BINARY ); \
- ERROR_IF_MINUS_ONE ( retVal ); \
- } while ( 0 )
-# endif
-
-# ifdef __CYGWIN__
-# include <io.h>
-# include <fcntl.h>
-# undef SET_BINARY_MODE
-# define SET_BINARY_MODE(fd) \
- do { \
- int retVal = setmode ( fileno ( fd ), \
- O_BINARY ); \
- ERROR_IF_MINUS_ONE ( retVal ); \
- } while ( 0 )
-# endif
-#endif /* BZ_UNIX */
-
-
-
-#if BZ_LCCWIN32
-# include <io.h>
-# include <fcntl.h>
-# include <sys\stat.h>
-
-# define NORETURN /**/
-# define PATH_SEP '\\'
-# define MY_LSTAT _stat
-# define MY_STAT _stat
-# define MY_S_ISREG(x) ((x) & _S_IFREG)
-# define MY_S_ISDIR(x) ((x) & _S_IFDIR)
-
-# define APPEND_FLAG(root, name) \
- root=snocString((root), (name))
-
-# define APPEND_FILESPEC(root, name) \
- root = snocString ((root), (name))
-
-# define SET_BINARY_MODE(fd) \
- do { \
- int retVal = setmode ( fileno ( fd ), \
- O_BINARY ); \
- ERROR_IF_MINUS_ONE ( retVal ); \
- } while ( 0 )
-
-#endif /* BZ_LCCWIN32 */
-
-
-/*---------------------------------------------*/
-/*--
- Some more stuff for all platforms :-)
---*/
-
-typedef char Char;
-typedef unsigned char Bool;
-typedef unsigned char UChar;
-typedef int Int32;
-typedef unsigned int UInt32;
-typedef short Int16;
-typedef unsigned short UInt16;
-
-#define True ((Bool)1)
-#define False ((Bool)0)
-
-/*--
- IntNative is your platform's `native' int size.
- Only here to avoid probs with 64-bit platforms.
---*/
-typedef int IntNative;
-
-
-/*---------------------------------------------------*/
-/*--- Misc (file handling) data decls ---*/
-/*---------------------------------------------------*/
-
-Int32 verbosity;
-Bool keepInputFiles, smallMode, deleteOutputOnInterrupt;
-Bool forceOverwrite, testFailsExist, unzFailsExist, noisy;
-Int32 numFileNames, numFilesProcessed, blockSize100k;
-Int32 exitValue;
-
-/*-- source modes; F==file, I==stdin, O==stdout --*/
-#define SM_I2O 1
-#define SM_F2O 2
-#define SM_F2F 3
-
-/*-- operation modes --*/
-#define OM_Z 1
-#define OM_UNZ 2
-#define OM_TEST 3
-
-Int32 opMode;
-Int32 srcMode;
-
-#define FILE_NAME_LEN 1034
-
-Int32 longestFileName;
-Char inName [FILE_NAME_LEN];
-Char outName[FILE_NAME_LEN];
-Char tmpName[FILE_NAME_LEN];
-Char *progName;
-Char progNameReally[FILE_NAME_LEN];
-FILE *outputHandleJustInCase;
-Int32 workFactor;
-
-static void panic ( const Char* ) NORETURN;
-static void ioError ( void ) NORETURN;
-static void outOfMemory ( void ) NORETURN;
-static void configError ( void ) NORETURN;
-static void crcError ( void ) NORETURN;
-static void cleanUpAndFail ( Int32 ) NORETURN;
-static void compressedStreamEOF ( void ) NORETURN;
-
-static void copyFileName ( Char*, Char* );
-static void* myMalloc ( Int32 );
-static void applySavedFileAttrToOutputFile ( IntNative fd );
-
-
-
-/*---------------------------------------------------*/
-/*--- An implementation of 64-bit ints. Sigh. ---*/
-/*--- Roll on widespread deployment of ANSI C9X ! ---*/
-/*---------------------------------------------------*/
-
-typedef
- struct { UChar b[8]; }
- UInt64;
-
-
-static
-void uInt64_from_UInt32s ( UInt64* n, UInt32 lo32, UInt32 hi32 )
-{
- n->b[7] = (UChar)((hi32 >> 24) & 0xFF);
- n->b[6] = (UChar)((hi32 >> 16) & 0xFF);
- n->b[5] = (UChar)((hi32 >> 8) & 0xFF);
- n->b[4] = (UChar) (hi32 & 0xFF);
- n->b[3] = (UChar)((lo32 >> 24) & 0xFF);
- n->b[2] = (UChar)((lo32 >> 16) & 0xFF);
- n->b[1] = (UChar)((lo32 >> 8) & 0xFF);
- n->b[0] = (UChar) (lo32 & 0xFF);
-}
-
-
-static
-double uInt64_to_double ( UInt64* n )
-{
- Int32 i;
- double base = 1.0;
- double sum = 0.0;
- for (i = 0; i < 8; i++) {
- sum += base * (double)(n->b[i]);
- base *= 256.0;
- }
- return sum;
-}
-
-
-static
-Bool uInt64_isZero ( UInt64* n )
-{
- Int32 i;
- for (i = 0; i < 8; i++)
- if (n->b[i] != 0) return 0;
- return 1;
-}
-
-
-/* Divide *n by 10, and return the remainder. */
-static
-Int32 uInt64_qrm10 ( UInt64* n )
-{
- UInt32 rem, tmp;
- Int32 i;
- rem = 0;
- for (i = 7; i >= 0; i--) {
- tmp = rem * 256 + n->b[i];
- n->b[i] = tmp / 10;
- rem = tmp % 10;
- }
- return rem;
-}
-
-
-/* ... and the Whole Entire Point of all this UInt64 stuff is
- so that we can supply the following function.
-*/
-static
-void uInt64_toAscii ( char* outbuf, UInt64* n )
-{
- Int32 i, q;
- UChar buf[32];
- Int32 nBuf = 0;
- UInt64 n_copy = *n;
- do {
- q = uInt64_qrm10 ( &n_copy );
- buf[nBuf] = q + '0';
- nBuf++;
- } while (!uInt64_isZero(&n_copy));
- outbuf[nBuf] = 0;
- for (i = 0; i < nBuf; i++)
- outbuf[i] = buf[nBuf-i-1];
-}
-
-
-/*---------------------------------------------------*/
-/*--- Processing of complete files and streams ---*/
-/*---------------------------------------------------*/
-
-/*---------------------------------------------*/
-static
-Bool myfeof ( FILE* f )
-{
- Int32 c = fgetc ( f );
- if (c == EOF) return True;
- ungetc ( c, f );
- return False;
-}
-
-
-/*---------------------------------------------*/
-static
-void compressStream ( FILE *stream, FILE *zStream )
-{
- BZFILE* bzf = NULL;
- UChar ibuf[5000];
- Int32 nIbuf;
- UInt32 nbytes_in_lo32, nbytes_in_hi32;
- UInt32 nbytes_out_lo32, nbytes_out_hi32;
- Int32 bzerr, bzerr_dummy, ret;
-
- SET_BINARY_MODE(stream);
- SET_BINARY_MODE(zStream);
-
- if (ferror(stream)) goto errhandler_io;
- if (ferror(zStream)) goto errhandler_io;
-
- bzf = BZ2_bzWriteOpen ( &bzerr, zStream,
- blockSize100k, verbosity, workFactor );
- if (bzerr != BZ_OK) goto errhandler;
-
- if (verbosity >= 2) fprintf ( stderr, "\n" );
-
- while (True) {
-
- if (myfeof(stream)) break;
- nIbuf = fread ( ibuf, sizeof(UChar), 5000, stream );
- if (ferror(stream)) goto errhandler_io;
- if (nIbuf > 0) BZ2_bzWrite ( &bzerr, bzf, (void*)ibuf, nIbuf );
- if (bzerr != BZ_OK) goto errhandler;
-
- }
-
- BZ2_bzWriteClose64 ( &bzerr, bzf, 0,
- &nbytes_in_lo32, &nbytes_in_hi32,
- &nbytes_out_lo32, &nbytes_out_hi32 );
- if (bzerr != BZ_OK) goto errhandler;
-
- if (ferror(zStream)) goto errhandler_io;
- ret = fflush ( zStream );
- if (ret == EOF) goto errhandler_io;
- if (zStream != stdout) {
- Int32 fd = fileno ( zStream );
- if (fd < 0) goto errhandler_io;
- applySavedFileAttrToOutputFile ( fd );
- ret = fclose ( zStream );
- outputHandleJustInCase = NULL;
- if (ret == EOF) goto errhandler_io;
- }
- outputHandleJustInCase = NULL;
- if (ferror(stream)) goto errhandler_io;
- ret = fclose ( stream );
- if (ret == EOF) goto errhandler_io;
-
- if (verbosity >= 1) {
- if (nbytes_in_lo32 == 0 && nbytes_in_hi32 == 0) {
- fprintf ( stderr, " no data compressed.\n");
- } else {
- Char buf_nin[32], buf_nout[32];
- UInt64 nbytes_in, nbytes_out;
- double nbytes_in_d, nbytes_out_d;
- uInt64_from_UInt32s ( &nbytes_in,
- nbytes_in_lo32, nbytes_in_hi32 );
- uInt64_from_UInt32s ( &nbytes_out,
- nbytes_out_lo32, nbytes_out_hi32 );
- nbytes_in_d = uInt64_to_double ( &nbytes_in );
- nbytes_out_d = uInt64_to_double ( &nbytes_out );
- uInt64_toAscii ( buf_nin, &nbytes_in );
- uInt64_toAscii ( buf_nout, &nbytes_out );
- fprintf ( stderr, "%6.3f:1, %6.3f bits/byte, "
- "%5.2f%% saved, %s in, %s out.\n",
- nbytes_in_d / nbytes_out_d,
- (8.0 * nbytes_out_d) / nbytes_in_d,
- 100.0 * (1.0 - nbytes_out_d / nbytes_in_d),
- buf_nin,
- buf_nout
- );
- }
- }
-
- return;
-
- errhandler:
- BZ2_bzWriteClose64 ( &bzerr_dummy, bzf, 1,
- &nbytes_in_lo32, &nbytes_in_hi32,
- &nbytes_out_lo32, &nbytes_out_hi32 );
- switch (bzerr) {
- case BZ_CONFIG_ERROR:
- configError(); break;
- case BZ_MEM_ERROR:
- outOfMemory (); break;
- case BZ_IO_ERROR:
- errhandler_io:
- ioError(); break;
- default:
- panic ( "compress:unexpected error" );
- }
-
- panic ( "compress:end" );
- /*notreached*/
-}
-
-
-
-/*---------------------------------------------*/
-static
-Bool uncompressStream ( FILE *zStream, FILE *stream )
-{
- BZFILE* bzf = NULL;
- Int32 bzerr, bzerr_dummy, ret, nread, streamNo, i;
- UChar obuf[5000];
- UChar unused[BZ_MAX_UNUSED];
- Int32 nUnused;
- void* unusedTmpV;
- UChar* unusedTmp;
-
- nUnused = 0;
- streamNo = 0;
-
- SET_BINARY_MODE(stream);
- SET_BINARY_MODE(zStream);
-
- if (ferror(stream)) goto errhandler_io;
- if (ferror(zStream)) goto errhandler_io;
-
- while (True) {
-
- bzf = BZ2_bzReadOpen (
- &bzerr, zStream, verbosity,
- (int)smallMode, unused, nUnused
- );
- if (bzf == NULL || bzerr != BZ_OK) goto errhandler;
- streamNo++;
-
- while (bzerr == BZ_OK) {
- nread = BZ2_bzRead ( &bzerr, bzf, obuf, 5000 );
- if (bzerr == BZ_DATA_ERROR_MAGIC) goto trycat;
- if ((bzerr == BZ_OK || bzerr == BZ_STREAM_END) && nread > 0)
- fwrite ( obuf, sizeof(UChar), nread, stream );
- if (ferror(stream)) goto errhandler_io;
- }
- if (bzerr != BZ_STREAM_END) goto errhandler;
-
- BZ2_bzReadGetUnused ( &bzerr, bzf, &unusedTmpV, &nUnused );
- if (bzerr != BZ_OK) panic ( "decompress:bzReadGetUnused" );
-
- unusedTmp = (UChar*)unusedTmpV;
- for (i = 0; i < nUnused; i++) unused[i] = unusedTmp[i];
-
- BZ2_bzReadClose ( &bzerr, bzf );
- if (bzerr != BZ_OK) panic ( "decompress:bzReadGetUnused" );
-
- if (nUnused == 0 && myfeof(zStream)) break;
- }
-
- closeok:
- if (ferror(zStream)) goto errhandler_io;
- if (stream != stdout) {
- Int32 fd = fileno ( stream );
- if (fd < 0) goto errhandler_io;
- applySavedFileAttrToOutputFile ( fd );
- }
- ret = fclose ( zStream );
- if (ret == EOF) goto errhandler_io;
-
- if (ferror(stream)) goto errhandler_io;
- ret = fflush ( stream );
- if (ret != 0) goto errhandler_io;
- if (stream != stdout) {
- ret = fclose ( stream );
- outputHandleJustInCase = NULL;
- if (ret == EOF) goto errhandler_io;
- }
- outputHandleJustInCase = NULL;
- if (verbosity >= 2) fprintf ( stderr, "\n " );
- return True;
-
- trycat:
- if (forceOverwrite) {
- rewind(zStream);
- while (True) {
- if (myfeof(zStream)) break;
- nread = fread ( obuf, sizeof(UChar), 5000, zStream );
- if (ferror(zStream)) goto errhandler_io;
- if (nread > 0) fwrite ( obuf, sizeof(UChar), nread, stream );
- if (ferror(stream)) goto errhandler_io;
- }
- goto closeok;
- }
-
- errhandler:
- BZ2_bzReadClose ( &bzerr_dummy, bzf );
- switch (bzerr) {
- case BZ_CONFIG_ERROR:
- configError(); break;
- case BZ_IO_ERROR:
- errhandler_io:
- ioError(); break;
- case BZ_DATA_ERROR:
- crcError();
- case BZ_MEM_ERROR:
- outOfMemory();
- case BZ_UNEXPECTED_EOF:
- compressedStreamEOF();
- case BZ_DATA_ERROR_MAGIC:
- if (zStream != stdin) fclose(zStream);
- if (stream != stdout) fclose(stream);
- if (streamNo == 1) {
- return False;
- } else {
- if (noisy)
- fprintf ( stderr,
- "\n%s: %s: trailing garbage after EOF ignored\n",
- progName, inName );
- return True;
- }
- default:
- panic ( "decompress:unexpected error" );
- }
-
- panic ( "decompress:end" );
- return True; /*notreached*/
-}
-
-
-/*---------------------------------------------*/
-static
-Bool testStream ( FILE *zStream )
-{
- BZFILE* bzf = NULL;
- Int32 bzerr, bzerr_dummy, ret, nread, streamNo, i;
- UChar obuf[5000];
- UChar unused[BZ_MAX_UNUSED];
- Int32 nUnused;
- void* unusedTmpV;
- UChar* unusedTmp;
-
- nUnused = 0;
- streamNo = 0;
-
- SET_BINARY_MODE(zStream);
- if (ferror(zStream)) goto errhandler_io;
-
- while (True) {
-
- bzf = BZ2_bzReadOpen (
- &bzerr, zStream, verbosity,
- (int)smallMode, unused, nUnused
- );
- if (bzf == NULL || bzerr != BZ_OK) goto errhandler;
- streamNo++;
-
- while (bzerr == BZ_OK) {
- nread = BZ2_bzRead ( &bzerr, bzf, obuf, 5000 );
- if (bzerr == BZ_DATA_ERROR_MAGIC) goto errhandler;
- }
- if (bzerr != BZ_STREAM_END) goto errhandler;
-
- BZ2_bzReadGetUnused ( &bzerr, bzf, &unusedTmpV, &nUnused );
- if (bzerr != BZ_OK) panic ( "test:bzReadGetUnused" );
-
- unusedTmp = (UChar*)unusedTmpV;
- for (i = 0; i < nUnused; i++) unused[i] = unusedTmp[i];
-
- BZ2_bzReadClose ( &bzerr, bzf );
- if (bzerr != BZ_OK) panic ( "test:bzReadGetUnused" );
- if (nUnused == 0 && myfeof(zStream)) break;
-
- }
-
- if (ferror(zStream)) goto errhandler_io;
- ret = fclose ( zStream );
- if (ret == EOF) goto errhandler_io;
-
- if (verbosity >= 2) fprintf ( stderr, "\n " );
- return True;
-
- errhandler:
- BZ2_bzReadClose ( &bzerr_dummy, bzf );
- if (verbosity == 0)
- fprintf ( stderr, "%s: %s: ", progName, inName );
- switch (bzerr) {
- case BZ_CONFIG_ERROR:
- configError(); break;
- case BZ_IO_ERROR:
- errhandler_io:
- ioError(); break;
- case BZ_DATA_ERROR:
- fprintf ( stderr,
- "data integrity (CRC) error in data\n" );
- return False;
- case BZ_MEM_ERROR:
- outOfMemory();
- case BZ_UNEXPECTED_EOF:
- fprintf ( stderr,
- "file ends unexpectedly\n" );
- return False;
- case BZ_DATA_ERROR_MAGIC:
- if (zStream != stdin) fclose(zStream);
- if (streamNo == 1) {
- fprintf ( stderr,
- "bad magic number (file not created by bzip2)\n" );
- return False;
- } else {
- if (noisy)
- fprintf ( stderr,
- "trailing garbage after EOF ignored\n" );
- return True;
- }
- default:
- panic ( "test:unexpected error" );
- }
-
- panic ( "test:end" );
- return True; /*notreached*/
-}
-
-
-/*---------------------------------------------------*/
-/*--- Error [non-] handling grunge ---*/
-/*---------------------------------------------------*/
-
-/*---------------------------------------------*/
-static
-void setExit ( Int32 v )
-{
- if (v > exitValue) exitValue = v;
-}
-
-
-/*---------------------------------------------*/
-static
-void cadvise ( void )
-{
- if (noisy)
- fprintf (
- stderr,
- "\nIt is possible that the compressed file(s) have become corrupted.\n"
- "You can use the -tvv option to test integrity of such files.\n\n"
- "You can use the `bzip2recover' program to attempt to recover\n"
- "data from undamaged sections of corrupted files.\n\n"
- );
-}
-
-
-/*---------------------------------------------*/
-static
-void showFileNames ( void )
-{
- if (noisy)
- fprintf (
- stderr,
- "\tInput file = %s, output file = %s\n",
- inName, outName
- );
-}
-
-
-/*---------------------------------------------*/
-static
-void cleanUpAndFail ( Int32 ec )
-{
- IntNative retVal;
- struct MY_STAT statBuf;
-
- if ( srcMode == SM_F2F
- && opMode != OM_TEST
- && deleteOutputOnInterrupt ) {
-
- /* Check whether input file still exists. Delete output file
- only if input exists to avoid loss of data. Joerg Prante, 5
- January 2002. (JRS 06-Jan-2002: other changes in 1.0.2 mean
- this is less likely to happen. But to be ultra-paranoid, we
- do the check anyway.) */
- retVal = MY_STAT ( inName, &statBuf );
- if (retVal == 0) {
- if (noisy)
- fprintf ( stderr,
- "%s: Deleting output file %s, if it exists.\n",
- progName, outName );
- if (outputHandleJustInCase != NULL)
- fclose ( outputHandleJustInCase );
- retVal = remove ( outName );
- if (retVal != 0)
- fprintf ( stderr,
- "%s: WARNING: deletion of output file "
- "(apparently) failed.\n",
- progName );
- } else {
- fprintf ( stderr,
- "%s: WARNING: deletion of output file suppressed\n",
- progName );
- fprintf ( stderr,
- "%s: since input file no longer exists. Output file\n",
- progName );
- fprintf ( stderr,
- "%s: `%s' may be incomplete.\n",
- progName, outName );
- fprintf ( stderr,
- "%s: I suggest doing an integrity test (bzip2 -tv)"
- " of it.\n",
- progName );
- }
- }
-
- if (noisy && numFileNames > 0 && numFilesProcessed < numFileNames) {
- fprintf ( stderr,
- "%s: WARNING: some files have not been processed:\n"
- "%s: %d specified on command line, %d not processed yet.\n\n",
- progName, progName,
- numFileNames, numFileNames - numFilesProcessed );
- }
- setExit(ec);
- exit(exitValue);
-}
-
-
-/*---------------------------------------------*/
-static
-void panic ( const Char* s )
-{
- fprintf ( stderr,
- "\n%s: PANIC -- internal consistency error:\n"
- "\t%s\n"
- "\tThis is a BUG. Please report it to me at:\n"
- "\tjs...@bz...\n",
- progName, s );
- showFileNames();
- cleanUpAndFail( 3 );
-}
-
-
-/*---------------------------------------------*/
-static
-void crcError ( void )
-{
- fprintf ( stderr,
- "\n%s: Data integrity error when decompressing.\n",
- progName );
- showFileNames();
- cadvise();
- cleanUpAndFail( 2 );
-}
-
-
-/*---------------------------------------------*/
-static
-void compressedStreamEOF ( void )
-{
- if (noisy) {
- fprintf ( stderr,
- "\n%s: Compressed file ends unexpectedly;\n\t"
- "perhaps it is corrupted? *Possible* reason follows.\n",
- progName );
- perror ( progName );
- showFileNames();
- cadvise();
- }
- cleanUpAndFail( 2 );
-}
-
-
-/*---------------------------------------------*/
-static
-void ioError ( void )
-{
- fprintf ( stderr,
- "\n%s: I/O or other error, bailing out. "
- "Possible reason follows.\n",
- progName );
- perror ( progName );
- showFileNames();
- cleanUpAndFail( 1 );
-}
-
-
-/*---------------------------------------------*/
-static
-void mySignalCatcher ( IntNative n )
-{
- fprintf ( stderr,
- "\n%s: Control-C or similar caught, quitting.\n",
- progName );
- cleanUpAndFail(1);
-}
-
-
-/*---------------------------------------------*/
-static
-void mySIGSEGVorSIGBUScatcher ( IntNative n )
-{
- if (opMode == OM_Z)
- fprintf (
- stderr,
- "\n%s: Caught a SIGSEGV or SIGBUS whilst compressing.\n"
- "\n"
- " Possible causes are (most likely first):\n"
- " (1) This computer has unreliable memory or cache hardware\n"
- " (a surprisingly common problem; try a different machine.)\n"
- " (2) A bug in the compiler used to create this executable\n"
- " (unlikely, if you didn't compile bzip2 yourself.)\n"
- " (3) A real bug in bzip2 -- I hope this should never be the case.\n"
- " The user's manual, Section 4.3, has more info on (1) and (2).\n"
- " \n"
- " If you suspect this is a bug in bzip2, or are unsure about (1)\n"
- " or (2), feel free to report it to me at: js...@bz....\n"
- " Section 4.3 of the user's manual describes the info a useful\n"
- " bug report should have. If the manual is available on your\n"
- " system, please try and read it before mailing me. If you don't\n"
- " have the manual or can't be bothered to read it, mail me anyway.\n"
- "\n",
- progName );
- else
- fprintf (
- stderr,
- "\n%s: Caught a SIGSEGV or SIGBUS whilst decompressing.\n"
- "\n"
- " Possible causes are (most likely first):\n"
- " (1) The compressed data is corrupted, and bzip2's usual checks\n"
- " failed to detect this. Try bzip2 -tvv my_file.bz2.\n"
- " (2) This computer has unreliable memory or cache hardware\n"
- " (a surprisingly common problem; try a different machine.)\n"
- " (3) A bug in the compiler used to create this executable\n"
- " (unlikely, if you didn't compile bzip2 yourself.)\n"
- " (4) A real bug in bzip2 -- I hope this should never be the case.\n"
- " The user's manual, Section 4.3, has more info on (2) and (3).\n"
- " \n"
- " If you suspect this is a bug in bzip2, or are unsure about (2)\n"
- " or (3), feel free to report it to me at: js...@bz....\n"
- " Section 4.3 of the user's manual describes the info a useful\n"
- " bug report should have. If the manual is available on your\n"
- " system, please try and read it before mailing me. If you don't\n"
- " have the manual or can't be bothered to read it, mail me anyway.\n"
- "\n",
- progName );
-
- showFileNames();
- if (opMode == OM_Z)
- cleanUpAndFail( 3 ); else
- { cadvise(); cleanUpAndFail( 2 ); }
-}
-
-
-/*---------------------------------------------*/
-static
-void outOfMemory ( void )
-{
- fprintf ( stderr,
- "\n%s: couldn't allocate enough memory\n",
- progName );
- showFileNames();
- cleanUpAndFail(1);
-}
-
-
-/*---------------------------------------------*/
-static
-void configError ( void )
-{
- fprintf ( stderr,
- "bzip2: I'm not configured correctly for this platform!\n"
- "\tI require Int32, Int16 and Char to have sizes\n"
- "\tof 4, 2 and 1 bytes to run properly, and they don't.\n"
- "\tProbably you can fix this by defining them correctly,\n"
- "\tand recompiling. Bye!\n" );
- setExit(3);
- exit(exitValue);
-}
-
-
-/*---------------------------------------------------*/
-/*--- The main driver machinery ---*/
-/*---------------------------------------------------*/
-
-/* All rather crufty. The main problem is that input files
- are stat()d multiple times before use. This should be
- cleaned up.
-*/
-
-/*---------------------------------------------*/
-static
-void pad ( Char *s )
-{
- Int32 i;
- i...
[truncated message content] |
|
From: <arn...@us...> - 2008-03-26 13:54:50
|
Revision: 1058
http://dcplusplus.svn.sourceforge.net/dcplusplus/?rev=1058&view=rev
Author: arnetheduck
Date: 2008-03-26 06:54:44 -0700 (Wed, 26 Mar 2008)
Log Message:
-----------
readd mpl/preprocessor that were needed after all
Added Paths:
-----------
dcplusplus/trunk/boost/boost/mpl/
dcplusplus/trunk/boost/boost/mpl/O1_size.hpp
dcplusplus/trunk/boost/boost/mpl/O1_size_fwd.hpp
dcplusplus/trunk/boost/boost/mpl/accumulate.hpp
dcplusplus/trunk/boost/boost/mpl/advance.hpp
dcplusplus/trunk/boost/boost/mpl/advance_fwd.hpp
dcplusplus/trunk/boost/boost/mpl/alias.hpp
dcplusplus/trunk/boost/boost/mpl/always.hpp
dcplusplus/trunk/boost/boost/mpl/and.hpp
dcplusplus/trunk/boost/boost/mpl/apply.hpp
dcplusplus/trunk/boost/boost/mpl/apply_fwd.hpp
dcplusplus/trunk/boost/boost/mpl/apply_wrap.hpp
dcplusplus/trunk/boost/boost/mpl/arg.hpp
dcplusplus/trunk/boost/boost/mpl/arg_fwd.hpp
dcplusplus/trunk/boost/boost/mpl/arithmetic.hpp
dcplusplus/trunk/boost/boost/mpl/as_sequence.hpp
dcplusplus/trunk/boost/boost/mpl/assert.hpp
dcplusplus/trunk/boost/boost/mpl/at.hpp
dcplusplus/trunk/boost/boost/mpl/at_fwd.hpp
dcplusplus/trunk/boost/boost/mpl/aux_/
dcplusplus/trunk/boost/boost/mpl/aux_/O1_size_impl.hpp
dcplusplus/trunk/boost/boost/mpl/aux_/adl_barrier.hpp
dcplusplus/trunk/boost/boost/mpl/aux_/advance_backward.hpp
dcplusplus/trunk/boost/boost/mpl/aux_/advance_forward.hpp
dcplusplus/trunk/boost/boost/mpl/aux_/apply_1st.hpp
dcplusplus/trunk/boost/boost/mpl/aux_/arg_typedef.hpp
dcplusplus/trunk/boost/boost/mpl/aux_/arithmetic_op.hpp
dcplusplus/trunk/boost/boost/mpl/aux_/arity.hpp
dcplusplus/trunk/boost/boost/mpl/aux_/arity_spec.hpp
dcplusplus/trunk/boost/boost/mpl/aux_/at_impl.hpp
dcplusplus/trunk/boost/boost/mpl/aux_/back_impl.hpp
dcplusplus/trunk/boost/boost/mpl/aux_/basic_bind.hpp
dcplusplus/trunk/boost/boost/mpl/aux_/begin_end_impl.hpp
dcplusplus/trunk/boost/boost/mpl/aux_/clear_impl.hpp
dcplusplus/trunk/boost/boost/mpl/aux_/common_name_wknd.hpp
dcplusplus/trunk/boost/boost/mpl/aux_/comparison_op.hpp
dcplusplus/trunk/boost/boost/mpl/aux_/config/
dcplusplus/trunk/boost/boost/mpl/aux_/config/adl.hpp
dcplusplus/trunk/boost/boost/mpl/aux_/config/arrays.hpp
dcplusplus/trunk/boost/boost/mpl/aux_/config/bind.hpp
dcplusplus/trunk/boost/boost/mpl/aux_/config/compiler.hpp
dcplusplus/trunk/boost/boost/mpl/aux_/config/ctps.hpp
dcplusplus/trunk/boost/boost/mpl/aux_/config/dependent_nttp.hpp
dcplusplus/trunk/boost/boost/mpl/aux_/config/dmc_ambiguous_ctps.hpp
dcplusplus/trunk/boost/boost/mpl/aux_/config/dtp.hpp
dcplusplus/trunk/boost/boost/mpl/aux_/config/eti.hpp
dcplusplus/trunk/boost/boost/mpl/aux_/config/forwarding.hpp
dcplusplus/trunk/boost/boost/mpl/aux_/config/gcc.hpp
dcplusplus/trunk/boost/boost/mpl/aux_/config/has_apply.hpp
dcplusplus/trunk/boost/boost/mpl/aux_/config/has_xxx.hpp
dcplusplus/trunk/boost/boost/mpl/aux_/config/integral.hpp
dcplusplus/trunk/boost/boost/mpl/aux_/config/intel.hpp
dcplusplus/trunk/boost/boost/mpl/aux_/config/lambda.hpp
dcplusplus/trunk/boost/boost/mpl/aux_/config/msvc.hpp
dcplusplus/trunk/boost/boost/mpl/aux_/config/msvc_typename.hpp
dcplusplus/trunk/boost/boost/mpl/aux_/config/nttp.hpp
dcplusplus/trunk/boost/boost/mpl/aux_/config/operators.hpp
dcplusplus/trunk/boost/boost/mpl/aux_/config/overload_resolution.hpp
dcplusplus/trunk/boost/boost/mpl/aux_/config/preprocessor.hpp
dcplusplus/trunk/boost/boost/mpl/aux_/config/static_constant.hpp
dcplusplus/trunk/boost/boost/mpl/aux_/config/ttp.hpp
dcplusplus/trunk/boost/boost/mpl/aux_/config/typeof.hpp
dcplusplus/trunk/boost/boost/mpl/aux_/config/use_preprocessed.hpp
dcplusplus/trunk/boost/boost/mpl/aux_/config/workaround.hpp
dcplusplus/trunk/boost/boost/mpl/aux_/contains_impl.hpp
dcplusplus/trunk/boost/boost/mpl/aux_/count_args.hpp
dcplusplus/trunk/boost/boost/mpl/aux_/count_impl.hpp
dcplusplus/trunk/boost/boost/mpl/aux_/empty_impl.hpp
dcplusplus/trunk/boost/boost/mpl/aux_/erase_impl.hpp
dcplusplus/trunk/boost/boost/mpl/aux_/erase_key_impl.hpp
dcplusplus/trunk/boost/boost/mpl/aux_/filter_iter.hpp
dcplusplus/trunk/boost/boost/mpl/aux_/find_if_pred.hpp
dcplusplus/trunk/boost/boost/mpl/aux_/fold_impl.hpp
dcplusplus/trunk/boost/boost/mpl/aux_/fold_impl_body.hpp
dcplusplus/trunk/boost/boost/mpl/aux_/fold_op.hpp
dcplusplus/trunk/boost/boost/mpl/aux_/fold_pred.hpp
dcplusplus/trunk/boost/boost/mpl/aux_/front_impl.hpp
dcplusplus/trunk/boost/boost/mpl/aux_/full_lambda.hpp
dcplusplus/trunk/boost/boost/mpl/aux_/has_apply.hpp
dcplusplus/trunk/boost/boost/mpl/aux_/has_begin.hpp
dcplusplus/trunk/boost/boost/mpl/aux_/has_key_impl.hpp
dcplusplus/trunk/boost/boost/mpl/aux_/has_rebind.hpp
dcplusplus/trunk/boost/boost/mpl/aux_/has_size.hpp
dcplusplus/trunk/boost/boost/mpl/aux_/has_tag.hpp
dcplusplus/trunk/boost/boost/mpl/aux_/has_type.hpp
dcplusplus/trunk/boost/boost/mpl/aux_/include_preprocessed.hpp
dcplusplus/trunk/boost/boost/mpl/aux_/insert_impl.hpp
dcplusplus/trunk/boost/boost/mpl/aux_/insert_range_impl.hpp
dcplusplus/trunk/boost/boost/mpl/aux_/inserter_algorithm.hpp
dcplusplus/trunk/boost/boost/mpl/aux_/integral_wrapper.hpp
dcplusplus/trunk/boost/boost/mpl/aux_/is_msvc_eti_arg.hpp
dcplusplus/trunk/boost/boost/mpl/aux_/iter_apply.hpp
dcplusplus/trunk/boost/boost/mpl/aux_/iter_fold_if_impl.hpp
dcplusplus/trunk/boost/boost/mpl/aux_/iter_fold_impl.hpp
dcplusplus/trunk/boost/boost/mpl/aux_/iter_push_front.hpp
dcplusplus/trunk/boost/boost/mpl/aux_/joint_iter.hpp
dcplusplus/trunk/boost/boost/mpl/aux_/lambda_arity_param.hpp
dcplusplus/trunk/boost/boost/mpl/aux_/lambda_no_ctps.hpp
dcplusplus/trunk/boost/boost/mpl/aux_/lambda_spec.hpp
dcplusplus/trunk/boost/boost/mpl/aux_/lambda_support.hpp
dcplusplus/trunk/boost/boost/mpl/aux_/largest_int.hpp
dcplusplus/trunk/boost/boost/mpl/aux_/logical_op.hpp
dcplusplus/trunk/boost/boost/mpl/aux_/msvc_dtw.hpp
dcplusplus/trunk/boost/boost/mpl/aux_/msvc_eti_base.hpp
dcplusplus/trunk/boost/boost/mpl/aux_/msvc_is_class.hpp
dcplusplus/trunk/boost/boost/mpl/aux_/msvc_never_true.hpp
dcplusplus/trunk/boost/boost/mpl/aux_/msvc_type.hpp
dcplusplus/trunk/boost/boost/mpl/aux_/na.hpp
dcplusplus/trunk/boost/boost/mpl/aux_/na_assert.hpp
dcplusplus/trunk/boost/boost/mpl/aux_/na_fwd.hpp
dcplusplus/trunk/boost/boost/mpl/aux_/na_spec.hpp
dcplusplus/trunk/boost/boost/mpl/aux_/nested_type_wknd.hpp
dcplusplus/trunk/boost/boost/mpl/aux_/nttp_decl.hpp
dcplusplus/trunk/boost/boost/mpl/aux_/numeric_cast_utils.hpp
dcplusplus/trunk/boost/boost/mpl/aux_/numeric_op.hpp
dcplusplus/trunk/boost/boost/mpl/aux_/order_impl.hpp
dcplusplus/trunk/boost/boost/mpl/aux_/overload_names.hpp
dcplusplus/trunk/boost/boost/mpl/aux_/partition_op.hpp
dcplusplus/trunk/boost/boost/mpl/aux_/pop_back_impl.hpp
dcplusplus/trunk/boost/boost/mpl/aux_/pop_front_impl.hpp
dcplusplus/trunk/boost/boost/mpl/aux_/preprocessed/
dcplusplus/trunk/boost/boost/mpl/aux_/preprocessed/bcc/
dcplusplus/trunk/boost/boost/mpl/aux_/preprocessed/bcc/advance_backward.hpp
dcplusplus/trunk/boost/boost/mpl/aux_/preprocessed/bcc/advance_forward.hpp
dcplusplus/trunk/boost/boost/mpl/aux_/preprocessed/bcc/and.hpp
dcplusplus/trunk/boost/boost/mpl/aux_/preprocessed/bcc/apply.hpp
dcplusplus/trunk/boost/boost/mpl/aux_/preprocessed/bcc/apply_fwd.hpp
dcplusplus/trunk/boost/boost/mpl/aux_/preprocessed/bcc/apply_wrap.hpp
dcplusplus/trunk/boost/boost/mpl/aux_/preprocessed/bcc/arg.hpp
dcplusplus/trunk/boost/boost/mpl/aux_/preprocessed/bcc/basic_bind.hpp
dcplusplus/trunk/boost/boost/mpl/aux_/preprocessed/bcc/bind.hpp
dcplusplus/trunk/boost/boost/mpl/aux_/preprocessed/bcc/bind_fwd.hpp
dcplusplus/trunk/boost/boost/mpl/aux_/preprocessed/bcc/bitand.hpp
dcplusplus/trunk/boost/boost/mpl/aux_/preprocessed/bcc/bitor.hpp
dcplusplus/trunk/boost/boost/mpl/aux_/preprocessed/bcc/bitxor.hpp
dcplusplus/trunk/boost/boost/mpl/aux_/preprocessed/bcc/deque.hpp
dcplusplus/trunk/boost/boost/mpl/aux_/preprocessed/bcc/divides.hpp
dcplusplus/trunk/boost/boost/mpl/aux_/preprocessed/bcc/equal_to.hpp
dcplusplus/trunk/boost/boost/mpl/aux_/preprocessed/bcc/fold_impl.hpp
dcplusplus/trunk/boost/boost/mpl/aux_/preprocessed/bcc/full_lambda.hpp
dcplusplus/trunk/boost/boost/mpl/aux_/preprocessed/bcc/greater.hpp
dcplusplus/trunk/boost/boost/mpl/aux_/preprocessed/bcc/greater_equal.hpp
dcplusplus/trunk/boost/boost/mpl/aux_/preprocessed/bcc/inherit.hpp
dcplusplus/trunk/boost/boost/mpl/aux_/preprocessed/bcc/iter_fold_if_impl.hpp
dcplusplus/trunk/boost/boost/mpl/aux_/preprocessed/bcc/iter_fold_impl.hpp
dcplusplus/trunk/boost/boost/mpl/aux_/preprocessed/bcc/lambda_no_ctps.hpp
dcplusplus/trunk/boost/boost/mpl/aux_/preprocessed/bcc/less.hpp
dcplusplus/trunk/boost/boost/mpl/aux_/preprocessed/bcc/less_equal.hpp
dcplusplus/trunk/boost/boost/mpl/aux_/preprocessed/bcc/list.hpp
dcplusplus/trunk/boost/boost/mpl/aux_/preprocessed/bcc/list_c.hpp
dcplusplus/trunk/boost/boost/mpl/aux_/preprocessed/bcc/map.hpp
dcplusplus/trunk/boost/boost/mpl/aux_/preprocessed/bcc/minus.hpp
dcplusplus/trunk/boost/boost/mpl/aux_/preprocessed/bcc/modulus.hpp
dcplusplus/trunk/boost/boost/mpl/aux_/preprocessed/bcc/not_equal_to.hpp
dcplusplus/trunk/boost/boost/mpl/aux_/preprocessed/bcc/or.hpp
dcplusplus/trunk/boost/boost/mpl/aux_/preprocessed/bcc/placeholders.hpp
dcplusplus/trunk/boost/boost/mpl/aux_/preprocessed/bcc/plus.hpp
dcplusplus/trunk/boost/boost/mpl/aux_/preprocessed/bcc/quote.hpp
dcplusplus/trunk/boost/boost/mpl/aux_/preprocessed/bcc/reverse_fold_impl.hpp
dcplusplus/trunk/boost/boost/mpl/aux_/preprocessed/bcc/reverse_iter_fold_impl.hpp
dcplusplus/trunk/boost/boost/mpl/aux_/preprocessed/bcc/set.hpp
dcplusplus/trunk/boost/boost/mpl/aux_/preprocessed/bcc/set_c.hpp
dcplusplus/trunk/boost/boost/mpl/aux_/preprocessed/bcc/shift_left.hpp
dcplusplus/trunk/boost/boost/mpl/aux_/preprocessed/bcc/shift_right.hpp
dcplusplus/trunk/boost/boost/mpl/aux_/preprocessed/bcc/template_arity.hpp
dcplusplus/trunk/boost/boost/mpl/aux_/preprocessed/bcc/times.hpp
dcplusplus/trunk/boost/boost/mpl/aux_/preprocessed/bcc/unpack_args.hpp
dcplusplus/trunk/boost/boost/mpl/aux_/preprocessed/bcc/vector.hpp
dcplusplus/trunk/boost/boost/mpl/aux_/preprocessed/bcc/vector_c.hpp
dcplusplus/trunk/boost/boost/mpl/aux_/preprocessed/bcc551/
dcplusplus/trunk/boost/boost/mpl/aux_/preprocessed/bcc551/advance_backward.hpp
dcplusplus/trunk/boost/boost/mpl/aux_/preprocessed/bcc551/advance_forward.hpp
dcplusplus/trunk/boost/boost/mpl/aux_/preprocessed/bcc551/and.hpp
dcplusplus/trunk/boost/boost/mpl/aux_/preprocessed/bcc551/apply.hpp
dcplusplus/trunk/boost/boost/mpl/aux_/preprocessed/bcc551/apply_fwd.hpp
dcplusplus/trunk/boost/boost/mpl/aux_/preprocessed/bcc551/apply_wrap.hpp
dcplusplus/trunk/boost/boost/mpl/aux_/preprocessed/bcc551/arg.hpp
dcplusplus/trunk/boost/boost/mpl/aux_/preprocessed/bcc551/basic_bind.hpp
dcplusplus/trunk/boost/boost/mpl/aux_/preprocessed/bcc551/bind.hpp
dcplusplus/trunk/boost/boost/mpl/aux_/preprocessed/bcc551/bind_fwd.hpp
dcplusplus/trunk/boost/boost/mpl/aux_/preprocessed/bcc551/bitand.hpp
dcplusplus/trunk/boost/boost/mpl/aux_/preprocessed/bcc551/bitor.hpp
dcplusplus/trunk/boost/boost/mpl/aux_/preprocessed/bcc551/bitxor.hpp
dcplusplus/trunk/boost/boost/mpl/aux_/preprocessed/bcc551/deque.hpp
dcplusplus/trunk/boost/boost/mpl/aux_/preprocessed/bcc551/divides.hpp
dcplusplus/trunk/boost/boost/mpl/aux_/preprocessed/bcc551/equal_to.hpp
dcplusplus/trunk/boost/boost/mpl/aux_/preprocessed/bcc551/fold_impl.hpp
dcplusplus/trunk/boost/boost/mpl/aux_/preprocessed/bcc551/full_lambda.hpp
dcplusplus/trunk/boost/boost/mpl/aux_/preprocessed/bcc551/greater.hpp
dcplusplus/trunk/boost/boost/mpl/aux_/preprocessed/bcc551/greater_equal.hpp
dcplusplus/trunk/boost/boost/mpl/aux_/preprocessed/bcc551/inherit.hpp
dcplusplus/trunk/boost/boost/mpl/aux_/preprocessed/bcc551/iter_fold_if_impl.hpp
dcplusplus/trunk/boost/boost/mpl/aux_/preprocessed/bcc551/iter_fold_impl.hpp
dcplusplus/trunk/boost/boost/mpl/aux_/preprocessed/bcc551/lambda_no_ctps.hpp
dcplusplus/trunk/boost/boost/mpl/aux_/preprocessed/bcc551/less.hpp
dcplusplus/trunk/boost/boost/mpl/aux_/preprocessed/bcc551/less_equal.hpp
dcplusplus/trunk/boost/boost/mpl/aux_/preprocessed/bcc551/list.hpp
dcplusplus/trunk/boost/boost/mpl/aux_/preprocessed/bcc551/list_c.hpp
dcplusplus/trunk/boost/boost/mpl/aux_/preprocessed/bcc551/map.hpp
dcplusplus/trunk/boost/boost/mpl/aux_/preprocessed/bcc551/minus.hpp
dcplusplus/trunk/boost/boost/mpl/aux_/preprocessed/bcc551/modulus.hpp
dcplusplus/trunk/boost/boost/mpl/aux_/preprocessed/bcc551/not_equal_to.hpp
dcplusplus/trunk/boost/boost/mpl/aux_/preprocessed/bcc551/or.hpp
dcplusplus/trunk/boost/boost/mpl/aux_/preprocessed/bcc551/placeholders.hpp
dcplusplus/trunk/boost/boost/mpl/aux_/preprocessed/bcc551/plus.hpp
dcplusplus/trunk/boost/boost/mpl/aux_/preprocessed/bcc551/quote.hpp
dcplusplus/trunk/boost/boost/mpl/aux_/preprocessed/bcc551/reverse_fold_impl.hpp
dcplusplus/trunk/boost/boost/mpl/aux_/preprocessed/bcc551/reverse_iter_fold_impl.hpp
dcplusplus/trunk/boost/boost/mpl/aux_/preprocessed/bcc551/set.hpp
dcplusplus/trunk/boost/boost/mpl/aux_/preprocessed/bcc551/set_c.hpp
dcplusplus/trunk/boost/boost/mpl/aux_/preprocessed/bcc551/shift_left.hpp
dcplusplus/trunk/boost/boost/mpl/aux_/preprocessed/bcc551/shift_right.hpp
dcplusplus/trunk/boost/boost/mpl/aux_/preprocessed/bcc551/template_arity.hpp
dcplusplus/trunk/boost/boost/mpl/aux_/preprocessed/bcc551/times.hpp
dcplusplus/trunk/boost/boost/mpl/aux_/preprocessed/bcc551/unpack_args.hpp
dcplusplus/trunk/boost/boost/mpl/aux_/preprocessed/bcc551/vector.hpp
dcplusplus/trunk/boost/boost/mpl/aux_/preprocessed/bcc551/vector_c.hpp
dcplusplus/trunk/boost/boost/mpl/aux_/preprocessed/dmc/
dcplusplus/trunk/boost/boost/mpl/aux_/preprocessed/dmc/advance_backward.hpp
dcplusplus/trunk/boost/boost/mpl/aux_/preprocessed/dmc/advance_forward.hpp
dcplusplus/trunk/boost/boost/mpl/aux_/preprocessed/dmc/and.hpp
dcplusplus/trunk/boost/boost/mpl/aux_/preprocessed/dmc/apply.hpp
dcplusplus/trunk/boost/boost/mpl/aux_/preprocessed/dmc/apply_fwd.hpp
dcplusplus/trunk/boost/boost/mpl/aux_/preprocessed/dmc/apply_wrap.hpp
dcplusplus/trunk/boost/boost/mpl/aux_/preprocessed/dmc/arg.hpp
dcplusplus/trunk/boost/boost/mpl/aux_/preprocessed/dmc/basic_bind.hpp
dcplusplus/trunk/boost/boost/mpl/aux_/preprocessed/dmc/bind.hpp
dcplusplus/trunk/boost/boost/mpl/aux_/preprocessed/dmc/bind_fwd.hpp
dcplusplus/trunk/boost/boost/mpl/aux_/preprocessed/dmc/bitand.hpp
dcplusplus/trunk/boost/boost/mpl/aux_/preprocessed/dmc/bitor.hpp
dcplusplus/trunk/boost/boost/mpl/aux_/preprocessed/dmc/bitxor.hpp
dcplusplus/trunk/boost/boost/mpl/aux_/preprocessed/dmc/deque.hpp
dcplusplus/trunk/boost/boost/mpl/aux_/preprocessed/dmc/divides.hpp
dcplusplus/trunk/boost/boost/mpl/aux_/preprocessed/dmc/equal_to.hpp
dcplusplus/trunk/boost/boost/mpl/aux_/preprocessed/dmc/fold_impl.hpp
dcplusplus/trunk/boost/boost/mpl/aux_/preprocessed/dmc/full_lambda.hpp
dcplusplus/trunk/boost/boost/mpl/aux_/preprocessed/dmc/greater.hpp
dcplusplus/trunk/boost/boost/mpl/aux_/preprocessed/dmc/greater_equal.hpp
dcplusplus/trunk/boost/boost/mpl/aux_/preprocessed/dmc/inherit.hpp
dcplusplus/trunk/boost/boost/mpl/aux_/preprocessed/dmc/iter_fold_if_impl.hpp
dcplusplus/trunk/boost/boost/mpl/aux_/preprocessed/dmc/iter_fold_impl.hpp
dcplusplus/trunk/boost/boost/mpl/aux_/preprocessed/dmc/lambda_no_ctps.hpp
dcplusplus/trunk/boost/boost/mpl/aux_/preprocessed/dmc/less.hpp
dcplusplus/trunk/boost/boost/mpl/aux_/preprocessed/dmc/less_equal.hpp
dcplusplus/trunk/boost/boost/mpl/aux_/preprocessed/dmc/list.hpp
dcplusplus/trunk/boost/boost/mpl/aux_/preprocessed/dmc/list_c.hpp
dcplusplus/trunk/boost/boost/mpl/aux_/preprocessed/dmc/map.hpp
dcplusplus/trunk/boost/boost/mpl/aux_/preprocessed/dmc/minus.hpp
dcplusplus/trunk/boost/boost/mpl/aux_/preprocessed/dmc/modulus.hpp
dcplusplus/trunk/boost/boost/mpl/aux_/preprocessed/dmc/not_equal_to.hpp
dcplusplus/trunk/boost/boost/mpl/aux_/preprocessed/dmc/or.hpp
dcplusplus/trunk/boost/boost/mpl/aux_/preprocessed/dmc/placeholders.hpp
dcplusplus/trunk/boost/boost/mpl/aux_/preprocessed/dmc/plus.hpp
dcplusplus/trunk/boost/boost/mpl/aux_/preprocessed/dmc/quote.hpp
dcplusplus/trunk/boost/boost/mpl/aux_/preprocessed/dmc/reverse_fold_impl.hpp
dcplusplus/trunk/boost/boost/mpl/aux_/preprocessed/dmc/reverse_iter_fold_impl.hpp
dcplusplus/trunk/boost/boost/mpl/aux_/preprocessed/dmc/set.hpp
dcplusplus/trunk/boost/boost/mpl/aux_/preprocessed/dmc/set_c.hpp
dcplusplus/trunk/boost/boost/mpl/aux_/preprocessed/dmc/shift_left.hpp
dcplusplus/trunk/boost/boost/mpl/aux_/preprocessed/dmc/shift_right.hpp
dcplusplus/trunk/boost/boost/mpl/aux_/preprocessed/dmc/template_arity.hpp
dcplusplus/trunk/boost/boost/mpl/aux_/preprocessed/dmc/times.hpp
dcplusplus/trunk/boost/boost/mpl/aux_/preprocessed/dmc/unpack_args.hpp
dcplusplus/trunk/boost/boost/mpl/aux_/preprocessed/dmc/vector.hpp
dcplusplus/trunk/boost/boost/mpl/aux_/preprocessed/dmc/vector_c.hpp
dcplusplus/trunk/boost/boost/mpl/aux_/preprocessed/gcc/
dcplusplus/trunk/boost/boost/mpl/aux_/preprocessed/gcc/advance_backward.hpp
dcplusplus/trunk/boost/boost/mpl/aux_/preprocessed/gcc/advance_forward.hpp
dcplusplus/trunk/boost/boost/mpl/aux_/preprocessed/gcc/and.hpp
dcplusplus/trunk/boost/boost/mpl/aux_/preprocessed/gcc/apply.hpp
dcplusplus/trunk/boost/boost/mpl/aux_/preprocessed/gcc/apply_fwd.hpp
dcplusplus/trunk/boost/boost/mpl/aux_/preprocessed/gcc/apply_wrap.hpp
dcplusplus/trunk/boost/boost/mpl/aux_/preprocessed/gcc/arg.hpp
dcplusplus/trunk/boost/boost/mpl/aux_/preprocessed/gcc/basic_bind.hpp
dcplusplus/trunk/boost/boost/mpl/aux_/preprocessed/gcc/bind.hpp
dcplusplus/trunk/boost/boost/mpl/aux_/preprocessed/gcc/bind_fwd.hpp
dcplusplus/trunk/boost/boost/mpl/aux_/preprocessed/gcc/bitand.hpp
dcplusplus/trunk/boost/boost/mpl/aux_/preprocessed/gcc/bitor.hpp
dcplusplus/trunk/boost/boost/mpl/aux_/preprocessed/gcc/bitxor.hpp
dcplusplus/trunk/boost/boost/mpl/aux_/preprocessed/gcc/deque.hpp
dcplusplus/trunk/boost/boost/mpl/aux_/preprocessed/gcc/divides.hpp
dcplusplus/trunk/boost/boost/mpl/aux_/preprocessed/gcc/equal_to.hpp
dcplusplus/trunk/boost/boost/mpl/aux_/preprocessed/gcc/fold_impl.hpp
dcplusplus/trunk/boost/boost/mpl/aux_/preprocessed/gcc/full_lambda.hpp
dcplusplus/trunk/boost/boost/mpl/aux_/preprocessed/gcc/greater.hpp
dcplusplus/trunk/boost/boost/mpl/aux_/preprocessed/gcc/greater_equal.hpp
dcplusplus/trunk/boost/boost/mpl/aux_/preprocessed/gcc/inherit.hpp
dcplusplus/trunk/boost/boost/mpl/aux_/preprocessed/gcc/iter_fold_if_impl.hpp
dcplusplus/trunk/boost/boost/mpl/aux_/preprocessed/gcc/iter_fold_impl.hpp
dcplusplus/trunk/boost/boost/mpl/aux_/preprocessed/gcc/lambda_no_ctps.hpp
dcplusplus/trunk/boost/boost/mpl/aux_/preprocessed/gcc/less.hpp
dcplusplus/trunk/boost/boost/mpl/aux_/preprocessed/gcc/less_equal.hpp
dcplusplus/trunk/boost/boost/mpl/aux_/preprocessed/gcc/list.hpp
dcplusplus/trunk/boost/boost/mpl/aux_/preprocessed/gcc/list_c.hpp
dcplusplus/trunk/boost/boost/mpl/aux_/preprocessed/gcc/map.hpp
dcplusplus/trunk/boost/boost/mpl/aux_/preprocessed/gcc/minus.hpp
dcplusplus/trunk/boost/boost/mpl/aux_/preprocessed/gcc/modulus.hpp
dcplusplus/trunk/boost/boost/mpl/aux_/preprocessed/gcc/not_equal_to.hpp
dcplusplus/trunk/boost/boost/mpl/aux_/preprocessed/gcc/or.hpp
dcplusplus/trunk/boost/boost/mpl/aux_/preprocessed/gcc/placeholders.hpp
dcplusplus/trunk/boost/boost/mpl/aux_/preprocessed/gcc/plus.hpp
dcplusplus/trunk/boost/boost/mpl/aux_/preprocessed/gcc/quote.hpp
dcplusplus/trunk/boost/boost/mpl/aux_/preprocessed/gcc/reverse_fold_impl.hpp
dcplusplus/trunk/boost/boost/mpl/aux_/preprocessed/gcc/reverse_iter_fold_impl.hpp
dcplusplus/trunk/boost/boost/mpl/aux_/preprocessed/gcc/set.hpp
dcplusplus/trunk/boost/boost/mpl/aux_/preprocessed/gcc/set_c.hpp
dcplusplus/trunk/boost/boost/mpl/aux_/preprocessed/gcc/shift_left.hpp
dcplusplus/trunk/boost/boost/mpl/aux_/preprocessed/gcc/shift_right.hpp
dcplusplus/trunk/boost/boost/mpl/aux_/preprocessed/gcc/template_arity.hpp
dcplusplus/trunk/boost/boost/mpl/aux_/preprocessed/gcc/times.hpp
dcplusplus/trunk/boost/boost/mpl/aux_/preprocessed/gcc/unpack_args.hpp
dcplusplus/trunk/boost/boost/mpl/aux_/preprocessed/gcc/vector.hpp
dcplusplus/trunk/boost/boost/mpl/aux_/preprocessed/gcc/vector_c.hpp
dcplusplus/trunk/boost/boost/mpl/aux_/preprocessed/msvc60/
dcplusplus/trunk/boost/boost/mpl/aux_/preprocessed/msvc60/advance_backward.hpp
dcplusplus/trunk/boost/boost/mpl/aux_/preprocessed/msvc60/advance_forward.hpp
dcplusplus/trunk/boost/boost/mpl/aux_/preprocessed/msvc60/and.hpp
dcplusplus/trunk/boost/boost/mpl/aux_/preprocessed/msvc60/apply.hpp
dcplusplus/trunk/boost/boost/mpl/aux_/preprocessed/msvc60/apply_fwd.hpp
dcplusplus/trunk/boost/boost/mpl/aux_/preprocessed/msvc60/apply_wrap.hpp
dcplusplus/trunk/boost/boost/mpl/aux_/preprocessed/msvc60/arg.hpp
dcplusplus/trunk/boost/boost/mpl/aux_/preprocessed/msvc60/basic_bind.hpp
dcplusplus/trunk/boost/boost/mpl/aux_/preprocessed/msvc60/bind.hpp
dcplusplus/trunk/boost/boost/mpl/aux_/preprocessed/msvc60/bind_fwd.hpp
dcplusplus/trunk/boost/boost/mpl/aux_/preprocessed/msvc60/bitand.hpp
dcplusplus/trunk/boost/boost/mpl/aux_/preprocessed/msvc60/bitor.hpp
dcplusplus/trunk/boost/boost/mpl/aux_/preprocessed/msvc60/bitxor.hpp
dcplusplus/trunk/boost/boost/mpl/aux_/preprocessed/msvc60/deque.hpp
dcplusplus/trunk/boost/boost/mpl/aux_/preprocessed/msvc60/divides.hpp
dcplusplus/trunk/boost/boost/mpl/aux_/preprocessed/msvc60/equal_to.hpp
dcplusplus/trunk/boost/boost/mpl/aux_/preprocessed/msvc60/fold_impl.hpp
dcplusplus/trunk/boost/boost/mpl/aux_/preprocessed/msvc60/full_lambda.hpp
dcplusplus/trunk/boost/boost/mpl/aux_/preprocessed/msvc60/greater.hpp
dcplusplus/trunk/boost/boost/mpl/aux_/preprocessed/msvc60/greater_equal.hpp
dcplusplus/trunk/boost/boost/mpl/aux_/preprocessed/msvc60/inherit.hpp
dcplusplus/trunk/boost/boost/mpl/aux_/preprocessed/msvc60/iter_fold_if_impl.hpp
dcplusplus/trunk/boost/boost/mpl/aux_/preprocessed/msvc60/iter_fold_impl.hpp
dcplusplus/trunk/boost/boost/mpl/aux_/preprocessed/msvc60/lambda_no_ctps.hpp
dcplusplus/trunk/boost/boost/mpl/aux_/preprocessed/msvc60/less.hpp
dcplusplus/trunk/boost/boost/mpl/aux_/preprocessed/msvc60/less_equal.hpp
dcplusplus/trunk/boost/boost/mpl/aux_/preprocessed/msvc60/list.hpp
dcplusplus/trunk/boost/boost/mpl/aux_/preprocessed/msvc60/list_c.hpp
dcplusplus/trunk/boost/boost/mpl/aux_/preprocessed/msvc60/map.hpp
dcplusplus/trunk/boost/boost/mpl/aux_/preprocessed/msvc60/minus.hpp
dcplusplus/trunk/boost/boost/mpl/aux_/preprocessed/msvc60/modulus.hpp
dcplusplus/trunk/boost/boost/mpl/aux_/preprocessed/msvc60/not_equal_to.hpp
dcplusplus/trunk/boost/boost/mpl/aux_/preprocessed/msvc60/or.hpp
dcplusplus/trunk/boost/boost/mpl/aux_/preprocessed/msvc60/placeholders.hpp
dcplusplus/trunk/boost/boost/mpl/aux_/preprocessed/msvc60/plus.hpp
dcplusplus/trunk/boost/boost/mpl/aux_/preprocessed/msvc60/quote.hpp
dcplusplus/trunk/boost/boost/mpl/aux_/preprocessed/msvc60/reverse_fold_impl.hpp
dcplusplus/trunk/boost/boost/mpl/aux_/preprocessed/msvc60/reverse_iter_fold_impl.hpp
dcplusplus/trunk/boost/boost/mpl/aux_/preprocessed/msvc60/set.hpp
dcplusplus/trunk/boost/boost/mpl/aux_/preprocessed/msvc60/set_c.hpp
dcplusplus/trunk/boost/boost/mpl/aux_/preprocessed/msvc60/shift_left.hpp
dcplusplus/trunk/boost/boost/mpl/aux_/preprocessed/msvc60/shift_right.hpp
dcplusplus/trunk/boost/boost/mpl/aux_/preprocessed/msvc60/template_arity.hpp
dcplusplus/trunk/boost/boost/mpl/aux_/preprocessed/msvc60/times.hpp
dcplusplus/trunk/boost/boost/mpl/aux_/preprocessed/msvc60/unpack_args.hpp
dcplusplus/trunk/boost/boost/mpl/aux_/preprocessed/msvc60/vector.hpp
dcplusplus/trunk/boost/boost/mpl/aux_/preprocessed/msvc60/vector_c.hpp
dcplusplus/trunk/boost/boost/mpl/aux_/preprocessed/msvc70/
dcplusplus/trunk/boost/boost/mpl/aux_/preprocessed/msvc70/advance_backward.hpp
dcplusplus/trunk/boost/boost/mpl/aux_/preprocessed/msvc70/advance_forward.hpp
dcplusplus/trunk/boost/boost/mpl/aux_/preprocessed/msvc70/and.hpp
dcplusplus/trunk/boost/boost/mpl/aux_/preprocessed/msvc70/apply.hpp
dcplusplus/trunk/boost/boost/mpl/aux_/preprocessed/msvc70/apply_fwd.hpp
dcplusplus/trunk/boost/boost/mpl/aux_/preprocessed/msvc70/apply_wrap.hpp
dcplusplus/trunk/boost/boost/mpl/aux_/preprocessed/msvc70/arg.hpp
dcplusplus/trunk/boost/boost/mpl/aux_/preprocessed/msvc70/basic_bind.hpp
dcplusplus/trunk/boost/boost/mpl/aux_/preprocessed/msvc70/bind.hpp
dcplusplus/trunk/boost/boost/mpl/aux_/preprocessed/msvc70/bind_fwd.hpp
dcplusplus/trunk/boost/boost/mpl/aux_/preprocessed/msvc70/bitand.hpp
dcplusplus/trunk/boost/boost/mpl/aux_/preprocessed/msvc70/bitor.hpp
dcplusplus/trunk/boost/boost/mpl/aux_/preprocessed/msvc70/bitxor.hpp
dcplusplus/trunk/boost/boost/mpl/aux_/preprocessed/msvc70/deque.hpp
dcplusplus/trunk/boost/boost/mpl/aux_/preprocessed/msvc70/divides.hpp
dcplusplus/trunk/boost/boost/mpl/aux_/preprocessed/msvc70/equal_to.hpp
dcplusplus/trunk/boost/boost/mpl/aux_/preprocessed/msvc70/fold_impl.hpp
dcplusplus/trunk/boost/boost/mpl/aux_/preprocessed/msvc70/full_lambda.hpp
dcplusplus/trunk/boost/boost/mpl/aux_/preprocessed/msvc70/greater.hpp
dcplusplus/trunk/boost/boost/mpl/aux_/preprocessed/msvc70/greater_equal.hpp
dcplusplus/trunk/boost/boost/mpl/aux_/preprocessed/msvc70/inherit.hpp
dcplusplus/trunk/boost/boost/mpl/aux_/preprocessed/msvc70/iter_fold_if_impl.hpp
dcplusplus/trunk/boost/boost/mpl/aux_/preprocessed/msvc70/iter_fold_impl.hpp
dcplusplus/trunk/boost/boost/mpl/aux_/preprocessed/msvc70/lambda_no_ctps.hpp
dcplusplus/trunk/boost/boost/mpl/aux_/preprocessed/msvc70/less.hpp
dcplusplus/trunk/boost/boost/mpl/aux_/preprocessed/msvc70/less_equal.hpp
dcplusplus/trunk/boost/boost/mpl/aux_/preprocessed/msvc70/list.hpp
dcplusplus/trunk/boost/boost/mpl/aux_/preprocessed/msvc70/list_c.hpp
dcplusplus/trunk/boost/boost/mpl/aux_/preprocessed/msvc70/map.hpp
dcplusplus/trunk/boost/boost/mpl/aux_/preprocessed/msvc70/minus.hpp
dcplusplus/trunk/boost/boost/mpl/aux_/preprocessed/msvc70/modulus.hpp
dcplusplus/trunk/boost/boost/mpl/aux_/preprocessed/msvc70/not_equal_to.hpp
dcplusplus/trunk/boost/boost/mpl/aux_/preprocessed/msvc70/or.hpp
dcplusplus/trunk/boost/boost/mpl/aux_/preprocessed/msvc70/placeholders.hpp
dcplusplus/trunk/boost/boost/mpl/aux_/preprocessed/msvc70/plus.hpp
dcplusplus/trunk/boost/boost/mpl/aux_/preprocessed/msvc70/quote.hpp
dcplusplus/trunk/boost/boost/mpl/aux_/preprocessed/msvc70/reverse_fold_impl.hpp
dcplusplus/trunk/boost/boost/mpl/aux_/preprocessed/msvc70/reverse_iter_fold_impl.hpp
dcplusplus/trunk/boost/boost/mpl/aux_/preprocessed/msvc70/set.hpp
dcplusplus/trunk/boost/boost/mpl/aux_/preprocessed/msvc70/set_c.hpp
dcplusplus/trunk/boost/boost/mpl/aux_/preprocessed/msvc70/shift_left.hpp
dcplusplus/trunk/boost/boost/mpl/aux_/preprocessed/msvc70/shift_right.hpp
dcplusplus/trunk/boost/boost/mpl/aux_/preprocessed/msvc70/template_arity.hpp
dcplusplus/trunk/boost/boost/mpl/aux_/preprocessed/msvc70/times.hpp
dcplusplus/trunk/boost/boost/mpl/aux_/preprocessed/msvc70/unpack_args.hpp
dcplusplus/trunk/boost/boost/mpl/aux_/preprocessed/msvc70/vector.hpp
dcplusplus/trunk/boost/boost/mpl/aux_/preprocessed/msvc70/vector_c.hpp
dcplusplus/trunk/boost/boost/mpl/aux_/preprocessed/mwcw/
dcplusplus/trunk/boost/boost/mpl/aux_/preprocessed/mwcw/advance_backward.hpp
dcplusplus/trunk/boost/boost/mpl/aux_/preprocessed/mwcw/advance_forward.hpp
dcplusplus/trunk/boost/boost/mpl/aux_/preprocessed/mwcw/and.hpp
dcplusplus/trunk/boost/boost/mpl/aux_/preprocessed/mwcw/apply.hpp
dcplusplus/trunk/boost/boost/mpl/aux_/preprocessed/mwcw/apply_fwd.hpp
dcplusplus/trunk/boost/boost/mpl/aux_/preprocessed/mwcw/apply_wrap.hpp
dcplusplus/trunk/boost/boost/mpl/aux_/preprocessed/mwcw/arg.hpp
dcplusplus/trunk/boost/boost/mpl/aux_/preprocessed/mwcw/basic_bind.hpp
dcplusplus/trunk/boost/boost/mpl/aux_/preprocessed/mwcw/bind.hpp
dcplusplus/trunk/boost/boost/mpl/aux_/preprocessed/mwcw/bind_fwd.hpp
dcplusplus/trunk/boost/boost/mpl/aux_/preprocessed/mwcw/bitand.hpp
dcplusplus/trunk/boost/boost/mpl/aux_/preprocessed/mwcw/bitor.hpp
dcplusplus/trunk/boost/boost/mpl/aux_/preprocessed/mwcw/bitxor.hpp
dcplusplus/trunk/boost/boost/mpl/aux_/preprocessed/mwcw/deque.hpp
dcplusplus/trunk/boost/boost/mpl/aux_/preprocessed/mwcw/divides.hpp
dcplusplus/trunk/boost/boost/mpl/aux_/preprocessed/mwcw/equal_to.hpp
dcplusplus/trunk/boost/boost/mpl/aux_/preprocessed/mwcw/fold_impl.hpp
dcplusplus/trunk/boost/boost/mpl/aux_/preprocessed/mwcw/full_lambda.hpp
dcplusplus/trunk/boost/boost/mpl/aux_/preprocessed/mwcw/greater.hpp
dcplusplus/trunk/boost/boost/mpl/aux_/preprocessed/mwcw/greater_equal.hpp
dcplusplus/trunk/boost/boost/mpl/aux_/preprocessed/mwcw/inherit.hpp
dcplusplus/trunk/boost/boost/mpl/aux_/preprocessed/mwcw/iter_fold_if_impl.hpp
dcplusplus/trunk/boost/boost/mpl/aux_/preprocessed/mwcw/iter_fold_impl.hpp
dcplusplus/trunk/boost/boost/mpl/aux_/preprocessed/mwcw/lambda_no_ctps.hpp
dcplusplus/trunk/boost/boost/mpl/aux_/preprocessed/mwc...
[truncated message content] |