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 AssetEditByteOrderHILO
;
19 class AssetEditByteOrderLOHI
;
21 class AssetEditPathText
;
22 class AssetEditWindow
;
24 class AssetEdit
: public Thread
27 AssetEdit(MWindow
*mwindow
);
30 void edit_asset(Asset
*asset
);
31 int set_asset(Asset
*asset
);
34 Asset
*asset
, *new_asset
;
36 AssetEditWindow
*window
;
41 // Pcm is the only format users should be able to fix.
42 // All other formats display information about the file in read-only.
44 class AssetEditWindow
: public BC_Window
47 AssetEditWindow(MWindow
*mwindow
, AssetEdit
*asset_edit
);
52 AssetEditPathText
*path_text
;
53 AssetEditPath
*path_button
;
54 AssetEditByteOrderHILO
*hilo
;
55 AssetEditByteOrderLOHI
*lohi
;
59 AssetEdit
*asset_edit
;
63 class AssetEditPath
: public BrowseButton
66 AssetEditPath(MWindow
*mwindow
, AssetEditWindow
*fwindow
, BC_TextBox
*textbox
, int y
, char *text
, char *window_title
= "2000: Path", char *window_caption
= _("Select a file"));
69 AssetEditWindow
*fwindow
;
73 class AssetEditPathText
: public BC_TextBox
76 AssetEditPathText(AssetEditWindow
*fwindow
, int y
);
80 AssetEditWindow
*fwindow
;
85 class AssetEditFormat
: public FormatPopup
88 AssetEditFormat(AssetEditWindow
*fwindow
, char* default_
, int y
);
92 AssetEditWindow
*fwindow
;
96 class AssetEditChannels
: public BC_TumbleTextBox
99 AssetEditChannels(AssetEditWindow
*fwindow
, char *text
, int x
, int y
);
103 AssetEditWindow
*fwindow
;
106 class AssetEditRate
: public BC_TextBox
109 AssetEditRate(AssetEditWindow
*fwindow
, char *text
, int x
, int y
);
113 AssetEditWindow
*fwindow
;
116 class AssetEditFRate
: public BC_TextBox
119 AssetEditFRate(AssetEditWindow
*fwindow
, char *text
, int x
, int y
);
123 AssetEditWindow
*fwindow
;
126 class AssetEditHeader
: public BC_TextBox
129 AssetEditHeader(AssetEditWindow
*fwindow
, char *text
, int x
, int y
);
133 AssetEditWindow
*fwindow
;
136 class AssetEditByteOrderLOHI
: public BC_Radial
139 AssetEditByteOrderLOHI(AssetEditWindow
*fwindow
, int value
, int x
, int y
);
143 AssetEditWindow
*fwindow
;
146 class AssetEditByteOrderHILO
: public BC_Radial
149 AssetEditByteOrderHILO(AssetEditWindow
*fwindow
, int value
, int x
, int y
);
153 AssetEditWindow
*fwindow
;
156 class AssetEditSigned
: public BC_CheckBox
159 AssetEditSigned(AssetEditWindow
*fwindow
, int value
, int x
, int y
);
163 AssetEditWindow
*fwindow
;