7 #include "bitspopup.inc"
8 #include "browsebutton.h"
9 #include "formatpopup.h"
14 #define _(String) gettext(String)
15 #define gettext_noop(String) String
16 #define N_(String) gettext_noop (String)
18 class AssetEditTCStartTextBox
;
19 class AssetEditReelNumber
;
20 class AssetEditReelName
;
21 class AssetEditByteOrderHILO
;
22 class AssetEditByteOrderLOHI
;
24 class AssetEditPathText
;
25 class AssetEditWindow
;
27 class AssetEdit
: public Thread
30 AssetEdit(MWindow
*mwindow
);
33 void edit_asset(Asset
*asset
);
34 int set_asset(Asset
*asset
);
37 Asset
*asset
, *new_asset
;
39 AssetEditWindow
*window
;
44 // Pcm is the only format users should be able to fix.
45 // All other formats display information about the file in read-only.
47 class AssetEditWindow
: public BC_Window
50 AssetEditWindow(MWindow
*mwindow
, AssetEdit
*asset_edit
);
55 AssetEditPathText
*path_text
;
56 AssetEditPath
*path_button
;
57 AssetEditByteOrderHILO
*hilo
;
58 AssetEditByteOrderLOHI
*lohi
;
62 AssetEdit
*asset_edit
;
66 class AssetEditPath
: public BrowseButton
69 AssetEditPath(MWindow
*mwindow
, AssetEditWindow
*fwindow
, BC_TextBox
*textbox
, int y
, char *text
, char *window_title
= "2000: Path", char *window_caption
= _("Select a file"));
72 AssetEditWindow
*fwindow
;
76 class AssetEditPathText
: public BC_TextBox
79 AssetEditPathText(AssetEditWindow
*fwindow
, int y
);
83 AssetEditWindow
*fwindow
;
88 class AssetEditFormat
: public FormatPopup
91 AssetEditFormat(AssetEditWindow
*fwindow
, char* default_
, int y
);
95 AssetEditWindow
*fwindow
;
99 class AssetEditChannels
: public BC_TumbleTextBox
102 AssetEditChannels(AssetEditWindow
*fwindow
, char *text
, int x
, int y
);
106 AssetEditWindow
*fwindow
;
109 class AssetEditRate
: public BC_TextBox
112 AssetEditRate(AssetEditWindow
*fwindow
, char *text
, int x
, int y
);
116 AssetEditWindow
*fwindow
;
119 class AssetEditFRate
: public BC_TextBox
122 AssetEditFRate(AssetEditWindow
*fwindow
, char *text
, int x
, int y
);
126 AssetEditWindow
*fwindow
;
129 class AssetEditHeader
: public BC_TextBox
132 AssetEditHeader(AssetEditWindow
*fwindow
, char *text
, int x
, int y
);
136 AssetEditWindow
*fwindow
;
139 class AssetEditByteOrderLOHI
: public BC_Radial
142 AssetEditByteOrderLOHI(AssetEditWindow
*fwindow
, int value
, int x
, int y
);
146 AssetEditWindow
*fwindow
;
149 class AssetEditByteOrderHILO
: public BC_Radial
152 AssetEditByteOrderHILO(AssetEditWindow
*fwindow
, int value
, int x
, int y
);
156 AssetEditWindow
*fwindow
;
159 class AssetEditSigned
: public BC_CheckBox
162 AssetEditSigned(AssetEditWindow
*fwindow
, int value
, int x
, int y
);
166 AssetEditWindow
*fwindow
;
169 class AssetEditReelName
: public BC_TextBox
172 AssetEditReelName(AssetEditWindow
*fwindow
, int x
, int y
);
173 ~AssetEditReelName();
177 AssetEditWindow
*fwindow
;
180 class AssetEditReelNumber
: public BC_TextBox
183 AssetEditReelNumber(AssetEditWindow
*fwindow
, int x
, int y
);
184 ~AssetEditReelNumber();
188 AssetEditWindow
*fwindow
;
191 class AssetEditTCStartTextBox
: public BC_TextBox
194 AssetEditTCStartTextBox(AssetEditWindow
*fwindow
, int value
, int x
, int y
, int multiplier
);
195 ~AssetEditTCStartTextBox();
198 AssetEditWindow
*fwindow
;
199 // Multiplier is the # of frames for whatever unit of time this is.
200 // fps dependent, and unit dependent