/* * Copyright 2002-2007, Haiku. All rights reserved. * Distributed under the terms of the MIT License. * * Authors: * Andrew McCall * Mike Berg * Julun */ #include "Time.h" #include "TimeWindow.h" #include #include const char* kAppSignature = "application/x-vnd.Haiku-Time"; TimeApplication::TimeApplication() : BApplication(kAppSignature), fWindow(NULL) { fWindow = new TTimeWindow(BRect(100, 100, 570, 327)); } TimeApplication::~TimeApplication() { } void TimeApplication::ReadyToRun() { fWindow->Show(); } void TimeApplication::AboutRequested() { BAlert *alert = new BAlert("about", "Time & Date, writen by:\n\n\tAndrew Edward McCall\n\tMike Berg\n\t" "Julun\n\tPhilippe Saint-Pierre\n\nCopyright 2004-2008, Haiku.", "OK"); alert->Go(); } // #pragma mark - int main(int argc, char** argv) { TimeApplication app; setuid(0); app.Run(); return 0; }