~ubuntu-branches/ubuntu/maverick/fotoxx/maverick

« back to all changes in this revision

Viewing changes to zfuncs.h

  • Committer: Bazaar Package Importer
  • Author(s): Santiago Torres Batan
  • Date: 2010-01-06 23:03:44 UTC
  • mfrom: (1.1.7 upstream)
  • Revision ID: james.westby@ubuntu.com-20100106230344-xs1mgx5azr6qpfr2
Tags: 9.2-1
New upstream release

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
/**************************************************************************
2
2
   zfuncs.h      include file for zfuncs functions
3
3
 
4
 
   Copyright 2006, 2007, 2008, 2009  Michael Cornelison
 
4
   Copyright 2006, 2007, 2008, 2009, 2010  Michael Cornelison
5
5
   source URL:  kornelix.squarespace.com
6
6
   contact: kornelix@yahoo.de
7
7
   
20
20
 
21
21
***************************************************************************/
22
22
 
23
 
//     zfuncs.h   version  v.2.28
 
23
//     zfuncs.h   version  v.3.1
24
24
 
25
25
#include <sys/time.h>
26
26
#include <sys/stat.h>
237
237
const char *ZTX(const char *english);                                      //  get translation for English message
238
238
const char * get_zuserdir();                                               //  get /home/user/.appname/
239
239
const char * get_zdatadir();                                               //  get main install directory
240
 
void showz_userguide();                                                    //  show help file in new process
241
 
void showz_helpF1(const char *topic, ...);                                 //  show help topic(s) 
 
240
void showz_userguide(const char *context = 0);                             //  show help file in new process
242
241
void showz_readme();                                                       //  show README file in popup window
243
242
void showz_changelog();                                                    //  show changelog file in popup window
244
243
void showz_translations();                                                 //  show TRANSLATIONS file in popup window
279
278
 
280
279
typedef void mtFunc(GtkWidget *, cchar *mname);                            //  menu or button response function
281
280
 
282
 
GtkWidget * create_menubar(GtkWidget *vbox, int iconsize);                 //  create menubar in packing box
 
281
GtkWidget * create_menubar(GtkWidget *vbox);                               //  create menubar in packing box
283
282
GtkWidget * add_menubar_item(GtkWidget *mbar, cchar *mname,                //  add menu item to menubar 
284
283
                                       mtFunc func = 0);
285
 
GtkWidget * add_submenu_item(GtkWidget *mitem, cchar *label,               //  add submenu item to menu item
286
 
                             cchar *icon = 0, mtFunc func = 0);            //  (optional icon and function)
 
284
GtkWidget * add_submenu_item(GtkWidget *mitem, cchar *label,               //  add submenu item to menu item     v.2.29 
 
285
                                           mtFunc func = 0);
287
286
 
288
287
GtkWidget * create_toolbar(GtkWidget *vbox,                                //  horiz. toolbar in packing box (vert.)
289
288
                           int iconsize = 24, int vert = 0);
376
375
int zmessageYN(cchar *pMess, ... );                                        //  display message, wait for YES or NO
377
376
cchar * dialogText(cchar * title, cchar * inittext);                       //  get short text input from user
378
377
char * zgetfile(cchar *title, cchar *file, cchar *rw, cchar *butt = 0);    //  file chooser dialog       v.2.3
 
378
char ** zgetfiles(cchar *title, cchar *file, cchar *butt = 0);             //  multiple file select dialog     v.2.29
379
379
void showz_html(const char *url);                                          //  show html via preferred browser  v.2.18
380
380
 
381
381
GtkWidget * zmessage_post(cchar *pMess, ...);                              //  display message indefinitely   v.2.6