⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 gtk_gui.h

📁 彩信浏览器
💻 H
字号:
/* * This file is part of Ambulant Player, www.ambulantplayer.org. * * Copyright (C) 2003-2007 Stichting CWI,  * Kruislaan 413, 1098 SJ Amsterdam, The Netherlands. * * Ambulant Player is free software; you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation; either version 2.1 of the License, or * (at your option) any later version. * * Ambulant Player 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 Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with Ambulant Player; if not, write to the Free Software * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA *//*  * @$Id: gtk_gui.h,v 1.11 2007/02/12 14:15:24 jackjansen Exp $  */#ifndef __GTK_GUI_H__#define __GTK_GUI_H__#include "unix_preferences.h"//#include <iostream>//#include <fstream>#include "gtk_settings.h"#include "gtk_logger.h"class gtk_mainloop;class gtk_settings;class gtk_gui : public GtkWidget{   public:  	gtk_gui(const char* title, const char* initfile);	~gtk_gui();	const char* filename() { 		return m_smilfilename;	}	bool openSMILfile(const char *smilfilename, int mode, bool dupFlag);	// send an event to the gui thread	void internal_message(int level, char* msg);	// signal interfaces	void need_redraw(const void*, void*, const void*);	void player_done();	void player_start(GString,bool,bool);		// major containers	GtkWidget* get_gui_container();	GtkWidget* get_document_container();	GtkWindow* get_toplevel_container();/*TMP*/	gtk_mainloop* m_mainloop;   private:	const char*  m_programfilename;	const char*  m_smilfilename;	gtk_settings* m_settings;	GtkWindow*   m_toplevelcontainer; // the actual top level window	GtkWidget*   menubar;		 // The UI (menubar)		GtkWidget*   m_guicontainer;	// The container (menubar + documentcontainer)	GtkWidget*   m_documentcontainer; // The drawable area	GtkActionGroup *m_actions;#define	LOCK_MESSAGE#ifdef	LOCK_MESSAGE	pthread_cond_t	  m_cond_message;	pthread_mutex_t   m_lock_message;	unsigned long int m_gui_thread;#endif/*LOCK_MESSAGE*/	bool         m_pointinghand_cursor; //XXXX	GtkFileChooser* m_file_chooser;	GtkFileChooser* m_settings_chooser;	GtkEntry*	m_url_text_entry;	//const DocLnk m_selectedDocLnk;	void	     fileError(const gchar* smilfilename);	void setDocument(const char* string);#ifndef GTK_NO_FILEDIALOG	/* Assume plain Qt */#define DocLnk void*#endif/*GTK_NO_FILEDIALOG*/    public:	void do_file_selected();	void do_url_selected();	void do_settings_selected();	void do_play();	void do_about();	void do_homepage();	void do_welcome();	void do_help();	void do_load_settings();  	void do_logger_window();	void do_open();	void do_open_url();	void do_pause();	void do_player_done();	void do_quit();	void do_reload();	void do_settings_select();	void do_stop();	void do_resize(GdkEventConfigure *event);	guint signal_player_done_id;	guint signal_need_redraw_id;	guint signal_internal_message_id;	void do_internal_message(gtk_message_event* e);	void unsetCursor();		void _update_menus();		GMainLoop* main_loop;};#endif/*__GTK_GUI_H__*/

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -