X-Git-Url: https://git.cinelerra-gg.org/git/?a=blobdiff_plain;f=cinelerra-5.1%2Fguicast%2Fbctextbox.h;h=f96446d6ea7bd2a34ea34065e1c451b39226a378;hb=b78b166faf60a1c7357f990b1e2fb0e70be29fee;hp=70c99003bc11a9704fa6f325d81d1cc718e2c9eb;hpb=83bfb86d01b353bab485d0ccc336e0572bcb63c6;p=goodguy%2Fcinelerra.git diff --git a/cinelerra-5.1/guicast/bctextbox.h b/cinelerra-5.1/guicast/bctextbox.h index 70c99003..f96446d6 100644 --- a/cinelerra-5.1/guicast/bctextbox.h +++ b/cinelerra-5.1/guicast/bctextbox.h @@ -349,15 +349,21 @@ public: virtual ~BC_PopupTextBox(); int create_objects(); virtual int handle_event(); - const char* get_text(); - const wchar_t* get_wtext(); + + const char *get_text(); + const wchar_t *get_wtext(); int get_number(); + void set_number(int v); int get_x(); int get_y(); int get_w(); int get_h(); int get_show_query(); void set_show_query(int v); + int get_back_color(); + void set_back_color(int v); + + void set_tooltip(const char *text); void update(const char *text); void update_list(ArrayList *data); @@ -368,7 +374,7 @@ public: private: int x, y, text_w, list_h; - int list_format; + int list_format, list_item; const char *default_text; const wchar_t *default_wtext; ArrayList *list_items; @@ -396,8 +402,11 @@ public: }; +class BC_TumbleTextBox; class BC_TumbleTextBoxText; -class BC_TumbleTextBoxTumble; +class BC_FTextTumbler; +class BC_ITextTumbler; + class BC_TumbleTextBox { @@ -416,6 +425,8 @@ public: int create_objects(); void reset(); virtual int handle_event(); + virtual int handle_up_event(); + virtual int handle_down_event(); const char* get_text(); const wchar_t* get_wtext(); BC_TextBox* get_textbox(); @@ -438,7 +449,8 @@ public: void set_tooltip(const char *text); friend class BC_TumbleTextBoxText; - friend class BC_TumbleTextBoxTumble; + friend class BC_FTextTumbler; + friend class BC_ITextTumbler; private: int x, y, text_w; @@ -464,6 +476,36 @@ public: BC_TumbleTextBox *popup; }; +class BC_FTextTumbler : public BC_FTumbler +{ +public: + BC_FTextTumbler(BC_TumbleTextBox *tumble_text, + float min_f, float max_f, int x, int y) + : BC_FTumbler(tumble_text->textbox, min_f, max_f, x, y) { + this->tumble_text = tumble_text; + } + ~BC_FTextTumbler() {} + int handle_up_event() { return tumble_text->handle_up_event(); } + int handle_down_event() { return tumble_text->handle_down_event(); } + + BC_TumbleTextBox *tumble_text; +}; + +class BC_ITextTumbler : public BC_ITumbler +{ +public: + BC_ITextTumbler(BC_TumbleTextBox *tumble_text, + int64_t min, int64_t max, int x, int y) + : BC_ITumbler(tumble_text->textbox, min, max, x, y) { + this->tumble_text = tumble_text; + } + ~BC_ITextTumbler() {} + int handle_up_event() { return tumble_text->handle_up_event(); } + int handle_down_event() { return tumble_text->handle_down_event(); } + + BC_TumbleTextBox *tumble_text; +}; + class BC_TextMenu : public BC_PopupMenu {