gzz-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Gzz-commits] gzz/gzz/modules/pp PPView2.java


From: Matti Katila
Subject: [Gzz-commits] gzz/gzz/modules/pp PPView2.java
Date: Thu, 21 Nov 2002 09:30:31 -0500

CVSROOT:        /cvsroot/gzz
Module name:    gzz
Changes by:     Matti Katila <address@hidden>   02/11/21 09:30:31

Modified files:
        gzz/modules/pp : PPView2.java 

Log message:
        "New paper" -TextVob added.

CVSWeb URLs:
http://savannah.gnu.org/cgi-bin/viewcvs/gzz/gzz/gzz/modules/pp/PPView2.java.diff?tr1=1.17&tr2=1.18&r1=text&r2=text

Patches:
Index: gzz/gzz/modules/pp/PPView2.java
diff -u gzz/gzz/modules/pp/PPView2.java:1.17 
gzz/gzz/modules/pp/PPView2.java:1.18
--- gzz/gzz/modules/pp/PPView2.java:1.17        Wed Nov  6 12:41:22 2002
+++ gzz/gzz/modules/pp/PPView2.java     Thu Nov 21 09:30:31 2002
@@ -27,6 +27,7 @@
 import gzz.vob.*;
 import gzz.vob.impl.*;
 import gzz.vob.buoy.*;
+import gzz.vob.vobs.*;
 import gzz.view.*;
 import gzz.*;
 import java.awt.Dimension;
@@ -385,6 +386,15 @@
            // the left panel
            Cell p = main_vc.getAccursed().h(d.contains).h(d.d1).s(d.d1);
            float x = 0.5f * leftPanelWidth;
+
+           // put the "New paper" -text
+           TextVob new_button = new TextVob(style, "New paper");
+           float scale = style.getScaleByHeight(40);
+           int button_cs = vs.orthoCS(0, "NEW_BUTTON", 0, 0, 0,
+                     new_button.getHeight(scale) + new_button.getDepth(scale),
+                     new_button.getHeight(scale) + new_button.getDepth(scale));
+           vs.map.put(new_button, button_cs);
+
            for(float y = 1.5f*leftPanelObjectHeight; p != null; 
                            y += leftPanelObjectHeight) {
                int ctr = ((GLVobCoorder)vs.coords).affineCoordsys(0, 0,




reply via email to

[Prev in Thread] Current Thread [Next in Thread]