ClientWindowDock.h 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115
  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): Wade Majors <wade@ezri.org>
  20. * Rene Gollent
  21. */
  22. #ifndef _CLIENTWINDOWDOCK_H_
  23. #define _CLIENTWINDOWDOCK_H_
  24. #include <View.h>
  25. #include <StringView.h>
  26. class NotifyList;
  27. class WindowList;
  28. class BScrollView;
  29. class AgentDockHeaderString : public BStringView
  30. {
  31. public:
  32. AgentDockHeaderString (BRect, const char *);
  33. virtual ~AgentDockHeaderString (void);
  34. virtual void MouseMoved (BPoint, uint32, const BMessage *);
  35. virtual void MouseDown (BPoint);
  36. virtual void MouseUp (BPoint);
  37. };
  38. class AgentDockHeader : public BView
  39. {
  40. public:
  41. AgentDockHeader (BRect, const char *, uint32);
  42. virtual ~AgentDockHeader (void);
  43. private:
  44. AgentDockHeaderString *fHeaderView;
  45. };
  46. class AgentDockWinList : public BView
  47. {
  48. public:
  49. AgentDockWinList (BRect);
  50. virtual ~AgentDockWinList (void);
  51. WindowList *pWindowList (void) const;
  52. private:
  53. WindowList *fWinList;
  54. BScrollView *fWinListScroll;
  55. AgentDockHeader *fAHeader;
  56. };
  57. class AgentDockNotifyList : public BView
  58. {
  59. public:
  60. AgentDockNotifyList (BRect);
  61. virtual ~AgentDockNotifyList (void);
  62. NotifyList *pNotifyList (void) const;
  63. virtual void AllAttached(void);
  64. private:
  65. AgentDockHeader *fAHeader;
  66. NotifyList *fNotifyList;
  67. BScrollView *fNotifyScroll;
  68. };
  69. class ClientWindowDock : public BView
  70. {
  71. public:
  72. ClientWindowDock (BRect);
  73. virtual ~ClientWindowDock (void);
  74. void AddWinList (void);
  75. void AddNotifyList (void);
  76. WindowList *pWindowList (void) const;
  77. NotifyList *pNotifyList (void) const;
  78. virtual void AllAttached (void);
  79. virtual void MessageReceived (BMessage *);
  80. private:
  81. BRect fWorkingFrame;
  82. AgentDockWinList *fWinListAgent;
  83. AgentDockNotifyList *fNotifyAgent;
  84. bool fNotifyExpanded;
  85. };
  86. #endif