/[antiright]/antiright/lib/library.h
ViewVC logotype

Diff of /antiright/lib/library.h

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.11 by jefbed, Sun Nov 21 21:51:59 2004 UTC revision 1.12 by jefbed, Fri Jan 21 22:36:30 2005 UTC
# Line 24  Line 24 
24  #define AR_LIBRARY_H  #define AR_LIBRARY_H
25    
26  #include <Xm/XmAll.h>  #include <Xm/XmAll.h>
27    #include <stdlib.h>
28    #include <stdio.h>
29    #include <string.h>
30    #include <sys/types.h>
31    #include <sys/stat.h>
32    #include <unistd.h>
33    #include <errno.h>
34    #include <assert.h>
35  #include "button.h"  #include "button.h"
36  #include "drawing.h"  #include "drawing.h"
37  #include "edit.h"  #include "edit.h"
# Line 39  Line 47 
47  #include "window.h"  #include "window.h"
48  #include "status.h"  #include "status.h"
49  #include "util.h"  #include "util.h"
50    #include "pixmap.h"
51  #ifdef HAVE_XMXPM  #include "usage.h"
52  #include <Xm/XpmP.h>  #include "app.h"
53  #else  #include "resource.h"
54  #include <X11/xpm.h>  #include "string.h"
55  #endif /* HAVE_XMXPM  */  #include "xmstring.h"
56    #include "system.h"
57    
58  #ifdef HAVE_XLT  #ifdef HAVE_XLT
59  #include <Xlt/Xlt.h>  #include <Xlt/Xlt.h>
# Line 81  struct antiright_application_structure Line 90  struct antiright_application_structure
90  /* This structure is used in all AntiRight programs.  */  /* This structure is used in all AntiRight programs.  */
91  struct antiright_application_structure antiright;  struct antiright_application_structure antiright;
92    
 /* This is used to close and destroy dialogs.  */  
 void  
 antiright_close_cb(Widget widget,  
                    XtPointer client_data,  
                    XtPointer call_data);  
   
 /* This exits the program.  */  
 void  
 antiright_exit_cb();  
   
 /* This is used to execute a command.  It will always be run in the  
    background.  */  
 void  
 antiright_system_cb(Widget widget,  
                     XtPointer client_data, /* This is the command to  
                                               be executed.  */  
                     XtPointer call_data);  
   
 /* This is the means by which a command entered in a text field is  
    executed by the shell.  */  
 void  
 antiright_command(Widget command_widget);  
   
 /* This is used as a callback for shell command text fields.  */  
 void  
 antiright_command_cb(Widget widget,  
                      XtPointer client_data,  
                      XtPointer call_data);  
   
   
   
 /*  This sets a widget's value before creation.  The resource  
     arguments are stored in antiright_arguments.  The number of  
     arguments are stored in antiright_number_arguments.  */  
 void  
 antiright_set(String name, /* This is the resource name.  */  
               XtArgVal value); /* This is the value of the resource.  
                                   If it is a variable, it will have to  
                                   be casted to XtArgVal.  */  
93    
94    
   
 /* This converts a Motif string into a C string.  Make sure that you  
    free the returned string when finished with XtFree().  */  
 char*  
 antiright_c_string(XmString motif_string);  
   
 /* This sets the tooltip, if available, of WIDGET.  */  
 void  
 antiright_set_tooltip(Widget widget, char *tooltip_string);  
   
 /* This function sets the resource values of WIDGET to the ones  
    contained in antiright.arguments.  */  
 void  
 antiright_set_values(Widget widget);  
   
 /* This gets the resource values of WIDGET.  */  
 void  
 antiright_get_values(Widget widget);  
   
95  /* This is a shortcut macro to clear antiright Xt arguments.  AR is an  /* This is a shortcut macro to clear antiright Xt arguments.  AR is an
96     abreviation for AntiRight.  CL is an abbreviation for CLear.  ARG     abreviation for AntiRight.  CL is an abbreviation for CLear.  ARG
97     is an abbreviation for ARGuments.  */     is an abbreviation for ARGuments.  */
# Line 160  enum{ANTIRIGHT_NONE=-1}; Line 111  enum{ANTIRIGHT_NONE=-1};
111      fflush(stdout);                                     \      fflush(stdout);                                     \
112    }    }
113    
 Widget  
 antiright_widget(Widget parent, WidgetClass widget_class);  
   
   
114  #endif /* AR_LIBRARY_H */  #endif /* AR_LIBRARY_H */

Legend:
Removed from v.1.11  
changed lines
  Added in v.1.12

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26