From: Andrea Zagli Date: Sun, 1 Jul 2007 07:50:37 +0000 (+0000) Subject: Managed objects deletion. X-Git-Url: https://saetta.ns0.it/gitweb?a=commitdiff_plain;h=34be2a1acaae677296a5613b5578b0cbdabaf81d;p=reptool%2Fgreptool Managed objects deletion. Created GUI for objects properties. git-svn-id: svn+ssh://saetta.homelinux.org/svn/greptool/trunk@9 76169498-11ee-428b-941f-28d7a79d5cb2 --- diff --git a/data/greptool/glade/greptool.glade b/data/greptool/glade/greptool.glade index d9e1a3f..e74f558 100644 --- a/data/greptool/glade/greptool.glade +++ b/data/greptool/glade/greptool.glade @@ -122,6 +122,7 @@ gtk-delete True True + @@ -535,40 +536,27 @@ You should have received a copy of the GNU General Public License along with Nau 4 3 - - True - 0 - Provider - - - GTK_FILL - - - - - + True - 0 - Connection String + True + 1 + 2 1 2 - GTK_FILL - + True - 0 - SQL - 2 - 3 + 1 + 2 GTK_FILL - + GTK_FILL @@ -591,26 +579,39 @@ You should have received a copy of the GNU General Public License along with Nau - + True + 0 + SQL - 1 - 2 + 2 + 3 GTK_FILL - GTK_FILL + - + True - True + 0 + Connection String - 1 - 2 1 2 + GTK_FILL + + + + + + True + 0 + Provider + + + GTK_FILL @@ -648,27 +649,19 @@ You should have received a copy of the GNU General Public License along with Nau 3 3 - - True - 0 - Height - - - GTK_FILL - - - - - + True True - 1 1 10000 1 10 10 - 1 - 2 + True + 0 + True 1 2 + 1 + 2 + GTK_FILL @@ -686,18 +679,26 @@ You should have received a copy of the GNU General Public License along with Nau - + True True - True - 0 - True + 1 1 10000 1 10 10 + 1 + 2 1 2 - 1 - 2 + + + + + + True + 0 + Height + + GTK_FILL @@ -744,27 +745,19 @@ You should have received a copy of the GNU General Public License along with Nau 3 3 - - True - 0 - Height - - - GTK_FILL - - - - - + True True - 1 1 10000 1 10 10 - 1 - 2 + True + 0 + True 1 2 + 1 + 2 + GTK_FILL @@ -782,18 +775,26 @@ You should have received a copy of the GNU General Public License along with Nau - + True True - True - 0 - True + 1 1 10000 1 10 10 + 1 + 2 1 2 - 1 - 2 + + + + + + True + 0 + Height + + GTK_FILL @@ -898,35 +899,32 @@ You should have received a copy of the GNU General Public License along with Nau 3 3 - + True GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK - 0 - Width + A4 +Custom + - 1 - 2 - GTK_FILL - + 1 + 2 - + True GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK 0 - Height + Type - 2 - 3 GTK_FILL - + True True GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK @@ -936,11 +934,12 @@ You should have received a copy of the GNU General Public License along with Nau 1 2 - 1 + 2 + 3 - + True True GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK @@ -950,33 +949,35 @@ You should have received a copy of the GNU General Public License along with Nau 1 2 - 2 - 3 + 1 - + True GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK 0 - Type + Height + 2 + 3 GTK_FILL - + True GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK - A4 -Custom - + 0 + Width - 1 - 2 + 1 + 2 + GTK_FILL + @@ -1019,61 +1020,22 @@ Custom 3 3 - - True - GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK - 0 - Top - - - GTK_FILL - - - - - - True - GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK - 0 - Right - - - 1 - 2 - GTK_FILL - - - - - - True - GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK - 0 - Bottom - - - 2 - 3 - GTK_FILL - - - - - + True + True GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK - 0 - Left + 0 0 10000 1 10 10 + 2 + 1 + 2 3 4 - GTK_FILL - - + True True GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK @@ -1083,6 +1045,8 @@ Custom 1 2 + 2 + 3 @@ -1101,7 +1065,7 @@ Custom - + True True GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK @@ -1111,23 +1075,60 @@ Custom 1 2 - 2 - 3 - + True - True GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK - 0 0 10000 1 10 10 - 2 + 0 + Left - 1 - 2 3 4 + GTK_FILL + + + + + + True + GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK + 0 + Bottom + + + 2 + 3 + GTK_FILL + + + + + + True + GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK + 0 + Right + + + 1 + 2 + GTK_FILL + + + + + + True + GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK + 0 + Top + + + GTK_FILL + @@ -1169,31 +1170,34 @@ Custom 2 4 - + + True + GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK + 0 + Height + + + + True True GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK - 0 - True + 1 1 10000 1 10 10 + 2 - 3 + 1 4 - 1 - 2 - + True - True GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK - 0 - True + 0 + On First Page - 1 - 2 1 2 @@ -1213,38 +1217,35 @@ Custom - + True + True GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK - 0 - On First Page + 0 + True + 1 + 2 1 2 - + True True GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK - 1 1 10000 1 10 10 - 2 + 0 + True - 1 + 3 4 + 1 + 2 - - - True - GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK - 0 - Height - - @@ -1286,31 +1287,34 @@ Custom 2 4 - + + True + GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK + 0 + Height + + + + True True GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK - 0 - True + 1 1 10000 1 10 10 + 2 - 3 + 1 4 - 1 - 2 - + True - True GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK - 0 - True + 0 + On First Page - 1 - 2 1 2 @@ -1330,38 +1334,35 @@ Custom - + True + True GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK - 0 - On First Page + 0 + True + 1 + 2 1 2 - + True True GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK - 1 1 10000 1 10 10 - 2 + 0 + True - 1 + 3 4 + 1 + 2 - - - True - GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK - 0 - Height - - @@ -1490,24 +1491,10 @@ Custom 3 2 - - True - True - GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK - 0 0 100 1 10 10 - - - 1 - 2 - + - - True - GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK - 0 - Size - + @@ -1516,10 +1503,24 @@ Custom - + + True + GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK + 0 + Size + - + + True + True + GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK + 0 0 100 1 10 10 + + + 1 + 2 + @@ -1606,35 +1607,31 @@ Custom 3 3 - + True GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK - 0 - Width + A4 +Custom - 1 - 2 - GTK_FILL - + 1 + 2 - + True GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK 0 - Height + Type - 2 - 3 GTK_FILL - + True True GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK @@ -1644,12 +1641,12 @@ Custom 1 2 - 1 - 2 + 2 + 3 - + True True GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK @@ -1659,32 +1656,36 @@ Custom 1 2 - 2 - 3 + 1 + 2 - + True GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK 0 - Type + Height + 2 + 3 GTK_FILL - + True GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK - A4 -Custom + 0 + Width - 1 - 2 + 1 + 2 + GTK_FILL + @@ -1727,43 +1728,61 @@ Custom 3 3 - + True + True GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK - 0 - Top + 0 0 10000 1 10 10 + 2 - GTK_FILL - + 1 + 2 + 3 + 4 - + True + True GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK - 0 - Right + 0 0 10000 1 10 10 + 2 + 1 + 2 + 2 + 3 + + + + + True + True + GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK + 0 0 10000 1 10 10 + 2 + + + 1 + 2 1 2 - GTK_FILL - - + True + True GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK - 0 - Bottom + 0 0 10000 1 10 10 + 2 - 2 - 3 - GTK_FILL - + 1 + 2 @@ -1781,61 +1800,43 @@ Custom - + True - True GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK - 0 0 10000 1 10 10 - 2 + 0 + Bottom - 1 - 2 + 2 + 3 + GTK_FILL + - + True - True GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK - 0 0 10000 1 10 10 - 2 + 0 + Right - 1 - 2 1 2 + GTK_FILL + - - True - True - GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK - 0 0 10000 1 10 10 - 2 - - - 1 - 2 - 2 - 3 - - - - + True - True GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK - 0 0 10000 1 10 10 - 2 + 0 + Top - 1 - 2 - 3 - 4 + GTK_FILL + @@ -1897,19 +1898,6 @@ Custom GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK 3 2 - - - True - True - True - GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK - 0 - - - 1 - 2 - - @@ -1934,6 +1922,19 @@ Custom + + + True + True + True + GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK + 0 + + + 1 + 2 + + @@ -2021,4 +2022,2133 @@ Custom + + GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK + Object Properties - GRepTool + True + w_main + + + True + GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK + 3 + + + True + GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK + 6 + 2 + 3 + + + True + True + GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK + 0 0 360 1 10 10 + 2 + + + 1 + 2 + 5 + 6 + + + + + True + GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK + 0 + Rotation + + + 5 + 6 + GTK_FILL + + + + + True + True + GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK + 0 0 10000 1 10 10 + 2 + + + 1 + 2 + 4 + 5 + + + + + True + True + GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK + 0 0 10000 1 10 10 + 2 + + + 1 + 2 + 3 + 4 + + + + + True + GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK + 0 + Height + + + 4 + 5 + GTK_FILL + + + + + True + GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK + 0 + Width + + + 3 + 4 + GTK_FILL + + + + + True + True + GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK + 0 0 10000 1 10 10 + 2 + + + 1 + 2 + 2 + 3 + + + + + True + True + GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK + 0 0 10000 1 10 10 + 2 + + + 1 + 2 + 1 + 2 + + + + + True + True + GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK + + + 1 + 2 + + + + + True + GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK + 0 + Y + + + 2 + 3 + GTK_FILL + + + + + True + GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK + 0 + X + + + 1 + 2 + GTK_FILL + + + + + True + GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK + 0 + Name + + + GTK_FILL + + + + + False + + + + + + + + + + GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK + + + True + GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK + + + True + True + GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK + + + True + GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK + + + True + GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK + 0 + GTK_SHADOW_NONE + + + True + GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK + 12 + + + True + GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK + 2 + 4 + 3 + + + True + GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK + 0 + Top + + + GTK_FILL + + + + + True + GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK + 0 + Bottom + + + 1 + 2 + GTK_FILL + + + + + True + GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK + 0 + Right + + + 2 + 3 + GTK_FILL + + + + + True + GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK + 0 + Left + + + 2 + 3 + 1 + 2 + GTK_FILL + + + + + True + True + GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK + 0 0 100 1 10 10 + + + 1 + 2 + + + + + True + True + GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK + 0 0 100 1 10 10 + + + 1 + 2 + 1 + 2 + + + + + True + True + GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK + 0 0 100 1 10 10 + + + 3 + 4 + + + + + True + True + GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK + 0 0 100 1 10 10 + + + 3 + 4 + 1 + 2 + + + + + + + + + True + GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK + Width + True + + + label_item + + + + + False + + + + + True + GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK + 0 + GTK_SHADOW_NONE + + + True + GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK + 12 + + + True + GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK + 2 + 4 + 3 + + + True + GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK + 0 + Top + + + GTK_FILL + + + + + True + GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK + 0 + Right + + + 2 + 3 + GTK_FILL + + + + + True + GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK + 0 + Bottom + + + 1 + 2 + GTK_FILL + + + + + True + GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK + 0 + Left + + + 2 + 3 + 1 + 2 + GTK_FILL + + + + + True + True + True + GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_MOTION_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK + 0 + #000000000000 + + + 1 + 2 + GTK_FILL + + + + + True + True + True + GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_MOTION_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK + 0 + #000000000000 + + + 1 + 2 + 1 + 2 + GTK_FILL + + + + + True + True + True + GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_MOTION_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK + 0 + #000000000000 + + + 3 + 4 + GTK_FILL + + + + + True + True + True + GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_MOTION_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK + 0 + #000000000000 + + + 3 + 4 + 1 + 2 + GTK_FILL + + + + + + + + + True + GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK + Color + True + + + label_item + + + + + False + 1 + + + + + True + GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK + 0 + GTK_SHADOW_NONE + + + True + GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK + 12 + + + True + GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK + 2 + 4 + 3 + + + + + + + + + + + + + + + True + GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK + 0 + Top + + + GTK_FILL + + + + + True + GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK + 0 + Bottom + + + 1 + 2 + GTK_FILL + + + + + True + GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK + 0 + Right + + + 2 + 3 + GTK_FILL + + + + + True + GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK + 0 + Left + + + 2 + 3 + 1 + 2 + GTK_FILL + + + + + + + + + True + GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK + Style + True + + + label_item + + + + + False + 2 + + + + + False + + + + + True + GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK + Border + + + tab + False + False + + + + + True + GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK + 3 + 2 + 3 + 3 + + + True + GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK + 0 + Font + + + GTK_FILL + GTK_FILL + + + + + True + True + True + GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK + 0 + + + 1 + 2 + GTK_FILL + + + + + True + GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK + 0 + Strike + + + 1 + 2 + GTK_FILL + GTK_FILL + + + + + True + GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK + 0 + Color + + + 2 + 3 + GTK_FILL + GTK_FILL + + + + + True + True + GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK + 0 + True + + + 1 + 2 + 1 + 2 + GTK_FILL + + + + + True + True + True + GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_MOTION_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK + 0 + #000000000000 + + + 1 + 2 + 2 + 3 + GTK_FILL + + + + + 1 + False + + + + + True + GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK + Font + + + tab + 1 + False + False + + + + + True + GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK + + + True + GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK + 0 + GTK_SHADOW_NONE + + + True + GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK + 12 + + + True + GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK + 2 + 2 + 3 + + + True + GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK + 0 + Horizontal + + + GTK_FILL + GTK_FILL + + + + + True + GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK + 0 + Vertical + + + 1 + 2 + GTK_FILL + GTK_FILL + + + + + True + GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK + + + 1 + 2 + GTK_FILL + + + + + True + GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK + + + 1 + 2 + 1 + 2 + GTK_FILL + + + + + + + + + True + GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK + Alignment + True + + + label_item + + + + + False + + + + + True + GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK + 0 + GTK_SHADOW_NONE + + + True + GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK + 12 + + + True + GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK + 1 + 2 + 3 + + + True + GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK + 0 + Source + + + GTK_FILL + + + + + True + True + GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK + GTK_POLICY_AUTOMATIC + GTK_POLICY_AUTOMATIC + + + True + True + GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK + + + + + 1 + 2 + + + + + + + + + True + GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK + Data + True + + + label_item + + + + + False + 1 + + + + + True + GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK + 0 + GTK_SHADOW_NONE + + + True + GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK + 12 + + + True + GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK + 2 + 2 + 3 + + + True + GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK + 0 + Background Color + + + GTK_FILL + GTK_FILL + + + + + True + True + True + GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_MOTION_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK + 0 + #000000000000 + + + 1 + 2 + GTK_FILL + + + + + True + GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK + 0 + GTK_SHADOW_NONE + + + True + GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK + 12 + + + True + GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK + 2 + 4 + 2 + + + True + GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK + 0 + Top + + + GTK_FILL + GTK_FILL + + + + + True + GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK + 0 + Right + + + 2 + 3 + GTK_FILL + GTK_FILL + + + + + True + GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK + 0 + Bottom + + + 1 + 2 + GTK_FILL + GTK_FILL + + + + + True + GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK + 0 + Left + + + 2 + 3 + 1 + 2 + GTK_FILL + GTK_FILL + + + + + True + True + GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK + 0 0 100 1 10 10 + + + 1 + 2 + GTK_FILL + + + + + True + True + GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK + 0 0 100 1 10 10 + + + 1 + 2 + 1 + 2 + GTK_FILL + + + + + True + True + GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK + 0 0 100 1 10 10 + + + 3 + 4 + GTK_FILL + + + + + True + True + GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK + 0 0 100 1 10 10 + + + 3 + 4 + 1 + 2 + GTK_FILL + + + + + + + + + True + GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK + Padding + True + + + label_item + + + + + 2 + 1 + 2 + GTK_FILL + + + + + + + + + True + GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK + Other + True + + + label_item + + + + + False + 2 + + + + + 2 + False + + + + + True + GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK + General + + + tab + 2 + False + False + + + + + + + + + GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK + + + True + GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK + + + True + GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK + 0 + GTK_SHADOW_NONE + + + True + GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK + 12 + + + True + GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK + 3 + 2 + 3 + + + + + + True + GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK + 0 + Width + + + GTK_FILL + GTK_FILL + + + + + True + GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK + 0 + Color + + + 1 + 2 + GTK_FILL + GTK_FILL + + + + + True + GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK + 0 + Style + + + 2 + 3 + GTK_FILL + GTK_FILL + + + + + True + True + GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK + 0 0 100 1 10 10 + + + 1 + 2 + GTK_FILL + + + + + True + True + True + GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_MOTION_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK + 0 + #000000000000 + + + 1 + 2 + 1 + 2 + GTK_FILL + + + + + + + + + True + GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK + Stroke + True + + + label_item + + + + + + + + + GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK + + + True + GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK + + + True + GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK + 0 + GTK_SHADOW_NONE + + + True + GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK + 12 + + + True + GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK + 3 + 2 + 3 + + + + + + True + GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK + 0 + Width + + + GTK_FILL + GTK_FILL + + + + + True + GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK + 0 + Color + + + 1 + 2 + GTK_FILL + GTK_FILL + + + + + True + GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK + 0 + Style + + + 2 + 3 + GTK_FILL + GTK_FILL + + + + + True + True + GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK + 0 0 100 1 10 10 + + + 1 + 2 + GTK_FILL + + + + + True + True + True + GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_MOTION_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK + 0 + #000000000000 + + + 1 + 2 + 1 + 2 + GTK_FILL + + + + + + + + + True + GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK + Stroke + True + + + label_item + + + + + False + + + + + True + GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK + 1 + 2 + 3 + + + True + GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK + 0 + Fill Color + + + GTK_FILL + GTK_FILL + + + + + True + True + True + GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_MOTION_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK + 0 + #000000000000 + + + 1 + 2 + GTK_FILL + + + + + 1 + + + + + + + GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK + + + True + GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK + + + True + GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK + 0 + GTK_SHADOW_NONE + + + True + GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK + 12 + + + True + GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK + 3 + 2 + 3 + + + + + + True + GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK + 0 + Width + + + GTK_FILL + GTK_FILL + + + + + True + GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK + 0 + Color + + + 1 + 2 + GTK_FILL + GTK_FILL + + + + + True + GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK + 0 + Style + + + 2 + 3 + GTK_FILL + GTK_FILL + + + + + True + True + GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK + 0 0 100 1 10 10 + + + 1 + 2 + GTK_FILL + + + + + True + True + True + GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_MOTION_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK + 0 + #000000000000 + + + 1 + 2 + 1 + 2 + GTK_FILL + + + + + + + + + True + GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK + Stroke + True + + + label_item + + + + + False + + + + + True + GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK + 1 + 2 + 3 + + + True + GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK + 0 + Fill Color + + + GTK_FILL + GTK_FILL + + + + + True + True + True + GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_MOTION_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK + 0 + #000000000000 + + + 1 + 2 + GTK_FILL + + + + + 1 + + + + + + + GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK + + + True + GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK + + + True + GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK + 0 + GTK_SHADOW_NONE + + + True + GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK + 12 + + + True + GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK + + + True + GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK + 0 + GTK_SHADOW_NONE + + + True + GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK + 12 + + + True + GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK + 2 + 4 + 3 + + + True + GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK + 0 + Top + + + GTK_FILL + + + + + True + GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK + 0 + Bottom + + + 1 + 2 + GTK_FILL + + + + + True + GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK + 0 + Right + + + 2 + 3 + GTK_FILL + + + + + True + GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK + 0 + Left + + + 2 + 3 + 1 + 2 + GTK_FILL + + + + + True + True + GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK + 0 0 100 1 10 10 + + + 1 + 2 + + + + + True + True + GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK + 0 0 100 1 10 10 + + + 1 + 2 + 1 + 2 + + + + + True + True + GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK + 0 0 100 1 10 10 + + + 3 + 4 + + + + + True + True + GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK + 0 0 100 1 10 10 + + + 3 + 4 + 1 + 2 + + + + + + + + + True + GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK + Width + True + + + label_item + + + + + False + + + + + True + GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK + 0 + GTK_SHADOW_NONE + + + True + GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK + 12 + + + True + GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK + 2 + 4 + 3 + + + True + GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK + 0 + Top + + + GTK_FILL + GTK_FILL + + + + + True + GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK + 0 + Right + + + 2 + 3 + GTK_FILL + GTK_FILL + + + + + True + GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK + 0 + Bottom + + + 1 + 2 + GTK_FILL + GTK_FILL + + + + + True + GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK + 0 + Left + + + 2 + 3 + 1 + 2 + GTK_FILL + GTK_FILL + + + + + True + True + True + GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_MOTION_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK + 0 + #000000000000 + + + 1 + 2 + GTK_FILL + + + + + True + True + True + GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_MOTION_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK + 0 + #000000000000 + + + 1 + 2 + 1 + 2 + GTK_FILL + + + + + True + True + True + GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_MOTION_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK + 0 + #000000000000 + + + 3 + 4 + GTK_FILL + + + + + True + True + True + GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_MOTION_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK + 0 + #000000000000 + + + 3 + 4 + 1 + 2 + GTK_FILL + + + + + + + + + True + GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK + Color + True + + + label_item + + + + + False + 1 + + + + + True + GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK + 0 + GTK_SHADOW_NONE + + + True + GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK + 12 + + + True + GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK + 2 + 4 + 3 + + + + + + + + + + + + + + + True + GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK + 0 + Top + + + GTK_FILL + + + + + True + GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK + 0 + Bottom + + + 1 + 2 + GTK_FILL + + + + + True + GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK + 0 + Right + + + 2 + 3 + GTK_FILL + + + + + True + GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK + 0 + Left + + + 2 + 3 + 1 + 2 + GTK_FILL + + + + + + + + + True + GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK + Style + True + + + label_item + + + + + False + 2 + + + + + + + + + True + GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK + Border + True + + + label_item + + + + + False + + + + + True + GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK + 0 + GTK_SHADOW_NONE + + + True + GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK + 12 + + + True + GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK + 1 + 2 + 3 + + + True + GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK + 0 + Source + + + GTK_FILL + GTK_FILL + + + + + True + True + GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK + GTK_POLICY_AUTOMATIC + GTK_POLICY_AUTOMATIC + + + True + True + GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK + + + + + 1 + 2 + + + + + + + + + True + GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK + Data + True + + + label_item + + + + + 1 + + + + + True + GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK + 1 + 2 + 3 + + + True + GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK + 0 + Adapt + + + GTK_FILL + GTK_FILL + + + + + True + GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK + + + 1 + 2 + GTK_FILL + + + + + 2 + + + + + diff --git a/src/Makefile.am b/src/Makefile.am index 431dbba..2c9caf9 100644 --- a/src/Makefile.am +++ b/src/Makefile.am @@ -12,6 +12,7 @@ greptool_SOURCES = \ main.c \ report_properties.c \ page_properties.c \ + object_properties.c \ objects_tree.c \ canvas.c \ canvasitem.c \ diff --git a/src/canvas.c b/src/canvas.c index b860c47..5392baa 100644 --- a/src/canvas.c +++ b/src/canvas.c @@ -126,8 +126,8 @@ grpt_canvas_init (GRptCanvas *grpt_canvas) } static void -grpt_canvas_add_object (GRptCanvas *grpt_canvas, RptReportSection section, RptObject *rpt_object, - gdouble x, gdouble y, gdouble width, gdouble height) +grpt_canvas_add_item (GRptCanvas *grpt_canvas, RptReportSection section, RptObject *rpt_object, + gdouble x, gdouble y, gdouble width, gdouble height) { GRptCanvasPrivate *priv = GRPT_CANVAS_GET_PRIVATE (grpt_canvas); GRptCanvasClass *klass = GRPT_CANVAS_GET_CLASS (grpt_canvas); @@ -303,7 +303,7 @@ grpt_canvas_on_button_release_event (GtkWidget *widget, { rpt_report_add_object_to_section (priv->rpt_report, rpt_object, RPTREPORT_SECTION_BODY); - grpt_canvas_add_object (grpt_canvas, RPTREPORT_SECTION_BODY, rpt_object, x, y, width, height); + grpt_canvas_add_item (grpt_canvas, RPTREPORT_SECTION_BODY, rpt_object, x, y, width, height); } } } @@ -543,7 +543,7 @@ grpt_canvas_set_size (GRptCanvas *grpt_canvas, RptSize size) } GList -*grpt_canvas_section_get_objects (GRptCanvas *grpt_canvas, RptReportSection section) +*grpt_canvas_section_get_items (GRptCanvas *grpt_canvas, RptReportSection section) { GList *objects = NULL; @@ -576,7 +576,8 @@ GList } void -grpt_canvas_set_object_selected (GRptCanvas *grpt_canvas, GRptCanvasItem *grpt_canvas_item, gboolean selected, gboolean add_to_selection) +grpt_canvas_set_item_selected (GRptCanvas *grpt_canvas, GRptCanvasItem *grpt_canvas_item, + gboolean selected, gboolean add_to_selection) { if (selected && !add_to_selection) { @@ -606,7 +607,8 @@ grpt_canvas_select_none (GRptCanvas *grpt_canvas) } void -grpt_canvas_select_section_all (GRptCanvas *grpt_canvas, RptReportSection section, gboolean add_to_selection) +grpt_canvas_select_section_all (GRptCanvas *grpt_canvas, RptReportSection section, + gboolean add_to_selection) { GList *objects = NULL; @@ -697,7 +699,7 @@ GList { GList *ret = NULL; - ret = g_list_concat (ret, grpt_canvas_get_section_selected_items (grpt_canvas, RPTREPORT_SECTION_REPORT_HEADER)); + ret = grpt_canvas_get_section_selected_items (grpt_canvas, RPTREPORT_SECTION_REPORT_HEADER); ret = g_list_concat (ret, grpt_canvas_get_section_selected_items (grpt_canvas, RPTREPORT_SECTION_PAGE_HEADER)); ret = g_list_concat (ret, grpt_canvas_get_section_selected_items (grpt_canvas, RPTREPORT_SECTION_BODY)); ret = g_list_concat (ret, grpt_canvas_get_section_selected_items (grpt_canvas, RPTREPORT_SECTION_REPORT_FOOTER)); @@ -755,6 +757,53 @@ GList return ret; } +void +grpt_canvas_remove_item (GRptCanvas *grpt_canvas, GRptCanvasItem *grpt_canvas_item) +{ + RptReportSection section = grpt_canvas_item_get_section (grpt_canvas_item); + + GRptCanvasPrivate *priv = GRPT_CANVAS_GET_PRIVATE (grpt_canvas); + GRptCanvasClass *klass = GRPT_CANVAS_GET_CLASS (grpt_canvas); + + switch (section) + { + case RPTREPORT_SECTION_REPORT_HEADER: + priv->report_header_objects = g_list_remove (priv->report_header_objects, grpt_canvas_item); + break; + case RPTREPORT_SECTION_PAGE_HEADER: + priv->page_header_objects = g_list_remove (priv->page_header_objects, grpt_canvas_item); + break; + case RPTREPORT_SECTION_BODY: + priv->body_objects = g_list_remove (priv->body_objects, grpt_canvas_item); + break; + case RPTREPORT_SECTION_REPORT_FOOTER: + priv->report_footer_objects = g_list_remove (priv->report_footer_objects, grpt_canvas_item); + break; + case RPTREPORT_SECTION_PAGE_FOOTER: + priv->page_footer_objects = g_list_remove (priv->page_footer_objects, grpt_canvas_item); + break; + } + + g_signal_emit (grpt_canvas, klass->object_removed_signal_id, 0, + grpt_canvas_item); + + goo_canvas_item_remove (GOO_CANVAS_ITEM (grpt_canvas_item)); +} + +void +grpt_canvas_remove_items (GRptCanvas *grpt_canvas, GList *grpt_canvas_items) +{ + GList *items; + + items = g_list_first (grpt_canvas_items); + while (items != NULL) + { + grpt_canvas_remove_item (grpt_canvas, (GRptCanvasItem *)items->data); + + items = g_list_next (items); + } +} + void grpt_canvas_free (GRptCanvas *grpt_canvas) { @@ -787,9 +836,9 @@ grpt_canvas_fill_section (GRptCanvas *grpt_canvas, RptReportSection section, GLi "size", &size, NULL); - grpt_canvas_add_object (grpt_canvas, section, rpt_object, - position->x, position->y, - size->width, size->height); + grpt_canvas_add_item (grpt_canvas, section, rpt_object, + position->x, position->y, + size->width, size->height); objects = g_list_next (objects); } diff --git a/src/canvas.h b/src/canvas.h index e138cb2..8c46ba0 100644 --- a/src/canvas.h +++ b/src/canvas.h @@ -50,6 +50,7 @@ struct _GRptCanvasClass guint object_added_signal_id; guint object_removed_signal_id; + guint selection_changed_signal_id; }; GType grpt_canvas_get_type (void) G_GNUC_CONST; @@ -60,12 +61,12 @@ GtkWidget *grpt_canvas_get_widget (GRptCanvas *grpt_canvas); void grpt_canvas_set_size (GRptCanvas *grpt_canvas, RptSize size); -GList *grpt_canvas_section_get_objects (GRptCanvas *grpt_canvas, RptReportSection section); +GList *grpt_canvas_section_get_items (GRptCanvas *grpt_canvas, RptReportSection section); -void grpt_canvas_set_object_selected (GRptCanvas *grpt_canvas, - GRptCanvasItem *grpt_canvas_item, - gboolean selected, - gboolean add_to_selection); +void grpt_canvas_set_item_selected (GRptCanvas *grpt_canvas, + GRptCanvasItem *grpt_canvas_item, + gboolean selected, + gboolean add_to_selection); void grpt_canvas_select_all (GRptCanvas *grpt_canvas); void grpt_canvas_select_none (GRptCanvas *grpt_canvas); @@ -80,6 +81,9 @@ GList *grpt_canvas_get_selected_items (GRptCanvas *grpt_canvas); GList *grpt_canvas_get_section_selected_items (GRptCanvas *grpt_canvas, RptReportSection section); +void grpt_canvas_remove_item (GRptCanvas *grpt_canvas, GRptCanvasItem *grpt_canvas_item); +void grpt_canvas_remove_items (GRptCanvas *grpt_canvas, GList *grpt_canvas_items); + void grpt_canvas_free (GRptCanvas *grpt_canvas); diff --git a/src/main.c b/src/main.c index 5b4aab3..e525fac 100644 --- a/src/main.c +++ b/src/main.c @@ -305,6 +305,18 @@ on_mnu_file_close_activate (GtkMenuItem *menuitem, gtk_window_set_title (GTK_WINDOW (w), "GRepTool"); } +void +on_mnu_edit_delete_activate (GtkMenuItem *menuitem, + gpointer user_data) +{ + GList *items = grpt_canvas_get_selected_items (grpt_canvas); + + if (items != NULL) + { + grpt_canvas_remove_items (grpt_canvas, items); + } +} + void on_mnu_edit_select_all_activate (GtkMenuItem *menuitem, gpointer user_data) @@ -398,7 +410,7 @@ report_on_canvas_object_added (GRptCanvas *grpt_canvas, GRptCanvasItem *item, gpointer user_data) { - grpt_objects_tree_add_object_to_section (objects_tree, item, RPTREPORT_SECTION_BODY); + grpt_objects_tree_add_item_to_section (objects_tree, item, RPTREPORT_SECTION_BODY); } void @@ -406,7 +418,7 @@ report_on_canvas_object_removed (GRptCanvas *grpt_canvas, GRptCanvasItem *item, gpointer user_data) { - g_fprintf (stderr,"object removed\n"); + grpt_objects_tree_remove_item (objects_tree, item); } /* PUBLIC */ diff --git a/src/object_properties.c b/src/object_properties.c new file mode 100644 index 0000000..298d63b --- /dev/null +++ b/src/object_properties.c @@ -0,0 +1,241 @@ +/* + * Copyright (C) 2007 Andrea Zagli + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software + * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. + */ + +#include +#include + +#include "object_properties.h" + +static void grpt_object_properties_class_init (GRptObjectPropertiesClass *klass); +static void grpt_object_properties_init (GRptObjectProperties *grpt_object_properties); + +static void grpt_object_properties_load_common (GRptObjectProperties *grpt_object_properties); +static void grpt_object_properties_load_text (GRptObjectProperties *grpt_object_properties); +static void grpt_object_properties_load_line (GRptObjectProperties *grpt_object_properties); +static void grpt_object_properties_load_rect (GRptObjectProperties *grpt_object_properties); +static void grpt_object_properties_load_ellipse (GRptObjectProperties *grpt_object_properties); +static void grpt_object_properties_load_image (GRptObjectProperties *grpt_object_properties); + + +#define GRPT_OBJECT_PROPERTIES_GET_PRIVATE(obj) (G_TYPE_INSTANCE_GET_PRIVATE ((obj), GRPT_TYPE_OBJECT_PROPERTIES, GRptObjectPropertiesPrivate)) + + +typedef struct _GRptObjectPropertiesPrivate GRptObjectPropertiesPrivate; +struct _GRptObjectPropertiesPrivate + { + GtkWidget *w; + GtkWidget *vbox; + + GtkWidget *txt_name; + GtkWidget *spn_x; + GtkWidget *spn_y; + GtkWidget *spn_width; + GtkWidget *spn_height; + GtkWidget *spn_rotation; + + RptObject *rpt_obj; + }; + +GType +grpt_object_properties_get_type (void) +{ + static GType grpt_object_properties_type = 0; + + if (!grpt_object_properties_type) + { + static const GTypeInfo grpt_object_properties_info = + { + sizeof (GRptObjectPropertiesClass), + NULL, /* base_init */ + NULL, /* base_finalize */ + (GClassInitFunc) grpt_object_properties_class_init, + NULL, /* class_finalize */ + NULL, /* class_data */ + sizeof (GRptObjectProperties), + 0, /* n_preallocs */ + (GInstanceInitFunc) grpt_object_properties_init, + NULL + }; + + grpt_object_properties_type = g_type_register_static (G_TYPE_OBJECT, "GRptObjectProperties", + &grpt_object_properties_info, 0); + } + + return grpt_object_properties_type; +} + +static void +grpt_object_properties_class_init (GRptObjectPropertiesClass *klass) +{ + GObjectClass *object_class = G_OBJECT_CLASS (klass); + + g_type_class_add_private (object_class, sizeof (GRptObjectPropertiesPrivate)); +} + +static void +grpt_object_properties_init (GRptObjectProperties *grpt_object_properties) +{ + GRptObjectPropertiesPrivate *priv = GRPT_OBJECT_PROPERTIES_GET_PRIVATE (grpt_object_properties); +} + +GRptObjectProperties +*grpt_object_properties_new (void) +{ + GRptObjectProperties *obj_prop = GRPT_OBJECT_PROPERTIES (g_object_new (grpt_object_properties_get_type (), NULL)); + + GRptObjectPropertiesPrivate *priv = GRPT_OBJECT_PROPERTIES_GET_PRIVATE (obj_prop); + + GladeXML *gla = glade_xml_new (GLADEDIR "/greptool.glade", "w_obj_properties", NULL); + + priv->w = glade_xml_get_widget (gla, "w_obj_properties"); + priv->vbox = glade_xml_get_widget (gla, "vbox"); + + priv->txt_name = glade_xml_get_widget (gla, "txt_name"); + priv->spn_x = glade_xml_get_widget (gla, "spn_x"); + priv->spn_y = glade_xml_get_widget (gla, "spn_y"); + priv->spn_width = glade_xml_get_widget (gla, "spn_width"); + priv->spn_height = glade_xml_get_widget (gla, "spn_height"); + priv->spn_rotation = glade_xml_get_widget (gla, "spn_rotation"); + + gtk_widget_show_all (priv->w); + + return obj_prop; +} + +void +grpt_object_properties_set_rpt_object (GRptObjectProperties *grpt_object_properties, + RptObject *rpt_object) +{ + GRptObjectPropertiesPrivate *priv = GRPT_OBJECT_PROPERTIES_GET_PRIVATE (grpt_object_properties); + + priv->rpt_obj = g_object_ref (rpt_object); + + grpt_object_properties_load_common (grpt_object_properties); + + if (IS_RPT_OBJ_TEXT (priv->rpt_obj)) + { + grpt_object_properties_load_text (grpt_object_properties); + } + else if (IS_RPT_OBJ_ELLIPSE (priv->rpt_obj)) + { + grpt_object_properties_load_ellipse (grpt_object_properties); + } + else if (IS_RPT_OBJ_RECT (priv->rpt_obj)) + { + grpt_object_properties_load_rect (grpt_object_properties); + } + else if (IS_RPT_OBJ_LINE (priv->rpt_obj)) + { + grpt_object_properties_load_line (grpt_object_properties); + } + else if (IS_RPT_OBJ_IMAGE (priv->rpt_obj)) + { + grpt_object_properties_load_image (grpt_object_properties); + } +} + +void +grpt_object_properties_destroy (GRptObjectProperties *grpt_object_properties) +{ + GRptObjectPropertiesPrivate *priv = GRPT_OBJECT_PROPERTIES_GET_PRIVATE (grpt_object_properties); + + gtk_widget_destroy (priv->w); +} + +static void +grpt_object_properties_load_common (GRptObjectProperties *grpt_object_properties) +{ + gchar *name; + RptPoint *position; + RptSize *size; + RptRotation *rotation; + + GRptObjectPropertiesPrivate *priv = GRPT_OBJECT_PROPERTIES_GET_PRIVATE (grpt_object_properties); + + g_object_get (G_OBJECT (priv->rpt_obj), + "name", &name, + "position", &position, + "size", &size, + "rotation", &rotation, + NULL); + + gtk_entry_set_text (GTK_ENTRY (priv->txt_name), name); + + if (position != NULL) + { + gtk_spin_button_set_value (GTK_SPIN_BUTTON (priv->spn_x), position->x); + gtk_spin_button_set_value (GTK_SPIN_BUTTON (priv->spn_y), position->y); + } + if (size != NULL) + { + gtk_spin_button_set_value (GTK_SPIN_BUTTON (priv->spn_width), size->width); + gtk_spin_button_set_value (GTK_SPIN_BUTTON (priv->spn_height), size->height); + } + if (rotation != NULL) + { + gtk_spin_button_set_value (GTK_SPIN_BUTTON (priv->spn_rotation), rotation->angle); + } +} + +static void +grpt_object_properties_load_text (GRptObjectProperties *grpt_object_properties) +{ + RptBorder *border; + RptFont *font; + RptAlign *align; + gchar *source; + RptColor *background_color; + gdouble padding_top; + gdouble padding_right; + gdouble padding_bottom; + gdouble padding_left; + + GRptObjectPropertiesPrivate *priv = GRPT_OBJECT_PROPERTIES_GET_PRIVATE (grpt_object_properties); + + g_object_get (G_OBJECT (priv->rpt_obj), + "border", &border, + "font", &font, + "align", &align, + "source", &source, + "background-color", &background_color, + "padding-top", &padding_top, + "padding-right", &padding_right, + "padding-bottom", &padding_bottom, + "padding-left", &padding_left, + NULL); +} + +static void +grpt_object_properties_load_line (GRptObjectProperties *grpt_object_properties) +{ +} + +static void +grpt_object_properties_load_rect (GRptObjectProperties *grpt_object_properties) +{ +} + +static void +grpt_object_properties_load_ellipse (GRptObjectProperties *grpt_object_properties) +{ +} + +static void +grpt_object_properties_load_image (GRptObjectProperties *grpt_object_properties) +{ +} diff --git a/src/object_properties.h b/src/object_properties.h new file mode 100644 index 0000000..37d0b8b --- /dev/null +++ b/src/object_properties.h @@ -0,0 +1,63 @@ +/* + * Copyright (C) 2007 Andrea Zagli + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software + * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. + */ + +#ifndef __GRPT_OBJECT_PROPERTIES_H__ +#define __GRPT_OBJECT_PROPERTIES_H__ + +#include +#include + + +G_BEGIN_DECLS + + +#define GRPT_TYPE_OBJECT_PROPERTIES (grpt_object_properties_get_type ()) +#define GRPT_OBJECT_PROPERTIES(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GRPT_TYPE_OBJECT_PROPERTIES, GRptObjectProperties)) +#define GRPT_OBJECT_PROPERTIES_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GRPT_TYPE_OBJECT_PROPERTIES, GRptObjectPropertiesClass)) +#define GRPT_IS_OBJECT_PROPERTIES(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GRPT_TYPE_OBJECT_PROPERTIES)) +#define GRPT_IS_OBJECT_PROPERTIES_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GRPT_TYPE_OBJECT_PROPERTIES)) +#define GRPT_OBJECT_PROPERTIES_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GRPT_TYPE_OBJECT_PROPERTIES, GRptObjectPropertiesClass)) + + +typedef struct _GRptObjectProperties GRptObjectProperties; +typedef struct _GRptObjectPropertiesClass GRptObjectPropertiesClass; + +struct _GRptObjectProperties + { + GObject parent; + }; + +struct _GRptObjectPropertiesClass + { + GObjectClass parent_class; + }; + +GType grpt_object_properties_get_type (void) G_GNUC_CONST; + +GRptObjectProperties *grpt_object_properties_new (void); + +void grpt_object_properties_set_rpt_object (GRptObjectProperties *grpt_object_properties, + RptObject *rpt_object); + +void grpt_object_properties_destroy (GRptObjectProperties *grpt_object_properties); + + +G_END_DECLS + + +#endif /* __GRPT_OBJECT_PROPERTIES_H__ */ diff --git a/src/objects_tree.c b/src/objects_tree.c index 489b8f7..0069e48 100644 --- a/src/objects_tree.c +++ b/src/objects_tree.c @@ -196,15 +196,91 @@ grpt_objects_tree_fill_tree_section (GRptObjectsTree *grpt_objects_tree, RptRepo { while (list != NULL) { - grpt_objects_tree_add_object_to_section (grpt_objects_tree, - (GRptCanvasItem *)list->data, - section); + grpt_objects_tree_add_item_to_section (grpt_objects_tree, + (GRptCanvasItem *)list->data, + section); list = g_list_next (list); } } } +static gboolean +grpt_objects_tree_find_item_in_section (GRptObjectsTree *grpt_objects_tree, + RptReportSection section, + GRptCanvasItem *grpt_canvas_item, + GtkTreeIter *iter) +{ + gboolean ret = FALSE; + GtkTreeIter iter_section; + GtkTreePath *path = NULL; + + GRptObjectsTreePrivate *priv = GRPT_OBJECTS_TREE_GET_PRIVATE (grpt_objects_tree); + + switch (section) + { + case RPTREPORT_SECTION_REPORT_HEADER: + if (priv->trr_report_header != NULL) + { + path = gtk_tree_row_reference_get_path (priv->trr_report_header); + } + break; + case RPTREPORT_SECTION_PAGE_HEADER: + if (priv->trr_page_header != NULL) + { + path = gtk_tree_row_reference_get_path (priv->trr_page_header); + } + break; + case RPTREPORT_SECTION_BODY: + if (priv->trr_body != NULL) + { + path = gtk_tree_row_reference_get_path (priv->trr_body); + } + break; + case RPTREPORT_SECTION_REPORT_FOOTER: + if (priv->trr_report_footer != NULL) + { + path = gtk_tree_row_reference_get_path (priv->trr_report_footer); + } + break; + case RPTREPORT_SECTION_PAGE_FOOTER: + if (priv->trr_page_footer != NULL) + { + path = gtk_tree_row_reference_get_path (priv->trr_page_footer); + } + break; + } + + if (path != NULL) + { + if (gtk_tree_model_get_iter (GTK_TREE_MODEL (priv->tr_store), &iter_section, path)) + { + GtkTreeIter iter_children; + GRptCanvasItem *item; + + if (gtk_tree_model_iter_children (GTK_TREE_MODEL (priv->tr_store), &iter_children, &iter_section)) + { + do + { + gtk_tree_model_get (GTK_TREE_MODEL (priv->tr_store), &iter_children, + OBJS_TREE_COL_GRPT_CANVAS_ITEM, &item, + -1); + + if (grpt_canvas_item == item) + { + *iter = iter_children; + ret = TRUE; + break; + } + + } while (gtk_tree_model_iter_next (GTK_TREE_MODEL (priv->tr_store), &iter_children)); + } + } + } + + return ret; +} + GRptObjectsTree *grpt_objects_tree_new (GRptCanvas *canvas) { @@ -261,27 +337,27 @@ grpt_objects_tree_set_canvas (GRptObjectsTree *grpt_objects_tree, GRptCanvas *ca gtk_tree_store_clear (priv->tr_store); - objects = grpt_canvas_section_get_objects (priv->canvas, RPTREPORT_SECTION_REPORT_HEADER); + objects = grpt_canvas_section_get_items (priv->canvas, RPTREPORT_SECTION_REPORT_HEADER); if (objects != NULL) { grpt_objects_tree_fill_tree_section (grpt_objects_tree, RPTREPORT_SECTION_REPORT_HEADER, objects); } - objects = grpt_canvas_section_get_objects (priv->canvas, RPTREPORT_SECTION_PAGE_HEADER); + objects = grpt_canvas_section_get_items (priv->canvas, RPTREPORT_SECTION_PAGE_HEADER); if (objects != NULL) { grpt_objects_tree_fill_tree_section (grpt_objects_tree, RPTREPORT_SECTION_PAGE_HEADER, objects); } - objects = grpt_canvas_section_get_objects (priv->canvas, RPTREPORT_SECTION_BODY); + objects = grpt_canvas_section_get_items (priv->canvas, RPTREPORT_SECTION_BODY); if (objects != NULL) { grpt_objects_tree_fill_tree_section (grpt_objects_tree, RPTREPORT_SECTION_BODY, objects); } - objects = grpt_canvas_section_get_objects (priv->canvas, RPTREPORT_SECTION_REPORT_FOOTER); + objects = grpt_canvas_section_get_items (priv->canvas, RPTREPORT_SECTION_REPORT_FOOTER); if (objects != NULL) { grpt_objects_tree_fill_tree_section (grpt_objects_tree, RPTREPORT_SECTION_REPORT_FOOTER, objects); } - objects = grpt_canvas_section_get_objects (priv->canvas, RPTREPORT_SECTION_PAGE_FOOTER); + objects = grpt_canvas_section_get_items (priv->canvas, RPTREPORT_SECTION_PAGE_FOOTER); if (objects != NULL) { grpt_objects_tree_fill_tree_section (grpt_objects_tree, RPTREPORT_SECTION_PAGE_FOOTER, objects); @@ -290,18 +366,9 @@ grpt_objects_tree_set_canvas (GRptObjectsTree *grpt_objects_tree, GRptCanvas *ca } void -grpt_objects_tree_destroy (GRptObjectsTree *grpt_objects_tree) -{ - GRptObjectsTreePrivate *priv = GRPT_OBJECTS_TREE_GET_PRIVATE (grpt_objects_tree); - - gtk_widget_destroy (priv->w_tree); - priv->w_tree = NULL; -} - -void -grpt_objects_tree_add_object_to_section (GRptObjectsTree *grpt_objects_tree, - GRptCanvasItem *grpt_canvas_item, - RptReportSection section) +grpt_objects_tree_add_item_to_section (GRptObjectsTree *grpt_objects_tree, + GRptCanvasItem *grpt_canvas_item, + RptReportSection section) { GtkTreeRowReference *trr; GtkTreePath *path; @@ -356,3 +423,44 @@ grpt_objects_tree_add_object_to_section (GRptObjectsTree *grpt_objects_tree, -1); } } + +void +grpt_objects_tree_remove_item (GRptObjectsTree *grpt_objects_tree, + GRptCanvasItem *canvas_item) +{ + GtkTreeIter iter; + + if (!GRPT_IS_OBJECTS_TREE (grpt_objects_tree)) return; + + GRptObjectsTreePrivate *priv = GRPT_OBJECTS_TREE_GET_PRIVATE (grpt_objects_tree); + + if (grpt_objects_tree_find_item_in_section (grpt_objects_tree, RPTREPORT_SECTION_REPORT_HEADER, canvas_item, &iter)) + { + gtk_tree_store_remove (priv->tr_store, &iter); + } + else if (grpt_objects_tree_find_item_in_section (grpt_objects_tree, RPTREPORT_SECTION_PAGE_HEADER, canvas_item, &iter)) + { + gtk_tree_store_remove (priv->tr_store, &iter); + } + else if (grpt_objects_tree_find_item_in_section (grpt_objects_tree, RPTREPORT_SECTION_BODY, canvas_item, &iter)) + { + gtk_tree_store_remove (priv->tr_store, &iter); + } + else if (grpt_objects_tree_find_item_in_section (grpt_objects_tree, RPTREPORT_SECTION_REPORT_FOOTER, canvas_item, &iter)) + { + gtk_tree_store_remove (priv->tr_store, &iter); + } + else if (grpt_objects_tree_find_item_in_section (grpt_objects_tree, RPTREPORT_SECTION_PAGE_FOOTER, canvas_item, &iter)) + { + gtk_tree_store_remove (priv->tr_store, &iter); + } +} + +void +grpt_objects_tree_destroy (GRptObjectsTree *grpt_objects_tree) +{ + GRptObjectsTreePrivate *priv = GRPT_OBJECTS_TREE_GET_PRIVATE (grpt_objects_tree); + + gtk_widget_destroy (priv->w_tree); + priv->w_tree = NULL; +} diff --git a/src/objects_tree.h b/src/objects_tree.h index 64ad644..cace0de 100644 --- a/src/objects_tree.h +++ b/src/objects_tree.h @@ -57,11 +57,11 @@ GRptObjectsTree *grpt_objects_tree_new (GRptCanvas *grpt_canvas); void grpt_objects_tree_set_canvas (GRptObjectsTree *grpt_objects_tree, GRptCanvas *grpt_canvas); -void grpt_objects_tree_add_object_to_section (GRptObjectsTree *grpt_objects_tree, - GRptCanvasItem *canvas_item, - RptReportSection section); -void grpt_objects_tree_remove_object (GRptObjectsTree *grpt_objects_tree, - GRptCanvasItem *canvas_item); +void grpt_objects_tree_add_item_to_section (GRptObjectsTree *grpt_objects_tree, + GRptCanvasItem *canvas_item, + RptReportSection section); +void grpt_objects_tree_remove_item (GRptObjectsTree *grpt_objects_tree, + GRptCanvasItem *canvas_item); void grpt_objects_tree_destroy (GRptObjectsTree *grpt_objects_tree);