1 /*
2 Open Tracker License
3
4 Terms and Conditions
5
6 Copyright (c) 1991-2000, Be Incorporated. All rights reserved.
7
8 Permission is hereby granted, free of charge, to any person obtaining a copy of
9 this software and associated documentation files (the "Software"), to deal in
10 the Software without restriction, including without limitation the rights to
11 use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies
12 of the Software, and to permit persons to whom the Software is furnished to do
13 so, subject to the following conditions:
14
15 The above copyright notice and this permission notice applies to all licensees
16 and shall be included in all copies or substantial portions of the Software.
17
18 THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
19 IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF TITLE, MERCHANTABILITY,
20 FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
21 BE INCORPORATED BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN
22 AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF, OR IN CONNECTION
23 WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
24
25 Except as contained in this notice, the name of Be Incorporated shall not be
26 used in advertising or otherwise to promote the sale, use or other dealings in
27 this Software without prior written authorization from Be Incorporated.
28
29 Tracker(TM), Be(R), BeOS(R), and BeIA(TM) are trademarks or registered trademarks
30 of Be Incorporated in the United States and other countries. Other brand product
31 names are registered trademarks or trademarks of their respective holders.
32 All rights reserved.
33 */
34
35
36 #include <FilePanel.h>
37
38 #include "FilePanelPriv.h"
39 #include "RecentItems.h"
40 #include "FSUtils.h"
41
42
43 // FBC fluff, stick it here to not pollute real .cpp files
44
_r1()45 void BRecentItemsList::_r1() {}
_r2()46 void BRecentItemsList::_r2() {}
_r3()47 void BRecentItemsList::_r3() {}
_r4()48 void BRecentItemsList::_r4() {}
_r5()49 void BRecentItemsList::_r5() {}
_r6()50 void BRecentItemsList::_r6() {}
_r7()51 void BRecentItemsList::_r7() {}
_r8()52 void BRecentItemsList::_r8() {}
_r9()53 void BRecentItemsList::_r9() {}
_r10()54 void BRecentItemsList::_r10() {}
_r11()55 void BRecentFilesList::_r11() {}
_r12()56 void BRecentFilesList::_r12() {}
_r13()57 void BRecentFilesList::_r13() {}
_r14()58 void BRecentFilesList::_r14() {}
_r15()59 void BRecentFilesList::_r15() {}
_r16()60 void BRecentFilesList::_r16() {}
_r17()61 void BRecentFilesList::_r17() {}
_r18()62 void BRecentFilesList::_r18() {}
_r19()63 void BRecentFilesList::_r19() {}
_r110()64 void BRecentFilesList::_r110() {}
_r21()65 void BRecentFoldersList::_r21() {}
_r22()66 void BRecentFoldersList::_r22() {}
_r23()67 void BRecentFoldersList::_r23() {}
_r24()68 void BRecentFoldersList::_r24() {}
_r25()69 void BRecentFoldersList::_r25() {}
_r26()70 void BRecentFoldersList::_r26() {}
_r27()71 void BRecentFoldersList::_r27() {}
_r28()72 void BRecentFoldersList::_r28() {}
_r29()73 void BRecentFoldersList::_r29() {}
_r210()74 void BRecentFoldersList::_r210() {}
_r31()75 void BRecentAppsList::_r31() {}
_r32()76 void BRecentAppsList::_r32() {}
_r33()77 void BRecentAppsList::_r33() {}
_r34()78 void BRecentAppsList::_r34() {}
_r35()79 void BRecentAppsList::_r35() {}
_r36()80 void BRecentAppsList::_r36() {}
_r37()81 void BRecentAppsList::_r37() {}
_r38()82 void BRecentAppsList::_r38() {}
_r39()83 void BRecentAppsList::_r39() {}
_r310()84 void BRecentAppsList::_r310() {}
85
_ReservedFilePanel1()86 void BFilePanel::_ReservedFilePanel1() {}
_ReservedFilePanel2()87 void BFilePanel::_ReservedFilePanel2() {}
_ReservedFilePanel3()88 void BFilePanel::_ReservedFilePanel3() {}
_ReservedFilePanel4()89 void BFilePanel::_ReservedFilePanel4() {}
_ReservedFilePanel5()90 void BFilePanel::_ReservedFilePanel5() {}
_ReservedFilePanel6()91 void BFilePanel::_ReservedFilePanel6() {}
_ReservedFilePanel7()92 void BFilePanel::_ReservedFilePanel7() {}
_ReservedFilePanel8()93 void BFilePanel::_ReservedFilePanel8() {}
94
95 // deprecated cruft
96
97 #if __GNUC__ && __GNUC__ < 3
98 extern "C" {
99
100 _EXPORT void
run_open_panel__Fv()101 run_open_panel__Fv()
102 {
103 (new TFilePanel())->Show();
104 }
105
106
107 _EXPORT void
run_save_panel__Fv()108 run_save_panel__Fv()
109 {
110 (new TFilePanel(B_SAVE_PANEL))->Show();
111 }
112
113 _EXPORT BFilePanel*
__10BFilePanel15file_panel_modeP10BMessengerP9entry_refUlbP8BMessageP10BRefFilterT5T5(void * self,file_panel_mode mode,BMessenger * target,entry_ref * ref,uint32 nodeFlavors,bool multipleSelection,BMessage * message,BRefFilter * filter,bool modal,bool hideWhenDone)114 __10BFilePanel15file_panel_modeP10BMessengerP9entry_refUlbP8BMessageP10BRefFilterT5T5
115 (void* self,
116 file_panel_mode mode, BMessenger* target,
117 entry_ref* ref, uint32 nodeFlavors, bool multipleSelection,
118 BMessage* message, BRefFilter* filter, bool modal,
119 bool hideWhenDone)
120 {
121 return new (self) BFilePanel(mode, target, ref, nodeFlavors,
122 multipleSelection, message, filter, modal,
123 hideWhenDone);
124 }
125
126 _EXPORT void
SetPanelDirectory__10BFilePanelP10BDirectory(BFilePanel * self,BDirectory * d)127 SetPanelDirectory__10BFilePanelP10BDirectory(BFilePanel* self, BDirectory* d)
128 {
129 self->SetPanelDirectory(d);
130 }
131
132 _EXPORT void
SetPanelDirectory__10BFilePanelP6BEntry(BFilePanel * self,BEntry * e)133 SetPanelDirectory__10BFilePanelP6BEntry(BFilePanel* self, BEntry* e)
134 {
135 self->SetPanelDirectory(e);
136 }
137
138 _EXPORT void
SetPanelDirectory__10BFilePanelP9entry_ref(BFilePanel * self,entry_ref * r)139 SetPanelDirectory__10BFilePanelP9entry_ref(BFilePanel* self, entry_ref* r)
140 {
141 self->SetPanelDirectory(r);
142 }
143
144 _EXPORT status_t
FSGetDeskDir__8BPrivateP10BDirectoryl(BDirectory * deskDir,dev_t)145 FSGetDeskDir__8BPrivateP10BDirectoryl(BDirectory* deskDir, dev_t)
146 {
147 // since we no longer keep a desktop directory on any volume other
148 // than /boot, redirect to FSGetDeskDir ignoring the volume argument
149 return FSGetDeskDir(deskDir);
150 }
151
152 _EXPORT status_t
FSGetDeskDir__FP10BDirectoryl(BDirectory * deskDir,dev_t)153 FSGetDeskDir__FP10BDirectoryl(BDirectory* deskDir, dev_t)
154 {
155 return FSGetDeskDir(deskDir);
156 }
157
158 _EXPORT status_t
FSCopyAttributesAndStats__8BPrivateP5BNodeT1(BNode * srcNode,BNode * destNode)159 FSCopyAttributesAndStats__8BPrivateP5BNodeT1(BNode* srcNode, BNode* destNode)
160 {
161 return FSCopyAttributesAndStats(srcNode, destNode);
162 }
163
164 _EXPORT status_t
FSGetTrashDir__FP10BDirectoryl(BDirectory * trashDir,dev_t volume)165 FSGetTrashDir__FP10BDirectoryl(BDirectory* trashDir, dev_t volume)
166 {
167 return FSGetTrashDir(trashDir, volume);
168 }
169
170 }
171 #endif
172