webwatch: Style cleanup
This commit is contained in:
@@ -26,14 +26,12 @@
|
||||
#include "WatchApp.h"
|
||||
#include "WatchView.h"
|
||||
|
||||
///////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
BView* instantiate_deskbar_item()
|
||||
{
|
||||
return new WatchView;
|
||||
}
|
||||
|
||||
///////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
WatchApp::WatchApp() : BApplication(APP_SIGNATURE)
|
||||
{
|
||||
@@ -56,7 +54,6 @@ WatchApp::WatchApp() : BApplication(APP_SIGNATURE)
|
||||
PostMessage(B_QUIT_REQUESTED);
|
||||
}
|
||||
|
||||
///////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
int main()
|
||||
{
|
||||
@@ -65,4 +62,3 @@ int main()
|
||||
return 0;
|
||||
}
|
||||
|
||||
///////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
@@ -36,7 +36,6 @@
|
||||
|
||||
const rgb_color COLOR_FOREGROUND = { 0, 0, 0 };
|
||||
|
||||
///////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
WatchView::WatchView()
|
||||
:
|
||||
@@ -44,7 +43,6 @@ WatchView::WatchView()
|
||||
{
|
||||
}
|
||||
|
||||
///////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
WatchView::WatchView(BMessage* message)
|
||||
: BView(
|
||||
@@ -66,7 +64,6 @@ WatchView::WatchView(BMessage* message)
|
||||
SetViewColor(B_TRANSPARENT_COLOR);
|
||||
}
|
||||
|
||||
///////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
WatchView* WatchView::Instantiate(BMessage* archive)
|
||||
{
|
||||
@@ -78,7 +75,6 @@ WatchView* WatchView::Instantiate(BMessage* archive)
|
||||
return NULL;
|
||||
}
|
||||
|
||||
///////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
status_t WatchView::Archive(BMessage* archive, bool deep) const
|
||||
{
|
||||
@@ -90,7 +86,6 @@ status_t WatchView::Archive(BMessage* archive, bool deep) const
|
||||
return B_OK;
|
||||
}
|
||||
|
||||
///////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
void WatchView::Draw(BRect updateRect)
|
||||
{
|
||||
@@ -116,7 +111,6 @@ void WatchView::Draw(BRect updateRect)
|
||||
DrawString(string, BPoint(x, y));
|
||||
}
|
||||
|
||||
///////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
void WatchView::MouseDown(BPoint point)
|
||||
{
|
||||
@@ -137,7 +131,6 @@ void WatchView::MouseDown(BPoint point)
|
||||
delete menu;
|
||||
}
|
||||
|
||||
///////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
void WatchView::MessageReceived(BMessage* msg)
|
||||
{
|
||||
@@ -149,7 +142,6 @@ void WatchView::MessageReceived(BMessage* msg)
|
||||
}
|
||||
}
|
||||
|
||||
///////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
void WatchView::OnAboutRequested()
|
||||
{
|
||||
@@ -164,7 +156,6 @@ void WatchView::OnAboutRequested()
|
||||
alert->Go(NULL);
|
||||
}
|
||||
|
||||
///////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
void WatchView::OnQuitRequested()
|
||||
{
|
||||
@@ -177,7 +168,6 @@ void WatchView::OnQuitRequested()
|
||||
deskbar.RemoveItem(DESKBAR_ITEM_NAME);
|
||||
}
|
||||
|
||||
///////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
void WatchView::Pulse()
|
||||
{
|
||||
@@ -189,7 +179,6 @@ void WatchView::Pulse()
|
||||
}
|
||||
}
|
||||
|
||||
///////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
int32 WatchView::GetInternetTime()
|
||||
{
|
||||
@@ -202,4 +191,3 @@ int32 WatchView::GetInternetTime()
|
||||
return (int32) (((real_time_clock() + 3600) % 86400) / 86.4);
|
||||
}
|
||||
|
||||
///////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
Reference in New Issue
Block a user