All New Code by Michael Berg.

The clock and calendar work.  The Zone list is mostly there.  I haven't gotten it to apply changes yet, and the second timezone time view isn't updated.  It is almost a bit copy of the original, I couldn't work out some of the positioning.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@7431 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Phil Greenway
2004-05-06 12:55:26 +00:00
parent 3211ef3088
commit b66afdfa2d
24 changed files with 2444 additions and 409 deletions
+5 -4
View File
@@ -12,7 +12,7 @@
TimeView::TimeView(BRect rect)
: BBox(rect, "time_view",
B_FOLLOW_ALL, B_WILL_DRAW | B_FRAME_EVENTS | B_NAVIGABLE_JUMP,
B_FOLLOW_ALL, B_FRAME_EVENTS | B_NAVIGABLE_JUMP,
B_PLAIN_BORDER)
{
BTabView *fTabView;
@@ -24,12 +24,13 @@ TimeView::TimeView(BRect rect)
SetViewColor(ui_color(B_PANEL_BACKGROUND_COLOR));
frame = Bounds();
frame.top = 100;
fTabView = new BTabView(frame,"tab_view");
// Settings Tab...
fTab = new BTab();
fView = new BView(BRect(fTabView->Bounds()),"settings_view",B_FOLLOW_ALL,
fView = new BView(BRect(fTabView->Bounds().InsetByCopy(10, 10)),"settings_view",B_FOLLOW_ALL,
B_WILL_DRAW | B_FRAME_EVENTS | B_NAVIGABLE_JUMP);
fView->SetViewColor(ui_color(B_PANEL_BACKGROUND_COLOR));
fTabView->AddTab(fView,fTab);
@@ -37,7 +38,7 @@ TimeView::TimeView(BRect rect)
// Time Zone Tab...
fTab = new BTab();
fView = new BView(BRect(fTabView->Bounds()),"time_zone_view",B_FOLLOW_ALL,
fView = new BView(BRect(fTabView->Bounds().InsetByCopy(10, 10)),"time_zone_view",B_FOLLOW_ALL,
B_WILL_DRAW | B_FRAME_EVENTS | B_NAVIGABLE_JUMP);
fView->SetViewColor(ui_color(B_PANEL_BACKGROUND_COLOR));
fTabView->AddTab(fView,fTab);