X-Git-Url: http://git.cinelerra-gg.org/git/?a=blobdiff_plain;f=cinelerra-5.1%2Fcinelerra%2Ftipwindow.h;h=cbed6f10eb1f44c84b31ad5e00cefdfafa1cf5c1;hb=cb73d14fe59acbe8eba0a62f4af26a23072201fa;hp=131a7c11a0b33066f0fbc0df20726ddeeff6ea73;hpb=c6d96a41db6be59cc4b7fba8f40f57873f6713db;p=goodguy%2Fhistory.git diff --git a/cinelerra-5.1/cinelerra/tipwindow.h b/cinelerra-5.1/cinelerra/tipwindow.h index 131a7c11..cbed6f10 100644 --- a/cinelerra-5.1/cinelerra/tipwindow.h +++ b/cinelerra-5.1/cinelerra/tipwindow.h @@ -2,32 +2,39 @@ /* * CINELERRA * Copyright (C) 2008 Adam Williams - * + * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. - * + * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. - * + * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA - * + * */ #ifndef TIPWINDOW_H #define TIPWINDOW_H #include "bcdialog.h" +#include "cstrdup.h" #include "guicast.h" #include "mwindow.inc" #include "tipwindow.inc" +class Tips : public ArrayList { +public: + Tips() { set_array_delete(); } + ~Tips() { remove_all_objects(); } + void add(const char *tip) { append(cstrdup(tip)); } +}; // Tip of the day to be run at initialization @@ -40,7 +47,8 @@ public: void handle_close_event(int result); BC_Window* new_gui(); - char* get_current_tip(int n); + static void load_tips(const char *lang); + const char* get_current_tip(int n); void next_tip(); void prev_tip(); @@ -52,7 +60,7 @@ public: class TipWindowGUI : public BC_Window { public: - TipWindowGUI(MWindow *mwindow, + TipWindowGUI(MWindow *mwindow, TipWindow *thread, int x, int y);