* make the panel font sensitve within the possible plain font range git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@22633 a95241bf-73f2-0310-859d-f6bbb57e9c96
54 lines
1.0 KiB
C++
54 lines
1.0 KiB
C++
/*
|
|
* Copyright 2004-2007, Haiku, Inc. All Rights Reserved.
|
|
* Distributed under the terms of the MIT License.
|
|
*
|
|
* Authors:
|
|
* Andrew McCall <mccall@@digitalparadise.co.uk>
|
|
* Mike Berg <[email protected]>
|
|
* Julun <[email protected]>
|
|
*/
|
|
#ifndef DATE_TIME_VIEW_H
|
|
#define DATE_TIME_VIEW_H
|
|
|
|
|
|
#include <View.h>
|
|
|
|
|
|
class TDateEdit;
|
|
class TTimeEdit;
|
|
class BCalendarView;
|
|
class BRadioButton;
|
|
class TAnalogClock;
|
|
|
|
|
|
class DateTimeView : public BView {
|
|
public:
|
|
DateTimeView(BRect frame);
|
|
virtual ~DateTimeView();
|
|
|
|
virtual void AttachedToWindow();
|
|
virtual void Draw(BRect updaterect);
|
|
virtual void MessageReceived(BMessage *message);
|
|
|
|
private:
|
|
void _InitView();
|
|
void _ReadRTCSettings();
|
|
void _WriteRTCSettings();
|
|
void _UpdateGmtSettings();
|
|
void _UpdateDateTime(BMessage *message);
|
|
|
|
private:
|
|
BRadioButton *fLocalTime;
|
|
BRadioButton *fGmtTime;
|
|
TDateEdit *fDateEdit;
|
|
TTimeEdit *fTimeEdit;
|
|
BCalendarView *fCalendarView;
|
|
TAnalogClock *fClock;
|
|
|
|
bool fUseGmtTime;
|
|
bool fInitialized;
|
|
};
|
|
|
|
#endif // DATE_TIME_VIEW_H
|
|
|