/* * Copyright 2009 Haiku, Inc. * All Rights Reserved. Distributed under the terms of the MIT License. */ #ifndef _PREFERENCES_WINDOW_H #define _PREFERENCES_WINDOW_H #include #include #include #include #include #include #include const uint32 kConfigShow = 'show'; const uint32 kConfigClose = 'canc'; const uint32 kUpdateRecentCounts = 'upct'; const uint32 kEditMenuInTracker = 'mtrk'; const uint32 kStateChanged = 'stch'; class PreferencesWindow : public BWindow { public: PreferencesWindow(BRect frame); ~PreferencesWindow(); virtual void MessageReceived(BMessage* message); virtual void WindowActivated(bool active); private: void _UpdateRecentCounts(); void _EnableDisableDependentItems(); BBox* fMenuBox; BBox* fAppsBox; BBox* fClockBox; BBox* fWindowBox; BCheckBox* fMenuRecentDocuments; BCheckBox* fMenuRecentApplications; BCheckBox* fMenuRecentFolders; BTextControl* fMenuRecentDocumentCount; BTextControl* fMenuRecentApplicationCount; BTextControl* fMenuRecentFolderCount; BCheckBox* fAppsSort; BCheckBox* fAppsSortTrackerFirst; BCheckBox* fAppsShowExpanders; BCheckBox* fAppsExpandNew; BCheckBox* fClockSeconds; BCheckBox* fWindowAlwaysOnTop; BCheckBox* fWindowAutoRaise; BCheckBox* fWindowAutoHide; }; #endif // _PREFERENCES_WINDOW_H