cvs: pear /Gtk_MDB_Designer Designer.php /Gtk_MDB_Designer/Designer Designer.glade /Gtk_MDB_Designer/scripts gtkmdbdesigner.bat
| From: | Alan Knowles | Date: | Tue, 01 Apr 2003 03:06:15 +0000 |
| Subject: | cvs: pear /Gtk_MDB_Designer Designer.php /Gtk_MDB_Designer/Designer Designer.glade /Gtk_MDB_Designer/scripts gtkmdbdesigner.bat | ||
| Groups: | php.pear.cvs | ||
| Request: | Send a blank email to pear-cvs+get-9693@lists.php.net to get a copy of this message | ||
alan_k Mon Mar 31 22:06:15 2003 EDT
Modified files:
/pear/Gtk_MDB_Designer Designer.php
/pear/Gtk_MDB_Designer/Designer Designer.glade
/pear/Gtk_MDB_Designer/scripts gtkmdbdesigner.bat
Log:
windows fixes
Index: pear/Gtk_MDB_Designer/Designer.php
diff -u pear/Gtk_MDB_Designer/Designer.php:1.12 pear/Gtk_MDB_Designer/Designer.php:1.13
--- pear/Gtk_MDB_Designer/Designer.php:1.12 Sun Mar 30 08:20:34 2003
+++ pear/Gtk_MDB_Designer/Designer.php Mon Mar 31 22:06:15 2003
@@ -16,7 +16,7 @@
// | Authors: Alan Knowles <alan@akbkhome.com> |
// +----------------------------------------------------------------------+
//
-// $Id: Designer.php,v 1.12 2003/03/30 13:20:34 alan_k Exp $
+// $Id: Designer.php,v 1.13 2003/04/01 03:06:15 alan_k Exp $
//
// a database designer
//
@@ -145,7 +145,12 @@
//$new->connect('activate',array(&$this,'showSaveAsDialog'));
-
+ $scrolledwindow = $this->glade->get_widget('layoutScrollbars');
+ $hadj = $scrolledwindow->get_hadjustment();
+ $vadj = $scrolledwindow->get_vadjustment();
+ $hadj->connect('value-changed',
array(&$this,'callbackWindowsKludge'));
+ $vadj->connect('value-changed',
array(&$this,'callbackWindowsKludge'));
+
$window = $this->glade->get_widget('window');
$window->connect('destroy',
array(&$this,'callbackShutdown'));
@@ -237,17 +242,26 @@
if (@$this->pixmap) {
return true;
}
+ if (!$this->drawingArea->window) {
+ return;
+ }
+
$this->pixmap = new GdkPixmap($this->drawingArea->window,
//$this->database->maxX ,$this->database->maxY,
- 10000,10000
+ 5000,5000
-1);
-
+ if (!$this->pixmap) {
+ return;
+ }
+ $maxX = $this->database ? $this->database->maxX : 500;
+ $maxY = $this->database ? $this->database->maxY : 500;
+
gdk::draw_rectangle($this->pixmap,
$this->drawingArea->style->white_gc,
true, 0, 0,
//10000,10000);
- $this->database->maxX ,$this->database->maxY);
+ $maxX ,$maxY);
// flash cursor GC
$window = $this->drawingArea->window;
$cmap = $this->drawingArea->get_colormap();
@@ -435,7 +449,20 @@
$this->database->saveLinksIni();
}
-
+
+ /**
+ * Windows Kludge for broken gtklayout
+ *
+ * @access public|private
+ */
+
+ function callbackWindowsKludge()
+ {
+ //echo "windows kludge";
+ $this->layout->queue_draw();
+ $this->layout->hide();
+ $this->layout->show();
+ }
/* these could probably be removed by
connect_object('...',$this->glade->get_widget('dialog_new'),'hide')
*/
Index: pear/Gtk_MDB_Designer/Designer/Designer.glade
diff -u pear/Gtk_MDB_Designer/Designer/Designer.glade:1.2
pear/Gtk_MDB_Designer/Designer/Designer.glade:1.3
--- pear/Gtk_MDB_Designer/Designer/Designer.glade:1.2 Sat Mar 29 09:58:01 2003
+++ pear/Gtk_MDB_Designer/Designer/Designer.glade Mon Mar 31 22:06:15 2003
@@ -757,7 +757,7 @@
<widget>
<class>GtkScrolledWindow</class>
- <name>scrolledwindow1</name>
+ <name>layoutScrollbars</name>
<hscrollbar_policy>GTK_POLICY_AUTOMATIC</hscrollbar_policy>
<vscrollbar_policy>GTK_POLICY_AUTOMATIC</vscrollbar_policy>
<hupdate_policy>GTK_UPDATE_CONTINUOUS</hupdate_policy>
Index: pear/Gtk_MDB_Designer/scripts/gtkmdbdesigner.bat
diff -u pear/Gtk_MDB_Designer/scripts/gtkmdbdesigner.bat:1.1
pear/Gtk_MDB_Designer/scripts/gtkmdbdesigner.bat:1.2
--- pear/Gtk_MDB_Designer/scripts/gtkmdbdesigner.bat:1.1 Sat Mar 22 11:54:07 2003
+++ pear/Gtk_MDB_Designer/scripts/gtkmdbdesigner.bat Mon Mar 31 22:06:15 2003
@@ -1,28 +1,28 @@
-@ECHO OFF
-
-REM ----------------------------------------------------------------------
-REM PHP version 4.0
-REM ----------------------------------------------------------------------
-REM Copyright (c) 1997-2002 The PHP Group
-REM ----------------------------------------------------------------------
-REM This source file is subject to version 2.02 of the PHP license,
-REM that is bundled with this package in the file LICENSE, and is
-REM available at through the world-wide-web at
-REM http://www.php.net/license/2_02.txt.
-REM If you did not receive a copy of the PHP license and are unable to
-REM obtain it through the world-wide-web, please send a note to
-REM license@php.net so we can mail you a copy immediately.
-REM ----------------------------------------------------------------------
-REM Authors: Alexander Merz (alexmerz@php.net)
-REM ----------------------------------------------------------------------
-REM
-REM $Id: gtkmdbdesigner.bat,v 1.1 2003/03/22 16:54:07 alan_k Exp $
-
-REM change this lines to match the paths of your system
-REM -------------------
-
-set PHP_BIN=@prefix@\bin\php.exe
-set PEAR_PATH=@include_path@
-
-%PHP_BIN% -C -d include_path=%PEAR_PATH% -f %PEAR_PATH%\scripts\phpcodedoc.in %1 %2 %3 %4 %5 %6 %7
%8 %9
+@ECHO OFF
+
+REM ----------------------------------------------------------------------
+REM PHP version 4.0
+REM ----------------------------------------------------------------------
+REM Copyright (c) 1997-2002 The PHP Group
+REM ----------------------------------------------------------------------
+REM This source file is subject to version 2.02 of the PHP license,
+REM that is bundled with this package in the file LICENSE, and is
+REM available at through the world-wide-web at
+REM http://www.php.net/license/2_02.txt.
+REM If you did not receive a copy of the PHP license and are unable to
+REM obtain it through the world-wide-web, please send a note to
+REM license@php.net so we can mail you a copy immediately.
+REM ----------------------------------------------------------------------
+REM Authors: Alexander Merz (alexmerz@php.net)
+REM ----------------------------------------------------------------------
+REM
+REM $Id: gtkmdbdesigner.bat,v 1.2 2003/04/01 03:06:15 alan_k Exp $
+
+REM change this lines to match the paths of your system
+REM -------------------
+
+set PHP_BIN=@prefix@\bin\php.exe
+set PEAR_PATH=@include_path@
+
+%PHP_BIN% -C -d include_path=%PEAR_PATH% -f %PEAR_PATH%\gtkmdbdesigner.in %1 %2 %3 %4 %5 %6 %7 %8
%9
@ECHO ON