1 //**************************************************************************************** 2 // 3 // File: ConfigView.h 4 // 5 // Written by: Daniel Switkin 6 // 7 // Copyright 1999, Be Incorporated 8 // 9 //**************************************************************************************** 10 11 #ifndef CONFIGVIEW_H 12 #define CONFIGVIEW_H 13 14 #include <interface/CheckBox.h> 15 #include <interface/RadioButton.h> 16 #include <interface/TextControl.h> 17 #include <interface/ColorControl.h> 18 #include "Prefs.h" 19 20 class RTColorControl : public BColorControl { 21 public: 22 RTColorControl(BPoint point, BMessage *message); 23 void SetValue(int32 color); 24 }; 25 26 class ConfigView : public BView { 27 public: 28 ConfigView(BRect rect, const char *name, int mode, Prefs *prefs); 29 void AttachedToWindow(); 30 void MessageReceived(BMessage *message); 31 void UpdateDeskbarIconWidth(); 32 33 private: 34 void ResetDefaults(); 35 bool first_time_attached; 36 int mode; 37 38 RTColorControl *colorcontrol; 39 // For Normal 40 BCheckBox *fadecolors; 41 // For Mini and Deskbar 42 BRadioButton *active, *idle, *frame; 43 // For Deskbar 44 BTextControl *iconwidth; 45 }; 46 47 #endif 48