NetworkPrefsView.h 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102
  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. * Alan Ellis
  21. */
  22. #ifndef _NETWORKPREFSVIEW_H
  23. #define _NETWORKPREFSVIEW_H
  24. #include <View.h>
  25. #include <Message.h>
  26. class BBox;
  27. class BMenuItem;
  28. class BMenuField;
  29. class BButton;
  30. class BScrollView;
  31. class BCheckBox;
  32. class BTextView;
  33. class BListView;
  34. class BTextControl;
  35. class BStringView;
  36. class PromptWindow;
  37. class NetPrefServerWindow;
  38. class BColumnListView;
  39. class TSpeedButton;
  40. struct ServerData;
  41. class NetworkPrefsView : public BView
  42. {
  43. public:
  44. NetworkPrefsView (BRect, const char *);
  45. virtual ~NetworkPrefsView (void);
  46. virtual void MessageReceived (BMessage *);
  47. virtual void AttachedToWindow (void);
  48. virtual void DetachedFromWindow (void);
  49. private:
  50. void SetConnectServer (const char *);
  51. void SetAlternateCount (uint32);
  52. void UpdateNetworkData (BMessage &);
  53. void UpdatePersonalData (BMessage &);
  54. void SetupDefaults (BMessage &);
  55. void BuildNetworkList (void);
  56. void SaveCurrentNetwork();
  57. BMenuField *fNetworkMenu;
  58. BScrollView *fExecScroller,
  59. *fNickScroller;
  60. BBox *fMainNetBox,
  61. *fNetDetailsBox,
  62. *fPersonalBox;
  63. BButton *fServerButton,
  64. *fNickAddButton,
  65. *fNickRemoveButton;
  66. TSpeedButton *fNickUpButton,
  67. *fNickDnButton;
  68. BCheckBox *fNickDefaultsBox,
  69. *fLagCheckBox,
  70. *fStartupBox;
  71. BTextView *fTextView;
  72. BListView *fListView;
  73. BTextControl *fIdent,
  74. *fRealName;
  75. BStringView *fConnectServer,
  76. *fAlternates;
  77. BMessage fActiveNetwork;
  78. PromptWindow *fNickPrompt;
  79. PromptWindow *fNetPrompt;
  80. PromptWindow *fDupePrompt;
  81. BMenuItem *fRemoveItem;
  82. BMenuItem *fDupeItem;
  83. NetPrefServerWindow *fServerPrefs;
  84. };
  85. #endif