X-Git-Url: https://git.cinelerra-gg.org/git/?p=goodguy%2Fcinelerra.git;a=blobdiff_plain;f=cinelerra-5.1%2Fcinelerra%2Fappearanceprefs.h;h=8c3ddaecc6b596035ff0c7c1df83c31214af0190;hp=96a6a41e85721a9751a0a1e60c2e4387d29fc3ac;hb=HEAD;hpb=c9c0e07706fad701a70ee0d1ffb0fcb6304f138c diff --git a/cinelerra-5.1/cinelerra/appearanceprefs.h b/cinelerra-5.1/cinelerra/appearanceprefs.h index 96a6a41e..590732b5 100644 --- a/cinelerra-5.1/cinelerra/appearanceprefs.h +++ b/cinelerra-5.1/cinelerra/appearanceprefs.h @@ -181,6 +181,27 @@ public: ViewPluginIcons *popup; }; +class LayoutLocale : public BC_PopupMenu +{ + static const char *locale_list[]; +public: + LayoutLocale(int x, int y, PreferencesWindow *pwindow); + ~LayoutLocale(); + + void create_objects(); + int handle_event(); + + PreferencesWindow *pwindow; +}; + +class LayoutLocaleItem : public BC_MenuItem +{ +public: + LayoutLocaleItem(LayoutLocale *popup, const char *text); + int handle_event(); + LayoutLocale *popup; +}; + class ViewLayoutScale : public BC_TumbleTextBox { public: @@ -221,7 +242,8 @@ public: class ViewViconColorMode : public BC_PopupMenu { - static const char *vicon_color_modes[3]; +#define MAX_VICON_COLOR_MODE 3 + static const char *vicon_color_modes[MAX_VICON_COLOR_MODE]; public: ViewViconColorMode(PreferencesWindow *pwindow, int x, int y); ~ViewViconColorMode(); @@ -257,18 +279,18 @@ public: PreferencesWindow *pwindow; }; -class UseWarnVersion : public BC_CheckBox +class UseUnsafeGUI : public BC_CheckBox { public: - UseWarnVersion(PreferencesWindow *pwindow, int x, int y); + UseUnsafeGUI(PreferencesWindow *pwindow, int x, int y); int handle_event(); PreferencesWindow *pwindow; }; -class UseWarnStack : public BC_CheckBox +class OngoingBackups: public BC_CheckBox { public: - UseWarnStack(PreferencesWindow *pwindow, int x, int y); + OngoingBackups(PreferencesWindow *pwindow, int x, int y); int handle_event(); PreferencesWindow *pwindow; }; @@ -356,7 +378,8 @@ public: class YuvColorSpace : public BC_PopupMenu { public: - static const char *color_space[3]; +#define MAX_COLOR_SPACE 5 + static const char *color_space[MAX_COLOR_SPACE]; YuvColorSpace(int x, int y, PreferencesWindow *pwindow); ~YuvColorSpace(); @@ -378,7 +401,8 @@ public: class YuvColorRange : public BC_PopupMenu { public: - static const char *color_range[2]; +#define MAX_COLOR_RANGE 2 + static const char *color_range[MAX_COLOR_RANGE]; YuvColorRange(int x, int y, PreferencesWindow *pwindow); ~YuvColorRange(); @@ -425,7 +449,7 @@ class Composer_BG_Color : public ColorBoxButton { public: Composer_BG_Color(PreferencesWindow *pwindow, - int x, int y, int w, int h, int color, int alpha); + int x, int y, int w, int h, int color); ~Composer_BG_Color(); void handle_done_event(int result); int handle_new_color(int color, int alpha);