2 * Copyright 2010, Haiku, Inc. All rights reserved.
3 * Distributed under the terms of the MIT license.
8 * Copyright 1999, Be Incorporated. All Rights Reserved.
9 * This file may be used under the terms of the Be Sample Code License.
11 #ifndef PERSON_WINDOW_H
12 #define PERSON_WINDOW_H
19 #define TITLE_BAR_HEIGHT 25
20 #define WIND_WIDTH 420
21 #define WIND_HEIGHT 340
29 class PersonWindow
: public BWindow
{
32 PersonWindow(BRect frame
, const char* title
,
33 const char* nameAttribute
,
34 const char* categoryAttribute
,
35 const entry_ref
* ref
);
36 virtual ~PersonWindow();
38 virtual void MenusBeginning();
39 virtual void MessageReceived(BMessage
* message
);
40 virtual bool QuitRequested();
43 void AddAttribute(const char* label
,
44 const char* attribute
);
48 bool RefersPersonFile(const entry_ref
& ref
) const;
51 void _GetDefaultFileName(char* name
);
52 void _SetToRef(entry_ref
* ref
);
53 void _WatchChanges(bool doIt
);
67 BString fNameAttribute
;
71 #endif // PERSON_WINDOW_H