xref: /haiku/src/kits/tracker/FBCPadding.cpp (revision 68ea01249e1e2088933cb12f9c28d4e5c5d1c9ef)
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 
45 void BRecentItemsList::_r1() {}
46 void BRecentItemsList::_r2() {}
47 void BRecentItemsList::_r3() {}
48 void BRecentItemsList::_r4() {}
49 void BRecentItemsList::_r5() {}
50 void BRecentItemsList::_r6() {}
51 void BRecentItemsList::_r7() {}
52 void BRecentItemsList::_r8() {}
53 void BRecentItemsList::_r9() {}
54 void BRecentItemsList::_r10() {}
55 void BRecentFilesList::_r11() {}
56 void BRecentFilesList::_r12() {}
57 void BRecentFilesList::_r13() {}
58 void BRecentFilesList::_r14() {}
59 void BRecentFilesList::_r15() {}
60 void BRecentFilesList::_r16() {}
61 void BRecentFilesList::_r17() {}
62 void BRecentFilesList::_r18() {}
63 void BRecentFilesList::_r19() {}
64 void BRecentFilesList::_r110() {}
65 void BRecentFoldersList::_r21() {}
66 void BRecentFoldersList::_r22() {}
67 void BRecentFoldersList::_r23() {}
68 void BRecentFoldersList::_r24() {}
69 void BRecentFoldersList::_r25() {}
70 void BRecentFoldersList::_r26() {}
71 void BRecentFoldersList::_r27() {}
72 void BRecentFoldersList::_r28() {}
73 void BRecentFoldersList::_r29() {}
74 void BRecentFoldersList::_r210() {}
75 void BRecentAppsList::_r31() {}
76 void BRecentAppsList::_r32() {}
77 void BRecentAppsList::_r33() {}
78 void BRecentAppsList::_r34() {}
79 void BRecentAppsList::_r35() {}
80 void BRecentAppsList::_r36() {}
81 void BRecentAppsList::_r37() {}
82 void BRecentAppsList::_r38() {}
83 void BRecentAppsList::_r39() {}
84 void BRecentAppsList::_r310() {}
85 
86 void BFilePanel::_ReservedFilePanel1() {}
87 void BFilePanel::_ReservedFilePanel2() {}
88 void BFilePanel::_ReservedFilePanel3() {}
89 void BFilePanel::_ReservedFilePanel4() {}
90 void BFilePanel::_ReservedFilePanel5() {}
91 void BFilePanel::_ReservedFilePanel6() {}
92 void BFilePanel::_ReservedFilePanel7() {}
93 void BFilePanel::_ReservedFilePanel8() {}
94 
95 // deprecated cruft
96 
97 #if __GNUC__ && __GNUC__ < 3
98 extern "C" {
99 
100 _EXPORT void
101 run_open_panel__Fv()
102 {
103 	(new TFilePanel())->Show();
104 }
105 
106 
107 _EXPORT void
108 run_save_panel__Fv()
109 {
110 	(new TFilePanel(B_SAVE_PANEL))->Show();
111 }
112 
113 _EXPORT BFilePanel*
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
127 SetPanelDirectory__10BFilePanelP10BDirectory(BFilePanel* self, BDirectory* d)
128 {
129 	self->SetPanelDirectory(d);
130 }
131 
132 _EXPORT void
133 SetPanelDirectory__10BFilePanelP6BEntry(BFilePanel* self, BEntry* e)
134 {
135 	self->SetPanelDirectory(e);
136 }
137 
138 _EXPORT void
139 SetPanelDirectory__10BFilePanelP9entry_ref(BFilePanel* self, entry_ref* r)
140 {
141 	self->SetPanelDirectory(r);
142 }
143 
144 _EXPORT status_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
153 FSGetDeskDir__FP10BDirectoryl(BDirectory* deskDir, dev_t)
154 {
155 	return FSGetDeskDir(deskDir);
156 }
157 
158 _EXPORT status_t
159 FSCopyAttributesAndStats__8BPrivateP5BNodeT1(BNode* srcNode, BNode* destNode)
160 {
161 	return FSCopyAttributesAndStats(srcNode, destNode);
162 }
163 
164 _EXPORT status_t
165 FSGetTrashDir__FP10BDirectoryl(BDirectory* trashDir, dev_t volume)
166 {
167 	return FSGetTrashDir(trashDir, volume);
168 }
169 
170 }
171 #endif
172