Author: mmadia Date: 2010-06-03 02:06:48 +0200 (Thu, 03 Jun 2010) New Revision: 37002 Changeset: http://dev.haiku-os.org/changeset/37002/haiku Modified: haiku/trunk/src/apps/fontdemo/ControlView.cpp haiku/trunk/src/apps/fontdemo/ControlView.h haiku/trunk/src/apps/fontdemo/FontDemo.cpp haiku/trunk/src/apps/fontdemo/FontDemo.rdef haiku/trunk/src/apps/fontdemo/FontDemoView.h Log: Automatic whitespace cleanup. No functional change. Modified: haiku/trunk/src/apps/fontdemo/ControlView.cpp =================================================================== --- haiku/trunk/src/apps/fontdemo/ControlView.cpp 2010-06-02 21:22:04 UTC (rev 37001) +++ haiku/trunk/src/apps/fontdemo/ControlView.cpp 2010-06-03 00:06:48 UTC (rev 37002) @@ -60,7 +60,7 @@ { BRect rect(Bounds()); rect.InsetBySelf(10, 0); - rect.bottom = rect.top + 18; + rect.bottom = rect.top + 18; rect.OffsetBy(0, 11); float offsetX = 0; @@ -112,10 +112,10 @@ new BMessage(ALIASING_MSG)); fAliasingCheckBox->SetValue(B_CONTROL_ON); AddChild(fAliasingCheckBox); - + rect.OffsetBy(0.0, offsetX); fDrawingModeMenu = new BMenu("drawingmodemenu"); - + BMessage* drawingMsg = NULL; drawingMsg = new BMessage(DRAWINGMODE_CHANGED_MSG); drawingMsg->AddInt32("_mode", B_OP_COPY); @@ -151,9 +151,9 @@ drawingMsg = new BMessage(DRAWINGMODE_CHANGED_MSG); drawingMsg->AddInt32("_mode", B_OP_ALPHA); fDrawingModeMenu->AddItem(new BMenuItem("B_OP_ALPHA", drawingMsg)); - + fDrawingModeMenu->SetLabelFromMarked(true); - + BMenuField *drawingModeMenuField = new BMenuField(rect, "FontMenuField", "Drawing mode:", fDrawingModeMenu, true); drawingModeMenuField->SetDivider(5+StringWidth("Drawing mode:")); AddChild(drawingModeMenuField); @@ -190,7 +190,7 @@ SetHighColor(tint_color(ViewColor(), B_DARKEN_2_TINT)); StrokeLine(rect.LeftBottom(), rect.RightBottom()); - StrokeLine(rect.RightBottom(), rect.RightTop()); + StrokeLine(rect.RightBottom(), rect.RightTop()); } @@ -266,7 +266,7 @@ fMessenger->SendMessage(&msg); break; } - + case ALIASING_MSG: { BMessage msg(ALIASING_MSG); @@ -319,7 +319,7 @@ } case CYCLING_FONTS_UPDATE_MSG: - { + { int32 familyindex = -1; BMenuItem* currentFamilyItem = fFontFamilyMenu->FindMarked(); @@ -403,7 +403,7 @@ familyMsg->AddString("_family", fontFamilyName); BMenuItem* familyItem = new BMenuItem(stylemenu, familyMsg); fFontFamilyMenu->AddItem(familyItem); - + for (int32 j = 0; j < styles; j++) { if (get_font_style(fontFamilyName, j, &fontStyleName) == B_OK) { BMessage* fontMsg = new BMessage(FONTSTYLE_CHANGED_MSG); @@ -538,7 +538,7 @@ if (submenu) { BMenuItem* marked = submenu->FindMarked(); if (marked) - marked->SetMarked(false); + marked->SetMarked(false); } } } Modified: haiku/trunk/src/apps/fontdemo/ControlView.h =================================================================== --- haiku/trunk/src/apps/fontdemo/ControlView.h 2010-06-02 21:22:04 UTC (rev 37001) +++ haiku/trunk/src/apps/fontdemo/ControlView.h 2010-06-03 00:06:48 UTC (rev 37002) @@ -56,7 +56,7 @@ BButton* fCyclingFontButton; BMenu* fFontFamilyMenu; BMenu* fDrawingModeMenu; - bool fCycleFonts; + bool fCycleFonts; int32 fFontStyleindex; }; Modified: haiku/trunk/src/apps/fontdemo/FontDemo.cpp =================================================================== --- haiku/trunk/src/apps/fontdemo/FontDemo.cpp 2010-06-02 21:22:04 UTC (rev 37001) +++ haiku/trunk/src/apps/fontdemo/FontDemo.cpp 2010-06-03 00:06:48 UTC (rev 37002) @@ -33,7 +33,7 @@ controlView->SetTarget(demoView); - demoWindow->Show(); + demoWindow->Show(); controlWindow->Show(); } @@ -46,7 +46,7 @@ void FontDemo::ReadyToRun() { - + } Modified: haiku/trunk/src/apps/fontdemo/FontDemo.rdef =================================================================== --- haiku/trunk/src/apps/fontdemo/FontDemo.rdef 2010-06-02 21:22:04 UTC (rev 37001) +++ haiku/trunk/src/apps/fontdemo/FontDemo.rdef 2010-06-03 00:06:48 UTC (rev 37002) @@ -2,7 +2,7 @@ resource app_signature "application/x-vnd.Haiku-FontDemo"; resource app_version { - major = 1, + major = 1, middle = 0, minor = 0, Modified: haiku/trunk/src/apps/fontdemo/FontDemoView.h =================================================================== --- haiku/trunk/src/apps/fontdemo/FontDemoView.h 2010-06-02 21:22:04 UTC (rev 37001) +++ haiku/trunk/src/apps/fontdemo/FontDemoView.h 2010-06-03 00:06:48 UTC (rev 37002) @@ -57,7 +57,7 @@ BBitmap* fBitmap; BView* fBufferView; - + char* fString; float fFontSize; float fSpacing;