2 * Copyright (c) 2005-2010, Haiku, Inc.
3 * Distributed under the terms of the MIT license.
6 * DarkWyrm <darkwyrm@gmail.com>
12 #include <FilePanel.h>
16 #include <Resources.h>
20 #include "ResourceRoster.h"
32 class ResView
: public BView
35 ResView(const BRect
&frame
, const char *name
,
36 const int32
&resize
, const int32
&flags
,
37 const entry_ref
*ref
= NULL
);
39 void AttachedToWindow(void);
40 void MessageReceived(BMessage
*msg
);
42 const char * Filename(void) const { return fFileName
.String(); }
43 uint8
GetSaveStatus(void) const { return fSaveStatus
; }
45 status_t
SetTo(const entry_ref
&dir
, const BString
&name
);
46 void OpenFile(const entry_ref
&ref
);
48 void SaveAndQuit(void);
51 void BuildMenus(BMenuBar
*menuBar
);
52 void EmptyDataList(void);
53 void UpdateRow(BRow
*row
);
54 void HandleDrop(BMessage
*msg
);
55 void AddResource(const entry_ref
&ref
);
56 void DeleteSelectedResources(void);
57 void SetSaveStatus(uint8 value
);
59 ResListView
*fListView
;
65 BFilePanel
*fOpenPanel
,
70 class ResDataRow
: public BRow
73 ResDataRow(ResourceData
*data
);
74 ResourceData
* GetData(void) const;
77 ResourceData
*fResData
;
80 extern ResourceRoster gResRoster
;