jigdo API
Last update by Admin on 2010-05-23
gtk/gui.hh
Go to the documentation of this file.00001 #/* $Id: gui.hh,v 1.7 2003/05/17 22:31:52 richard Exp $ -*- C++ -*- 00002 __ _ 00003 |_) /| Copyright (C) 2001-2003 | richard@ 00004 | \/¯| Richard Atterer | atterer.net 00005 ¯ '` ¯ 00006 This program is free software; you can redistribute it and/or modify 00007 it under the terms of the GNU General Public License, version 2. See 00008 the file COPYING for details. 00009 00010 */ 00017 #ifndef GTK_GUI_HH 00018 #define GTK_GUI_HH 00019 00020 #include <config.h> 00021 #include <interface.hh> 00022 //______________________________________________________________________ 00023 00024 /* Under Unix, packageDataDir is a string constant like 00025 "/usr/local/share/jigdo/" and is determined at compile time. Under 00026 Windows, it is a string containing the name of the dir with the 00027 .exe file. Similar for packageLocaleDir. */ 00028 #if WINDOWS 00029 # include <string> 00030 extern string packageDataDir; // defined in jigdo.cc 00031 # define packageLocaleDir (packageDataDir.c_str()) 00032 #else 00033 # define packageDataDir PACKAGE_DATA_DIR 00034 # define packageLocaleDir PACKAGE_LOCALE_DIR 00035 #endif 00036 //______________________________________________________________________ 00037 00038 namespace GUI { 00039 00040 // Are initialized by create() 00041 extern Window window; 00042 extern Filesel filesel; 00043 extern License license; 00044 // To be called by main() to set up the variables above 00045 void create(); 00046 00047 } // namespace GUI 00048 //______________________________________________________________________ 00049 00050 // Callback prototypes for gtk-interface.cc 00051 00052 // Defined in gtk-gui.cc 00053 void on_toolbarExit_clicked(GtkButton*, gpointer); 00054 gboolean on_window_delete_event(GtkWidget*, GdkEvent*, gpointer); 00055 void setNotebookPage(GtkWidget* pageObject); 00056 void on_openButton_clicked(GtkButton*, gpointer); 00057 void on_toolbarExit_clicked(GtkButton*, gpointer); 00058 void on_aboutJigdoButton_clicked(GtkButton*, gpointer); 00059 00060 void on_download_startButton_enter(GtkButton*, gpointer); 00061 void on_download_startButton_clicked(GtkButton*, gpointer); 00062 void on_download_pauseButton_enter(GtkButton*, gpointer); 00063 void on_download_pauseButton_clicked(GtkButton*, gpointer); 00064 void on_download_stopButton_enter(GtkButton*, gpointer); 00065 void on_download_stopButton_clicked(GtkButton*, gpointer); 00066 void on_download_restartButton_enter(GtkButton*, gpointer); 00067 void on_download_restartButton_clicked(GtkButton*, gpointer); 00068 void on_download_closeButton_enter(GtkButton*, gpointer); 00069 void on_download_closeButton_clicked(GtkButton*, gpointer); 00070 void on_download_button_leave(GtkButton*, gpointer); 00071 00072 void on_jigdo_startButton_enter(GtkButton*, gpointer); 00073 void on_jigdo_startButton_clicked(GtkButton*, gpointer); 00074 void on_jigdo_pauseButton_enter(GtkButton*, gpointer); 00075 void on_jigdo_pauseButton_clicked(GtkButton*, gpointer); 00076 void on_jigdo_stopButton_enter(GtkButton*, gpointer); 00077 void on_jigdo_stopButton_clicked(GtkButton*, gpointer); 00078 void on_jigdo_restartButton_enter(GtkButton*, gpointer); 00079 void on_jigdo_restartButton_clicked(GtkButton*, gpointer); 00080 void on_jigdo_closeButton_enter(GtkButton*, gpointer); 00081 void on_jigdo_closeButton_clicked(GtkButton*, gpointer); 00082 void on_jigdo_button_leave(GtkButton*, gpointer); 00083 //______________________________________________________________________ 00084 00085 #endif
Generated on Tue Sep 23 14:27:41 2008 for jigdo by
