1 /* 2 * Copyright 2006, Haiku. 3 * Distributed under the terms of the MIT License. 4 * 5 * Authors: 6 * Stephan Aßmus <superstippi@gmx.de> 7 */ 8 9 #ifndef NAME_PANEL_H 10 #define NAME_PANEL_H 11 12 #include "Panel.h" 13 14 class BTextControl; 15 16 class NamePanel : public Panel { 17 public: 18 NamePanel(const char* label, 19 const char* text, 20 BWindow* window, 21 BHandler* target, 22 BMessage* message, 23 BRect frame = BRect(-1000.0, -1000.0, -900.0, -900.0)); 24 virtual ~NamePanel(); 25 26 virtual void MessageReceived(BMessage *message); 27 28 private: 29 BRect _CalculateFrame(BRect frame); 30 31 BTextControl* fNameTC; 32 BWindow* fWindow; 33 BHandler* fTarget; 34 BMessage* fMessage; 35 36 window_feel fSavedTargetWindowFeel; 37 }; 38 39 #endif // NAME_PANEL_H 40