PrefGeneral.h 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  1. /*
  2. * The contents of this file are subject to the Mozilla Public
  3. * License Version 1.1 (the "License"); you may not use this file
  4. * except in compliance with the License. You may obtain a copy of
  5. * the License at http://www.mozilla.org/MPL/
  6. *
  7. * Software distributed under the License is distributed on an "AS
  8. * IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
  9. * implied. See the License for the specific language governing
  10. * rights and limitations under the License.
  11. *
  12. * The Original Code is Vision.
  13. *
  14. * The Initial Developer of the Original Code is The Vision Team.
  15. * Portions created by The Vision Team are
  16. * Copyright (C) 1999, 2000, 2001 The Vision Team. All Rights
  17. * Reserved.
  18. *
  19. * Contributor(s): Rene Gollent
  20. */
  21. #ifndef _PREFGENERAL_H
  22. #define _PREFGENERAL_H
  23. #include <View.h>
  24. class BListView;
  25. class BBox;
  26. class GeneralPrefsView : public BView
  27. {
  28. enum PrefsItems
  29. {
  30. piAlias = 0,
  31. piWindow,
  32. piColor,
  33. piFonts,
  34. piCommands,
  35. piEvents,
  36. piDCC,
  37. piLog,
  38. piEND
  39. };
  40. public:
  41. GeneralPrefsView (BRect, const char *, uint32, uint32);
  42. virtual ~GeneralPrefsView (void);
  43. virtual void MessageReceived (BMessage *);
  44. virtual void AttachedToWindow (void);
  45. virtual void AllAttached (void);
  46. virtual void Show (void);
  47. private:
  48. BListView *fPrefsList;
  49. BBox *fPrefsBox;
  50. BView *fPrefsItems[piEND];
  51. int32 fLastindex;
  52. };
  53. #endif // _PREFGENERAL_H