From af6c301b9578285c4ec941ee25d50b50fec518a1 Mon Sep 17 00:00:00 2001 From: Harco de Hilster Date: Mon, 1 Mar 1999 01:26:11 +0000 Subject: [PATCH] added Makefile[.in] for build using wxGTK method. Note that wxGTK's createall script doesn't yet look this deep, so it's not very usefull now... also fixed some wxGTK compile problems. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@1835 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- utils/ogl/samples/studio/Makefile | 1 + utils/ogl/samples/studio/Makefile.in | 35 +++++++++++++++++++++ utils/ogl/samples/studio/bitmaps/folder.xpm | 29 ----------------- utils/ogl/samples/studio/mainfrm.cpp | 6 ++-- utils/ogl/samples/studio/studio.cpp | 4 --- 5 files changed, 40 insertions(+), 35 deletions(-) create mode 100644 utils/ogl/samples/studio/Makefile create mode 100644 utils/ogl/samples/studio/Makefile.in delete mode 100644 utils/ogl/samples/studio/bitmaps/folder.xpm diff --git a/utils/ogl/samples/studio/Makefile b/utils/ogl/samples/studio/Makefile new file mode 100644 index 0000000000..2b68dc56ed --- /dev/null +++ b/utils/ogl/samples/studio/Makefile @@ -0,0 +1 @@ +include ../../../../setup/general/makedirs diff --git a/utils/ogl/samples/studio/Makefile.in b/utils/ogl/samples/studio/Makefile.in new file mode 100644 index 0000000000..58ce5bd8eb --- /dev/null +++ b/utils/ogl/samples/studio/Makefile.in @@ -0,0 +1,35 @@ +# WXXT base directory +WXBASEDIR=@WXBASEDIR@ + +# set the OS type for compilation +OS=@OS@ +# compile a binary only +RULE=bin + +# define exexutable name +BIN_TARGET=studio +# define binary sources +BIN_CPP_SRC=\ + cspalette.cpp\ + csprint.cpp\ + dialogs.cpp\ + doc.cpp\ + mainfrm.cpp\ + project.cpp\ + shapes.cpp\ + studio.cpp\ + symbols.cpp\ + view.cpp + +#define binary objects +BIN_OBJ=\ + $(BIN_CPP_SRC:.cpp=.o) + +# additional things needed to link +BIN_LINK=-lwx_ogl_gtk + +# additional things needed to compile +ADD_COMPILE=-I$(WXBASEDIR)/utils/ogl/src -I../bitmaps + +# include the definitions now +include ../../../../../template.mak diff --git a/utils/ogl/samples/studio/bitmaps/folder.xpm b/utils/ogl/samples/studio/bitmaps/folder.xpm deleted file mode 100644 index fdabbfbe06..0000000000 --- a/utils/ogl/samples/studio/bitmaps/folder.xpm +++ /dev/null @@ -1,29 +0,0 @@ -/* XPM */ -static char * folder_xpm[] = { -/* width height ncolors chars_per_pixel */ -"16 16 6 1", -/* colors */ -" s None c None", -". c #000000", -"+ c #c0c0c0", -"@ c #808080", -"# c #ffff00", -"$ c #ffffff", -/* pixels */ -" ", -" @@@@@ ", -" @#+#+#@ ", -" @#+#+#+#@@@@@@ ", -" @$$$$$$$$$$$$@.", -" @$#+#+#+#+#+#@.", -" @$+#+#+#+#+#+@.", -" @$#+#+#+#+#+#@.", -" @$+#+#+#+#+#+@.", -" @$#+#+#+#+#+#@.", -" @$+#+#+#+#+#+@.", -" @$#+#+#+#+#+#@.", -" @@@@@@@@@@@@@@.", -" ..............", -" ", -" "}; - diff --git a/utils/ogl/samples/studio/mainfrm.cpp b/utils/ogl/samples/studio/mainfrm.cpp index 0364cdbd4f..e681b8c5be 100644 --- a/utils/ogl/samples/studio/mainfrm.cpp +++ b/utils/ogl/samples/studio/mainfrm.cpp @@ -150,8 +150,10 @@ void csFrame::OnSize(wxSizeEvent& event) // Make sure the correct toolbars are showing for the active view void csFrame::OnIdle(wxIdleEvent& event) { - wxFrame::OnIdle(event); - +/* HH: gtk's wxFrame nor wxWindow have an OnIdle method. Is this a bug? */ +#ifndef __WXGTK__ + wxDocMDIParentFrame::OnIdle(event); +#endif wxSashLayoutWindow* paletteWin = wxGetApp().GetDiagramPaletteSashWindow(); wxSashLayoutWindow* diagramToolBarWin = wxGetApp().GetDiagramToolBarSashWindow(); if (!paletteWin || !diagramToolBarWin) diff --git a/utils/ogl/samples/studio/studio.cpp b/utils/ogl/samples/studio/studio.cpp index 0fce92efe8..87556d57cc 100644 --- a/utils/ogl/samples/studio/studio.cpp +++ b/utils/ogl/samples/studio/studio.cpp @@ -25,10 +25,6 @@ #include "wx/config.h" #include "wx/laywin.h" -#ifdef __WXGTK__ -#include "folder.xpm" -#endif - #include "studio.h" #include "view.h" #include "doc.h"