patch from [Beta]

additionally: corner debug output removed unless DEBUG is defined


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13116 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Jérôme Duval
2005-06-14 13:47:14 +00:00
parent 494301a5aa
commit aa486def43
2 changed files with 16 additions and 15 deletions
@@ -5,6 +5,7 @@
*/ */
#include <Application.h> #include <Application.h>
#include <Debug.h>
#include <FindDirectory.h> #include <FindDirectory.h>
#include <File.h> #include <File.h>
#include <Path.h> #include <Path.h>
@@ -54,7 +55,7 @@ DataTranslationsSettings::~DataTranslationsSettings()
if (file.InitCheck() == B_OK) { if (file.InitCheck() == B_OK) {
file.Seek(-8,SEEK_END); // Skip over the first 497 bytes to just the window file.Seek(-8,SEEK_END); // Skip over the first 497 bytes to just the window
// position. // position.
fCorner.PrintToStream(); PRINT_OBJECT(fCorner);
file.Write(&fCorner, sizeof(BPoint)); file.Write(&fCorner, sizeof(BPoint));
} }
} }
@@ -16,7 +16,7 @@
DataTranslationsWindow::DataTranslationsWindow() DataTranslationsWindow::DataTranslationsWindow()
: BWindow(BRect(0, 0, DTW_RIGHT, DTW_BOTTOM), : BWindow(BRect(0, 0, DTW_RIGHT, DTW_BOTTOM),
"DataTranslations", B_TITLED_WINDOW, B_NOT_ZOOMABLE) "DataTranslations", B_TITLED_WINDOW, B_NOT_ZOOMABLE|B_NOT_RESIZABLE)
{ {
MoveTo(dynamic_cast<DataTranslationsApplication *>(be_app)->WindowCorner()); MoveTo(dynamic_cast<DataTranslationsApplication *>(be_app)->WindowCorner());
@@ -198,7 +198,7 @@ DataTranslationsWindow::SetupViews()
BRect tranNameRect(iconRect.right + 5, iconRect.top, BRect tranNameRect(iconRect.right + 5, iconRect.top,
infoRect.left - 5, iconRect.bottom); infoRect.left - 5, iconRect.bottom);
fTranNameView = new BStringView(tranNameRect, "TranName", "None", fTranNameView = new BStringView(tranNameRect, "TranName", "None",
B_FOLLOW_LEFT | B_FOLLOW_BOTTOM); B_FOLLOW_LEFT | B_FOLLOW_V_CENTER);
fRightBox->AddChild(fTranNameView); fRightBox->AddChild(fTranNameView);
// Add the translators list view // Add the translators list view
@@ -246,7 +246,7 @@ DataTranslationsWindow::MessageReceived(BMessage *message)
if (selected < 0) { if (selected < 0) {
// If no translator is selected, show a message explaining // If no translator is selected, show a message explaining
// what the config panel is for // what the config panel is for
(new BAlert("yo!", (new BAlert("Panel Info",
"Translation Settings\n\n" "Translation Settings\n\n"
"Use this control panel to set values that various\n" "Use this control panel to set values that various\n"
"translators use when no other settings are specified\n" "translators use when no other settings are specified\n"
@@ -271,7 +271,7 @@ DataTranslationsWindow::MessageReceived(BMessage *message)
strInfoMsg << "\nInfo: " << tranInfo << strInfoMsg << "\nInfo: " << tranInfo <<
"\nPath: " << tranPath.Path() << "\n"; "\nPath: " << tranPath.Path() << "\n";
(new BAlert("yo!", strInfoMsg.String(), "OK"))->Go(); (new BAlert("Panel Info", strInfoMsg.String(), "OK"))->Go();
break; break;
case SEL_CHANGE: case SEL_CHANGE: