diff --git a/dox/.cvsignore b/dox/.cvsignore deleted file mode 100644 index dfbef89..0000000 --- a/dox/.cvsignore +++ /dev/null @@ -1,20 +0,0 @@ -config.guess -config.h.in -config.sub -ltconfig -ltmain.sh -aclocal.m4 -stamp-h.in -Makefile.in -configure -config.log -config.h -config.cache -libtool -config.status -stamp-h -Makefile -.deps -.libs -*.lo -*.la diff --git a/dox/Makefile.am b/dox/Makefile.am deleted file mode 100644 index b06889f..0000000 --- a/dox/Makefile.am +++ /dev/null @@ -1,16 +0,0 @@ -# A list of all the files in the current directory which can be regenerated -MAINTAINERCLEANFILES = Makefile.in - -LDFLAGS = -L/usr/X11R6/lib -INCLUDES = -I. -I$(top_srcdir)/dox -I/usr/X11R6/include \ - -I$(top_srcdir)/src \ - $(X_CFLAGS) -I$(prefix)/include -I$(includedir) \ - -DPREFIX=\""$(prefix)"\" - -LIBOBJS = @LIBOBJS@ - -bin_PROGRAMS = dox2 -dox2_SOURCES = main.c dox.h hotspot.c style.c utils.c style.h -dox2_LDADD = -lX11 - -EXTRA_DIST = diff --git a/dox/dox.h b/dox/dox.h deleted file mode 100644 index ae3c540..0000000 --- a/dox/dox.h +++ /dev/null @@ -1,48 +0,0 @@ -#ifndef _DOX_H_ -#define _DOX_H_ - -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include - -#include "Imlib2.h" -#include "style.h" - -typedef struct __dox_hotspot -{ - char *name; - int x; - int y; - int w; - int h; - struct __dox_hotspot *next; -} DoxHotspot; - -void parse_args( int argc, char **argv ); - -void init_hotspot(); -void add_hotspot( char *target, int x, int y, int w, int h ); -char *check_hotspot( int x, int y ); -void tidy_hotspots(); - -void load_dss( char *file ); - -int __find_string( char *haystack, char *needle ); -char *__stripwhitespace( char *str ); -char *__copystr( char *str, int start, int end ); - -#endif /* _DOX_H_ */ diff --git a/dox/hotspot.c b/dox/hotspot.c deleted file mode 100644 index b7c7897..0000000 --- a/dox/hotspot.c +++ /dev/null @@ -1,51 +0,0 @@ -#include "dox.h" - -DoxHotspot *root; - -void init_hotspot() -{ - root = malloc( sizeof( DoxHotspot ) ); - root->name = strdup( "root" ); - root->x = 0; - root->y = 0; - root->w = 0; - root->h = 0; - root->next = NULL; - printf( "Hotspots initialised.\n" ); -} - -void add_hotspot( char *target, int x, int y, int w, int h ) -{ - DoxHotspot *ptr; - for( ptr = root; ptr->next != NULL; ptr = ptr->next ) - ; - ptr->next = malloc( sizeof( DoxHotspot ) ); - ptr = ptr->next; - ptr->name = strdup( "root" ); - ptr->x = 0; - ptr->y = 0; - ptr->w = 0; - ptr->h = 0; - ptr->next = NULL; - printf( "Hotspot added\n" ); -} - -char *check_hotspot( int x, int y ) -{ - DoxHotspot *ptr; - for( ptr = root; ptr != NULL; ptr = ptr->next ) - { - if( (x >= ptr->x) && (x <= (ptr->x + ptr->w)) && - (y >= ptr->y) && (y <= (ptr->y + ptr->h)) ) - { - printf( "Found Hotspot\n" ); - return ptr->name; - } - } - return NULL; -} - -void tidy_hotspots() -{ - -} diff --git a/dox/main.c b/dox/main.c deleted file mode 100644 index 254b96e..0000000 --- a/dox/main.c +++ /dev/null @@ -1,14 +0,0 @@ -#include - -int main( int argc, char **argv ) -{ - printf( "dox - version 2.0 - Imlib2\n" ); - init_hotspot(); - return 0; -} - -void parse_args( int argc, char **argv ) -{ - printf( "We should parse the args\n" ); - -} diff --git a/dox/style.c b/dox/style.c deleted file mode 100644 index 4a86f09..0000000 --- a/dox/style.c +++ /dev/null @@ -1,6 +0,0 @@ -#include "dox.h" - -void load_dss( char *file ) -{ - -} diff --git a/dox/style.dss b/dox/style.dss deleted file mode 100644 index fcbb09b..0000000 --- a/dox/style.dss +++ /dev/null @@ -1,17 +0,0 @@ -