wxPanoViewer continue
Bruno Postle
bruno at postle.net
Thu Jul 10 18:44:34 BST 2003
On Thu 10-Jul-2003 at 06:23:48PM +0200, Kai-Uwe Behrmann wrote:
>
> Is it right You dont develop panoviewer any longer? So I would
> make an new distribution if I've got some changes. Bruno Postle
> made an rpm-format installation file suitable for linux. I would
> like ask him to take distributing panoviewer further.
I forgot to pass on the patches that were needed to get panoviewer
running on linux. Basically; I disabled the fullscreen feature,
removed a button with a bmp image that wouldn't load, added a
makefile (copied from elsewhere) and did something else that I don't
really understand:
-void PanoViewer::ShowControl ( bool show = TRUE )
+void PanoViewer::ShowControl ( bool show )
..I guess this is why my version doesn't have any controls :-)
The original source is http://www.bldigital.com/source40.zip
My patches attached.
--
Bruno
-------------- next part --------------
diff -Nbaur foo-orig/dummy.cpp foo/dummy.cpp
--- foo-orig/dummy.cpp 2000-04-12 22:13:06.000000000 +0100
+++ foo/dummy.cpp 2003-05-07 21:27:56.000000000 +0100
@@ -98,7 +98,7 @@
// Load our control
wxImage p;
- p.LoadFile("control.bmp");
+ //p.LoadFile("control.bmp");
pano1->SetControl(p, menuView);
pano1->SetResolution(300);
@@ -124,11 +124,11 @@
if ( !isFullScreen )
{
pano1->ShowControl();
- ShowFullScreen(TRUE);
+ //ShowFullScreen(TRUE);
isFullScreen = TRUE;
} else {
pano1->ShowControl(FALSE);
- ShowFullScreen(FALSE);
+ //ShowFullScreen(FALSE);
isFullScreen = FALSE;
}
}
-------------- next part --------------
diff -Nbaur foo-orig/panoviewer.cpp foo/panoviewer.cpp
--- foo-orig/panoviewer.cpp 2000-04-12 22:12:44.000000000 +0100
+++ foo/panoviewer.cpp 2003-05-06 22:19:16.000000000 +0100
@@ -238,7 +238,8 @@
}
-void PanoViewer::ShowControl ( bool show = TRUE )
+//void PanoViewer::ShowControl ( bool show = TRUE )
+void PanoViewer::ShowControl ( bool show )
{
isControlShowing = show;
Refresh(FALSE);
-------------- next part --------------
diff -Nbaur foo-orig/Makefile foo/Makefile
--- foo-orig/Makefile 1970-01-01 01:00:00.000000000 +0100
+++ foo/Makefile 2003-05-06 22:12:52.000000000 +0100
@@ -0,0 +1,19 @@
+CC = gcc
+
+PROGRAM = panoviewer
+
+OBJECTS = panoviewextractor.o panoviewer.o panolib.o printerror.o dummy.o
+
+.SUFFIXES: .o .cpp
+
+.cpp.o :
+ $(CC) $(INCLUDE) -c `wx-config --cflags` -o $@ $<
+
+all: $(PROGRAM)
+
+$(PROGRAM): $(OBJECTS)
+ $(CC) -o $(PROGRAM) $(OBJECTS) `wx-config --libs`
+
+clean:
+ rm -f *.o $(PROGRAM)
+
More information about the ptX
mailing list