Some style fixes

This commit is contained in:
John Scipione
2014-02-20 19:31:05 -05:00
parent 7204235793
commit 45b17fde13
5 changed files with 13 additions and 13 deletions
+1 -1
View File
@@ -52,7 +52,7 @@ public:
virtual const DesktopListenerList& GetDesktopListeners(); virtual const DesktopListenerList& GetDesktopListeners();
protected: protected:
virtual Decorator* _AllocateDecorator(DesktopSettings& settings, virtual Decorator* _AllocateDecorator(DesktopSettings& settings,
BRect rect); BRect rect);
DesktopListenerList fDesktopListeners; DesktopListenerList fDesktopListeners;
+8 -7
View File
@@ -294,7 +294,8 @@ Decorator::TabRect(Decorator::Tab* tab) const
Note that this does not update the button's look - it just updates the Note that this does not update the button's look - it just updates the
internal button value internal button value
\param is_down Whether the button is down or not \param tab The tab index
\param pressed Whether the button is down or not
*/ */
void void
Decorator::SetClose(int32 tab, bool pressed) Decorator::SetClose(int32 tab, bool pressed)
@@ -309,6 +310,7 @@ Decorator::SetClose(int32 tab, bool pressed)
} }
} }
/*! \brief Sets the minimize button's value. /*! \brief Sets the minimize button's value.
Note that this does not update the button's look - it just updates the Note that this does not update the button's look - it just updates the
@@ -619,17 +621,17 @@ Decorator::GetSettings(BMessage* settings) const
} }
/*! \brief Updates the decorator's look in the area \a rect /*! \brief Updates the decorator in the rectangular area \a updateRect.
The default version updates all areas which intersect the frame and tab. The default version updates all areas which intersect the frame and tab.
\param rect The area to update. \param updateRect The rectangular area to update.
*/ */
void void
Decorator::Draw(BRect rect) Decorator::Draw(BRect updateRect)
{ {
_DrawFrame(rect & fFrame); _DrawFrame(updateRect & fFrame);
_DrawTabs(rect & fTitleBarRect); _DrawTabs(updateRect & fTitleBarRect);
} }
@@ -748,7 +750,6 @@ Decorator::_DrawFrame(BRect rect)
} }
void void
Decorator::_DrawTabs(BRect rect) Decorator::_DrawTabs(BRect rect)
{ {
+1 -1
View File
@@ -155,7 +155,7 @@ public:
BRegion* updateRegion = NULL); BRegion* updateRegion = NULL);
virtual bool GetSettings(BMessage* settings) const; virtual bool GetSettings(BMessage* settings) const;
virtual void Draw(BRect rect); virtual void Draw(BRect updateRect);
virtual void Draw(); virtual void Draw();
virtual void DrawClose(int32 tab); virtual void DrawClose(int32 tab);
virtual void DrawMinimize(int32 tab); virtual void DrawMinimize(int32 tab);
@@ -721,8 +721,7 @@ DefaultDecorator::_DrawFrame(BRect invalid)
fDrawingEngine->StrokeLine(BPoint(r.left + i, r.top + i), fDrawingEngine->StrokeLine(BPoint(r.left + i, r.top + i),
BPoint(r.right - i, r.top + i), colors[i * 2]); BPoint(r.right - i, r.top + i), colors[i * 2]);
} }
if (fTitleBarRect.IsValid() if (fTitleBarRect.IsValid() && fTopTab->look != kLeftTitledWindowLook) {
&& fTopTab->look != kLeftTitledWindowLook) {
// grey along the bottom of the tab // grey along the bottom of the tab
// (overwrites "white" from frame) // (overwrites "white" from frame)
fDrawingEngine->StrokeLine( fDrawingEngine->StrokeLine(
@@ -1436,7 +1435,7 @@ DefaultDecorator::_GetFootprint(BRegion *region)
// This function calculates the decorator's footprint in coordinates // This function calculates the decorator's footprint in coordinates
// relative to the view. This is most often used to set a Window // relative to the view. This is most often used to set a Window
// object's visible region. // object's visible region.
if (!region) if (region == NULL)
return; return;
region->MakeEmpty(); region->MakeEmpty();
+1 -1
View File
@@ -141,7 +141,7 @@ protected:
virtual bool _SetSettings(const BMessage& settings, virtual bool _SetSettings(const BMessage& settings,
BRegion* updateRegion = NULL); BRegion* updateRegion = NULL);
virtual bool _AddTab(DesktopSettings& settings, virtual bool _AddTab(DesktopSettings& settings,
int32 index = -1, int32 index = -1,
BRegion* updateRegion = NULL); BRegion* updateRegion = NULL);
virtual bool _RemoveTab(int32 index, virtual bool _RemoveTab(int32 index,