← Back to team overview

linuxdcpp-team team mailing list archive

[Branch ~dcplusplus-team/dcplusplus/trunk] Rev 2217: tab setting changes

 

------------------------------------------------------------
revno: 2217
committer: poy <poy@xxxxxxxxxx>
branch nick: repo
timestamp: Sun 2010-08-29 14:27:09 +0200
message:
  tab setting changes
modified:
  dcpp/SettingsManager.cpp
  win32/MainWindow.cpp
  win32/TabsPage.cpp


--
lp:dcplusplus
https://code.launchpad.net/~dcplusplus-team/dcplusplus/trunk

Your team Dcplusplus-team is subscribed to branch lp:dcplusplus.
To unsubscribe from this branch go to https://code.launchpad.net/~dcplusplus-team/dcplusplus/trunk/+edit-subscription
=== modified file 'dcpp/SettingsManager.cpp'
--- dcpp/SettingsManager.cpp	2010-08-23 16:04:27 +0000
+++ dcpp/SettingsManager.cpp	2010-08-29 12:27:09 +0000
@@ -291,7 +291,7 @@
 	setDefault(SEARCH_MERGE, true);
 	setDefault(TOOLBAR_SIZE, 20);
 	setDefault(TAB_WIDTH, 150);
-	setDefault(TAB_STYLE, TAB_STYLE_OD);
+	setDefault(TAB_STYLE, TAB_STYLE_OD | TAB_STYLE_BROWSER);
 	setDefault(TRANSFERS_PANED_POS, .7);
 	setDefault(QUEUE_PANED_POS, .3);
 	setDefault(SEARCH_PANED_POS, .2);

=== modified file 'win32/MainWindow.cpp'
--- win32/MainWindow.cpp	2010-08-25 19:00:50 +0000
+++ win32/MainWindow.cpp	2010-08-29 12:27:09 +0000
@@ -462,7 +462,7 @@
 			seed.tabStyle = TabView::Seed::WinBrowser;
 	} else {
 		seed.style &= ~TCS_OWNERDRAWFIXED;
-		seed.widthConfig -= 100; // max width to max chars
+		seed.widthConfig = (seed.widthConfig - 100) / 9; // max width to max chars
 	}
 	if(SETTING(TAB_STYLE) & SettingsManager::TAB_STYLE_BUTTONS)
 		seed.style |= TCS_BUTTONS;

=== modified file 'win32/TabsPage.cpp'
--- win32/TabsPage.cpp	2010-08-11 21:26:57 +0000
+++ win32/TabsPage.cpp	2010-08-29 12:27:09 +0000
@@ -177,7 +177,7 @@
 			seed.tabStyle = TabView::Seed::WinBrowser;
 	} else {
 		seed.style &= ~TCS_OWNERDRAWFIXED;
-		seed.widthConfig -= 100; // max width to max chars
+		seed.widthConfig = (seed.widthConfig - 100) / 9; // max width to max chars
 	}
 	if(buttonStyle->getChecked())
 		seed.style |= TCS_BUTTONS;