Canonize all space functions to follow the drawXXXspace and winqreadXXXspace
authorDaniel Dunbar <daniel@zuster.org>
Mon, 24 Mar 2003 00:06:40 +0000 (00:06 +0000)
committerDaniel Dunbar <daniel@zuster.org>
Mon, 24 Mar 2003 00:06:40 +0000 (00:06 +0000)
conventions.

source/blender/include/BIF_space.h
source/blender/include/BSE_drawimasel.h
source/blender/include/BSE_drawipo.h
source/blender/include/BSE_drawview.h
source/blender/src/drawimasel.c
source/blender/src/drawipo.c
source/blender/src/drawview.c
source/blender/src/editimasel.c
source/blender/src/headerbuttons.c
source/blender/src/space.c

index 6f102e11deb1739a315a620d31c65ba856dab48b..33add3085a6f82ee45bf749ee24aa55e4aeaea3e 100644 (file)
@@ -77,14 +77,14 @@ extern       void initipo(struct ScrArea *sa);
 extern       void initview3d(struct ScrArea *sa);
 extern       void newspace(struct ScrArea *sa, int type);
 extern       void set_rects_butspace(struct SpaceButs *buts);
-extern       void winqread3d(unsigned short event, short val, char ascii);
+extern       void winqreadview3dspace(unsigned short event, short val, char ascii);
 extern       void winqreadbutspace(unsigned short event, short val, char ascii);
 extern       void winqreadimagespace(unsigned short event, short val, char ascii);
 extern       void winqreadinfospace(unsigned short event, short val, char ascii);
-extern       void winqreadipo(unsigned short event, short val, char ascii);
+extern       void winqreadipospace(unsigned short event, short val, char ascii);
 extern       void winqreadoopsspace(unsigned short event, short val, char ascii);
 extern       void winqreadnlaspace(unsigned short event, short val, char ascii);
-extern       void winqreadsequence(unsigned short event, short val, char ascii);
+extern       void winqreadseqspace(unsigned short event, short val, char ascii);
 extern       void test_butspace(void);
 extern       void start_game(void);
 
index 3064c53b4d0bae3a83d4946a6fbc6092bd30847e..3eef9faec46bd5c9b7a2fac5580e5bdb241af08b 100644 (file)
@@ -45,7 +45,7 @@ void move_imadir_sli(struct SpaceImaSel *simasel);
 void move_imafile_sli(struct SpaceImaSel *simasel);
 void ima_select_all(struct SpaceImaSel *simasel);
 void pibplay(struct SpaceImaSel *simasel);
-void drawimasel(void);   
+void drawimaselspace(void);   
 
 /*  void calc_hilite(SpaceImaSel *simasel); */
 /*  void ima_select_all(SpaceImaSel *simasel); */
index 17c53fc6e2d89b0cbe16fabb74da06d8aa875b16..b1f92668be5feb3711b2153dd128139f35953efb 100644 (file)
@@ -57,7 +57,7 @@ void calc_scrollrcts          (struct View2D *v2d, int winx, int winy);
 
 int in_ipo_buttons(void);
 void drawscroll(int disptype);
-void drawipo(void);
+void drawipospace(void);
 
 void center_currframe(void);
 void scroll_ipobuts(void);
index 69299255b1cd724a5f2ec85e1b7e77d40ac39584..f0cba1eeb64d891c640afbf980acedc2e9575f4d 100644 (file)
@@ -44,7 +44,7 @@ void two_sided(int val);
 void circf(float x, float y, float rad);
 void circ(float x, float y, float rad);
 void backdrawview3d(int test);
-void drawview3d(void);
+void drawview3dspace(void);
 void drawview3d_render(struct View3D *v3d);
 int update_time(void);
 void calc_viewborder(struct View3D *v3d, struct rcti *viewborder_r);
index a0acd6c23b8110cebe1a9f089f62c48b4f569837..451eff81437da8c737bb001cf9904d9b6233f7aa 100644 (file)
@@ -853,7 +853,7 @@ void pibplay(SpaceImaSel *simasel)
 
 /* ************** hoofdtekenfunktie ************** */
 
-void drawimasel()      /* hoofdtekenfunktie */
+void drawimaselspace() /* hoofdtekenfunktie */
 {
        SpaceImaSel *simasel;
        simasel= curarea->spacedata.first;
index 4b7dbcab05f920b858eb9c6db455dcd65617a20f..a8fdabe5069ab10da49b5ced0a52315576e8fe02 100644 (file)
@@ -1316,7 +1316,7 @@ static void draw_key(SpaceIpo *sipo, int visible)
        setlinestyle(0);
 }
 
-void drawipo(void)
+void drawipospace(void)
 {
        SpaceIpo *sipo= curarea->spacedata.first;
        View2D *v2d= &sipo->v2d;
index 60b8961abf5572c4911aeb40f1cc202fd79fa69b..0199f3865c92a2c85db3e3d1f20c2d68df85aa9e 100644 (file)
@@ -784,7 +784,7 @@ static void draw_view_icon(void)
        glDisable(GL_BLEND);
 }
 
-void drawview3d(void)
+void drawview3dspace(void)
 {
        Base *base;
        Object *ob;
index c7843789d6a88526ca28ae96c1b5dbad652d35e3..8052de6b64c0460d8b5d3efb581986438e79e49d 100644 (file)
 #include "mydevice.h"
 #include "interface.h"
 
-/* locals */
-void draw_icon_imasel(void);
-void winqreadimasel(unsigned short event, short val, char ascii);
-
 #define XIC 20
 #define YIC 21
 
@@ -82,12 +78,12 @@ void winqreadimasel(unsigned short event, short val, char ascii);
 extern char *fsmenu;
 
 
-void draw_icon_imasel(void)
+static void draw_icon_imasel(void)
 {
        scrarea_queue_winredraw(curarea);
 }
 
-void winqreadimasel(unsigned short event, short val, char ascii)
+void winqreadimaselspace(unsigned short event, short val, char ascii)
 {
        SpaceImaSel *simasel;
        
index a6d2ce57a613f1c25d997fa0de97c34826931cd0..e4f02b92a196d4f13ff8a3e9d615d0b6544b8db3 100644 (file)
@@ -2462,8 +2462,8 @@ static void do_info_editmenu(void *arg, int event)
        case 2:
                /* Circle Select */
                /*if(select_area(SPACE_VIEW3D)) {
-                       winqread3d(BKEY, 1, 0);
-                       winqread3d(BKEY, 1, 0);
+                       winqreadview3dspace(BKEY, 1, 0);        // XXX - kill me
+                       winqreadview3dspace(BKEY, 1, 0);        // XXX - kill me
                }*/
                break;
        case 3:
@@ -2471,14 +2471,14 @@ static void do_info_editmenu(void *arg, int event)
                if(select_area(SPACE_VIEW3D)) {
                        oldqual = G.qual;
                        G.qual = LR_SHIFTKEY;
-                       winqread3d(DKEY, 1, 0);
+                       winqreadview3dspace(DKEY, 1, 0);        // XXX - kill me
                        G.qual = oldqual;
                }
                break;
        case 4:
                /* Delete */
                if(select_area(SPACE_VIEW3D)) {
-                       winqread3d(XKEY, 1, 0);
+                       winqreadview3dspace(XKEY, 1, 0);        // XXX - kill me
                }
                break;
        case 5:
@@ -2534,7 +2534,7 @@ static void do_info_editmenu(void *arg, int event)
                if(select_area(SPACE_VIEW3D)) {
                        oldqual = G.qual;
                        G.qual = LR_SHIFTKEY;
-                       winqread3d(WKEY, 1, 0);
+                       winqreadview3dspace(WKEY, 1, 0);        // XXX - kill me
                        G.qual = oldqual;
                }
                break;
@@ -2543,7 +2543,7 @@ static void do_info_editmenu(void *arg, int event)
                if(select_area(SPACE_VIEW3D)) {
                        oldqual = G.qual;
                        G.qual = LR_SHIFTKEY;
-                       winqread3d(SKEY, 1, 0);
+                       winqreadview3dspace(SKEY, 1, 0);        // XXX - kill me
                        G.qual = oldqual;
                }
                break;
@@ -3930,7 +3930,7 @@ void do_ipo_buttons(short event)
        case B_IPOSHOWKEY:
                /* waarde omkeren vanwege winqread */
                G.sipo->showkey= 1-G.sipo->showkey;
-               winqreadipo(KKEY, 1, 0);
+               winqreadipospace(KKEY, 1, 0);           // XXX - kill me
                break;
        case B_VIEW2DZOOM:
                viewmovetemp= 0;
index 6ce12f4ca8e914f65a00db4fc0f1852a1e2acf09..03e7416e1796794c494b434b8c7d5995230f1a1e 100644 (file)
@@ -153,7 +153,7 @@ void free_soundspace(SpaceSound *ssound);
 
 /* ************* SPACE: VIEW3D  ************* */
 
-/*  extern void drawview3d(); BSE_drawview.h */
+/*  extern void drawview3dspace(); BSE_drawview.h */
 
 
 void copy_view3d_lock(short val)
@@ -419,7 +419,7 @@ static void align_view_to_selected(View3D *v3d)
        }
 }
 
-void winqread3d(unsigned short event, short val, char ascii)
+void winqreadview3dspace(unsigned short event, short val, char ascii)
 {
        View3D *v3d= curarea->spacedata.first;
        Object *ob;
@@ -1102,7 +1102,7 @@ void changeview2d()
        myortho2(G.v2d->cur.xmin, G.v2d->cur.xmax, G.v2d->cur.ymin, G.v2d->cur.ymax);
 }
 
-void winqreadipo(unsigned short event, short val, char ascii)
+void winqreadipospace(unsigned short event, short val, char ascii)
 {
        SpaceIpo *sipo= curarea->spacedata.first;
        View2D *v2d= &sipo->v2d;
@@ -1506,7 +1506,7 @@ void winqreadbutspace(unsigned short event, short val, char ascii)
                case PADPLUSKEY:
                case PADMINUS:
                        val= SPACE_BUTS;
-                       winqreadipo(event, val, 0);
+                       winqreadipospace(event, val, 0);        // XXX - kill me
                        break;
                case RENDERPREVIEW:
                        BIF_previewrender(sbuts);
@@ -1535,7 +1535,7 @@ void winqreadbutspace(unsigned short event, short val, char ascii)
                                areawinset(sa3d->win);
                                
                                if(event==PKEY) start_game();
-                               else if(event==ZKEY) winqread3d(event, val, 0);
+                               else if(event==ZKEY) winqreadview3dspace(event, val, 0);        // XXX - kill me
                                else persptoetsen(event);
                                
                                scrarea_queue_winredraw(sa3d);
@@ -1635,7 +1635,7 @@ void extern_set_butspace(int fkey)
 
 /*  extern void drawseqspace(); BIF_drawseq.h */
 
-void winqreadsequence(unsigned short event, short val, char ascii)
+void winqreadseqspace(unsigned short event, short val, char ascii)
 {
        SpaceSeq *sseq= curarea->spacedata.first;
        View2D *v2d= &sseq->v2d;
@@ -2145,8 +2145,8 @@ void init_imagespace(ScrArea *sa)
 
 /* ******************** SPACE: IMASEL ********************** */
 
-extern void drawimasel(void);
-extern void winqreadimasel(unsigned short, short, char ascii);
+extern void drawimaselspace(void);
+extern void winqreadimaselspace(unsigned short, short, char ascii);
 
 
 /* alles naar imasel.c */
@@ -2962,7 +2962,7 @@ SpaceType *spaceimasel_get_type(void)
        
        if (!st) {
                st= spacetype_new("Imasel");
-               spacetype_set_winfuncs(st, drawimasel, NULL, winqreadimasel);
+               spacetype_set_winfuncs(st, drawimaselspace, NULL, winqreadimaselspace);
        }
 
        return st;
@@ -2984,7 +2984,7 @@ SpaceType *spaceipo_get_type(void)
        
        if (!st) {
                st= spacetype_new("Ipo");
-               spacetype_set_winfuncs(st, drawipo, changeview2d, winqreadipo);
+               spacetype_set_winfuncs(st, drawipospace, changeview2d, winqreadipospace);
        }
 
        return st;
@@ -3017,7 +3017,7 @@ SpaceType *spaceseq_get_type(void)
        
        if (!st) {
                st= spacetype_new("Sequence");
-               spacetype_set_winfuncs(st, drawseqspace, changeview2d, winqreadsequence);
+               spacetype_set_winfuncs(st, drawseqspace, changeview2d, winqreadseqspace);
        }
 
        return st;
@@ -3050,7 +3050,7 @@ SpaceType *spaceview3d_get_type(void)
        
        if (!st) {
                st= spacetype_new("View3D");
-               spacetype_set_winfuncs(st, drawview3d, changeview3d, winqread3d);
+               spacetype_set_winfuncs(st, drawview3dspace, changeview3d, winqreadview3dspace);
        }
 
        return st;