X-Git-Url: http://git.cinelerra-gg.org/git/?p=goodguy%2Fhistory.git;a=blobdiff_plain;f=cinelerra-5.1%2Fcinelerra%2Finterfaceprefs.h;h=0a6f761a1bcd538b0589a512b2195e4c07ad4a01;hp=674bdc0f93bddf5761a7efd05db879846152f2cb;hb=7eded24eb31529ad7652dea64e34b0a6210e5be1;hpb=3ac8199743f244669cc87ceef9c3cd23710552f3 diff --git a/cinelerra-5.1/cinelerra/interfaceprefs.h b/cinelerra-5.1/cinelerra/interfaceprefs.h index 674bdc0f..0a6f761a 100644 --- a/cinelerra-5.1/cinelerra/interfaceprefs.h +++ b/cinelerra-5.1/cinelerra/interfaceprefs.h @@ -22,51 +22,12 @@ #ifndef INTERFACEPREFS_H #define INTERFACEPREFS_H -class InterfacePrefs; -class IndexPathText; -class IndexSize; -class IndexCount; -class TimeFormatHMS; -class TimeFormatHMSF; -class TimeFormatSamples; -class TimeFormatFrames; -class TimeFormatHex; -class TimeFormatFeet; -class TimeFormatSeconds; -class TimeFormatFeetSetting; -class MeterMinDB; -class MeterMaxDB; -class MeterVUDB; -class MeterVUInt; -class ViewBehaviourText; -class ViewBehaviourItem; -class ViewTheme; -class ViewThemeItem; -class ViewPluginIcons; -class ViewPluginIconItem; -class ViewThumbnails; -class UseTipWindow; -class UseWarnIndecies; -class UseWarnVersion; -class BD_WarnRoot; -class ScanCommercials; -class AndroidRemote; -class PopupMenuBtnup; -class ActivateFocusPolicy; -class DeactivateFocusPolicy; -class AndroidPIN; -class AndroidPort; -class ShBtnPrefs; -class StillImageUseDuration; -class StillImageDuration; -class KeyframeReticle; -class HairlineItem; -class IndexFFMPEGMarkerFiles; - #include "browsebutton.h" #include "deleteallindexes.inc" +#include "interfaceprefs.inc" #include "mwindow.inc" #include "preferencesthread.h" +#include "probeprefs.inc" #include "shbtnprefs.inc" @@ -81,30 +42,29 @@ public: int update(int new_value); const char* behavior_to_text(int mode); int start_shbtn_dialog(); + void start_probe_dialog(); BrowseButton *ipath; IndexSize *isize; IndexCount *icount; IndexPathText *ipathtext; - DeleteAllIndexes *deleteall; + DeleteAllIndexes *del_indexes; + DeleteAllIndexes *del_clipngs; IndexFFMPEGMarkerFiles *ffmpeg_marker_files; - TimeFormatHMS *hms; - TimeFormatHMSF *hmsf; - TimeFormatSamples *samples; - TimeFormatHex *hex; - TimeFormatFrames *frames; - TimeFormatFeet *feet; - TimeFormatSeconds *seconds; - + ViewBehaviourText *button1, *button2, *button3; MeterMinDB *min_db; MeterMaxDB *max_db; - MeterVUDB *vu_db; -// MeterVUInt *vu_int; - ViewBehaviourText *button1, *button2, *button3; - ViewThumbnails *thumbnails; + ShBtnEditDialog *shbtn_dialog; KeyframeReticle *keyframe_reticle; + PrefsYUV420P_DVDlace *yuv420p_dvdlace; + FileProbeDialog *file_probe_dialog; + PrefsFileProbes *file_probes; + PrefsTrapSigSEGV *trap_segv; + PrefsTrapSigINTR *trap_intr; + SnapshotPathText *snapshot_path; + PrefsReloadPlugins *reload_plugins; }; @@ -134,79 +94,32 @@ public: PreferencesWindow *pwindow; }; -class TimeFormatHMS : public BC_Radial -{ -public: - TimeFormatHMS(PreferencesWindow *pwindow, InterfacePrefs *tfwindow, int value, int x, int y); - int handle_event(); - PreferencesWindow *pwindow; - InterfacePrefs *tfwindow; -}; - -class TimeFormatHMSF : public BC_Radial -{ -public: - TimeFormatHMSF(PreferencesWindow *pwindow, InterfacePrefs *tfwindow, int value, int x, int y); - int handle_event(); - PreferencesWindow *pwindow; - InterfacePrefs *tfwindow; -}; - -class TimeFormatSamples : public BC_Radial -{ -public: - TimeFormatSamples(PreferencesWindow *pwindow, InterfacePrefs *tfwindow, int value, int x, int y); - int handle_event(); - PreferencesWindow *pwindow; - InterfacePrefs *tfwindow; -}; - -class TimeFormatFrames : public BC_Radial -{ -public: - TimeFormatFrames(PreferencesWindow *pwindow, InterfacePrefs *tfwindow, int value, int x, int y); - int handle_event(); - PreferencesWindow *pwindow; - InterfacePrefs *tfwindow; -}; -class TimeFormatHex : public BC_Radial +class ViewBehaviourText : public BC_PopupMenu { public: - TimeFormatHex(PreferencesWindow *pwindow, InterfacePrefs *tfwindow, int value, int x, int y); - int handle_event(); - PreferencesWindow *pwindow; - InterfacePrefs *tfwindow; -}; + ViewBehaviourText(int x, int y, const char *text, + PreferencesWindow *pwindow, int *output); + ~ViewBehaviourText(); -class TimeFormatFeet : public BC_Radial -{ -public: - TimeFormatFeet(PreferencesWindow *pwindow, InterfacePrefs *tfwindow, int value, int x, int y); - int handle_event(); - PreferencesWindow *pwindow; + int handle_event(); // user copies text to value here + void create_objects(); // add initial items InterfacePrefs *tfwindow; + int *output; }; -class TimeFormatSeconds : public BC_Radial +class ViewBehaviourItem : public BC_MenuItem { public: - TimeFormatSeconds(PreferencesWindow *pwindow, InterfacePrefs *tfwindow, int value, int x, int y); - int handle_event(); - PreferencesWindow *pwindow; - InterfacePrefs *tfwindow; -}; + ViewBehaviourItem(ViewBehaviourText *popup, char *text, int behaviour); + ~ViewBehaviourItem(); -class TimeFormatFeetSetting : public BC_TextBox -{ -public: - TimeFormatFeetSetting(PreferencesWindow *pwindow, int x, int y, char *string); int handle_event(); - PreferencesWindow *pwindow; + ViewBehaviourText *popup; + int behaviour; }; - class MeterMinDB : public BC_TextBox { public: @@ -224,244 +137,186 @@ public: PreferencesWindow *pwindow; }; -class MeterVUDB : public BC_Radial +class ScanCommercials : public BC_CheckBox { public: - MeterVUDB(PreferencesWindow *pwindow, char *text, int y); + ScanCommercials(PreferencesWindow *pwindow, int x, int y); int handle_event(); -// MeterVUInt *vu_int; PreferencesWindow *pwindow; }; -class MeterVUInt : public BC_Radial +class AndroidRemote : public BC_CheckBox { public: - MeterVUInt(PreferencesWindow *pwindow, char *text, int y); + AndroidRemote(PreferencesWindow *pwindow, int x, int y); int handle_event(); - MeterVUDB *vu_db; PreferencesWindow *pwindow; }; -class ViewBehaviourText : public BC_PopupMenu -{ -public: - ViewBehaviourText(int x, - int y, - const char *text, - PreferencesWindow *pwindow, - int *output); - ~ViewBehaviourText(); - - int handle_event(); // user copies text to value here - void create_objects(); // add initial items - InterfacePrefs *tfwindow; - int *output; -}; - -class ViewBehaviourItem : public BC_MenuItem +class AndroidPIN : public BC_TextBox { public: - ViewBehaviourItem(ViewBehaviourText *popup, char *text, int behaviour); - ~ViewBehaviourItem(); - + PreferencesWindow *pwindow; int handle_event(); - ViewBehaviourText *popup; - int behaviour; + AndroidPIN(PreferencesWindow *pwindow, int x, int y); }; -class ViewTheme : public BC_PopupMenu +class AndroidPort : public BC_TextBox { public: - ViewTheme(int x, int y, PreferencesWindow *pwindow); - ~ViewTheme(); - - void create_objects(); - int handle_event(); - PreferencesWindow *pwindow; -}; - -class ViewThemeItem : public BC_MenuItem -{ -public: - ViewThemeItem(ViewTheme *popup, const char *text); int handle_event(); - ViewTheme *popup; + AndroidPort(PreferencesWindow *pwindow, int x, int y); }; -class ViewPluginIcons : public BC_PopupMenu +class ShBtnPrefs : public BC_GenericButton { public: - ViewPluginIcons(int x, int y, PreferencesWindow *pwindow); - ~ViewPluginIcons(); - - void create_objects(); - int handle_event(); - PreferencesWindow *pwindow; -}; + InterfacePrefs *iface_prefs; -class ViewPluginIconItem : public BC_MenuItem -{ -public: - ViewPluginIconItem(ViewPluginIcons *popup, const char *text); int handle_event(); - ViewPluginIcons *popup; + ShBtnPrefs(PreferencesWindow *pwindow, + InterfacePrefs *iface_prefs, int x, int y); }; - -class ViewThumbnails : public BC_CheckBox +class StillImageUseDuration : public BC_CheckBox { public: - ViewThumbnails(int x, int y, PreferencesWindow *pwindow); + StillImageUseDuration(PreferencesWindow *pwindow, int value, int x, int y); int handle_event(); PreferencesWindow *pwindow; }; -class UseTipWindow : public BC_CheckBox +class StillImageDuration : public BC_TextBox { public: - UseTipWindow(PreferencesWindow *pwindow, int x, int y); + StillImageDuration(PreferencesWindow *pwindow, int x, int y); int handle_event(); PreferencesWindow *pwindow; }; -class UseWarnIndecies : public BC_CheckBox +class KeyframeReticle : public BC_PopupMenu { public: - UseWarnIndecies(PreferencesWindow *pwindow, int x, int y); - int handle_event(); - PreferencesWindow *pwindow; -}; + KeyframeReticle(PreferencesWindow *pwindow, + InterfacePrefs *iface_prefs, int x, int y, int *output); + ~KeyframeReticle(); + + const char *hairline_to_string(int type); + void create_objects(); -class UseWarnVersion : public BC_CheckBox -{ -public: - UseWarnVersion(PreferencesWindow *pwindow, int x, int y); - int handle_event(); PreferencesWindow *pwindow; + InterfacePrefs *iface_prefs; + int *output; }; -class BD_WarnRoot : public BC_CheckBox +class HairlineItem : public BC_MenuItem { public: - BD_WarnRoot(PreferencesWindow *pwindow, int x, int y); + HairlineItem(KeyframeReticle *popup, int hairline); + ~HairlineItem(); + + KeyframeReticle *popup; int handle_event(); - PreferencesWindow *pwindow; + int hairline; }; -class ScanCommercials : public BC_CheckBox +class IndexFFMPEGMarkerFiles : public BC_CheckBox { public: - ScanCommercials(PreferencesWindow *pwindow, int x, int y); + IndexFFMPEGMarkerFiles(InterfacePrefs *iface_prefs, int x, int y); + ~IndexFFMPEGMarkerFiles(); + int handle_event(); - PreferencesWindow *pwindow; + + InterfacePrefs *iface_prefs; }; -class AndroidRemote : public BC_CheckBox + +class PrefsTrapSigSEGV : public BC_CheckBox { public: - AndroidRemote(PreferencesWindow *pwindow, int x, int y); + PrefsTrapSigSEGV(InterfacePrefs *subwindow, int x, int y); + ~PrefsTrapSigSEGV(); int handle_event(); - PreferencesWindow *pwindow; + + InterfacePrefs *subwindow; }; -class PopupMenuBtnup : public BC_CheckBox +class PrefsTrapSigINTR : public BC_CheckBox { public: - PopupMenuBtnup(PreferencesWindow *pwindow, int x, int y); + PrefsTrapSigINTR(InterfacePrefs *subwindow, int x, int y); + ~PrefsTrapSigINTR(); int handle_event(); - PreferencesWindow *pwindow; + + InterfacePrefs *subwindow; }; -class ActivateFocusPolicy : public BC_CheckBox + +class PrefsFileProbes : public BC_GenericButton { public: - ActivateFocusPolicy(PreferencesWindow *pwindow, int x, int y); - int handle_event(); PreferencesWindow *pwindow; -}; + InterfacePrefs *subwindow; -class DeactivateFocusPolicy : public BC_CheckBox -{ -public: - DeactivateFocusPolicy(PreferencesWindow *pwindow, int x, int y); int handle_event(); - PreferencesWindow *pwindow; + PrefsFileProbes(PreferencesWindow *pwindow, InterfacePrefs *subwindow, int x, int y); }; -class AndroidPIN : public BC_TextBox + +class PrefsYUV420P_DVDlace : public BC_CheckBox { public: - PreferencesWindow *pwindow; + PrefsYUV420P_DVDlace(PreferencesWindow *pwindow, + InterfacePrefs *subwindow, int x, int y); int handle_event(); - AndroidPIN(PreferencesWindow *pwindow, int x, int y); -}; -class AndroidPort : public BC_TextBox -{ -public: + InterfacePrefs *subwindow; PreferencesWindow *pwindow; - int handle_event(); - AndroidPort(PreferencesWindow *pwindow, int x, int y); }; -class ShBtnPrefs : public BC_GenericButton +class SnapshotPathText : public BC_TextBox { public: - PreferencesWindow *pwindow; - InterfacePrefs *iface_prefs; + SnapshotPathText(PreferencesWindow *pwindow, + InterfacePrefs *subwindow, int x, int y, int w); + ~SnapshotPathText(); - int handle_event(); - ShBtnPrefs(PreferencesWindow *pwindow, InterfacePrefs *iface_prefs, int x, int y); -}; -class StillImageUseDuration : public BC_CheckBox -{ -public: - StillImageUseDuration(PreferencesWindow *pwindow, int value, int x, int y); int handle_event(); PreferencesWindow *pwindow; + InterfacePrefs *subwindow; }; -class StillImageDuration : public BC_TextBox +class PrefsAutostartLV2UI : public BC_CheckBox { public: - StillImageDuration(PreferencesWindow *pwindow, int x, int y); + PrefsAutostartLV2UI(int x, int y, PreferencesWindow *pwindow); int handle_event(); PreferencesWindow *pwindow; }; -class KeyframeReticle : public BC_PopupMenu -{ -public: - KeyframeReticle(int x, int y, int *output); - ~KeyframeReticle(); - - const char* hairline_to_string(int type); - void create_objects(); - int *output; -}; - -class HairlineItem : public BC_MenuItem +class PrefsLV2PathText : public BC_TextBox { public: - HairlineItem(KeyframeReticle *popup, int hairline); - ~HairlineItem(); + PrefsLV2PathText(PreferencesWindow *pwindow, + InterfacePrefs *subwindow, int x, int y, int w); + ~PrefsLV2PathText(); - KeyframeReticle *popup; int handle_event(); - int hairline; + PreferencesWindow *pwindow; + InterfacePrefs *subwindow; }; -class IndexFFMPEGMarkerFiles : public BC_CheckBox +class PrefsReloadPlugins : public BC_GenericButton { public: - IndexFFMPEGMarkerFiles(InterfacePrefs *iface_prefs, int x, int y); - ~IndexFFMPEGMarkerFiles(); + PreferencesWindow *pwindow; + InterfacePrefs *iface_prefs; int handle_event(); - - InterfacePrefs *iface_prefs; + PrefsReloadPlugins(PreferencesWindow *pwindow, + InterfacePrefs *iface_prefs, int x, int y); }; - #endif