ListAgent.h 2.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495
  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. * Todd Lair
  22. * Andrew Bazan
  23. * Jamie Wilkinson
  24. */
  25. #ifndef _LISTAGENT_H_
  26. #define _LISTAGENT_H_
  27. #include <View.h>
  28. #include <String.h>
  29. #include <Messenger.h>
  30. #include <MessageRunner.h>
  31. #ifdef __INTEL__
  32. #include <regex.h>
  33. #endif
  34. #include "ObjectList.h"
  35. class BColumnListView;
  36. class BColumn;
  37. class BScrollView;
  38. class BMenuItem;
  39. class StatusView;
  40. class WindowListItem;
  41. class Theme;
  42. class BRow;
  43. class WindowList;
  44. class ListAgent : public BView
  45. {
  46. public:
  47. ListAgent (BRect, const char *, BMessenger *);
  48. virtual ~ListAgent (void);
  49. virtual void MessageReceived (BMessage *);
  50. virtual void AttachedToWindow (void);
  51. virtual void Show (void);
  52. virtual void Hide (void);
  53. WindowListItem *fAgentWinItem;
  54. BMessenger fMsgr;
  55. private:
  56. void AddBatch (void);
  57. Theme *activeTheme;
  58. BMessenger *fSMsgr;
  59. BMessageRunner *listUpdateTrigger;
  60. BMenu *listMenu;
  61. BColumnListView *listView;
  62. BColumn *channelColumn,
  63. *usersColumn,
  64. *topicColumn;
  65. StatusView *status;
  66. BString filter,
  67. find,
  68. statusStr;
  69. #ifdef __INTEL__
  70. regex_t re,
  71. fre;
  72. #endif
  73. bool processing;
  74. BObjectList<BRow> hiddenItems,
  75. fBuildList;
  76. BMenuItem *mFilter,
  77. *mFind,
  78. *mFindAgain;
  79. friend class WindowList;
  80. };
  81. #endif