Permalink
Browse files

2006-02-07 Lluis Sanchez Gual <lluis@novell.com>

	* libstetic/ItemGroup.cs: Converted to class. Added support for
	Signal items.
	
	* libstetic/wrapper/Container.cs: Added properties for storing
	the width and height of the container (at design time).
	
	* libstetic/wrapper/Widget.cs: Added support for signals. 
	Added some new events: NameChanged, WidgetChanged, SignalAdded,
	SignalRemoved, SignalChanged.
	
	* libstetic/wrapper/Window.cs: Don't show the window when it's
	selected. That's something that the hosting application has to
	decide. The selection change event in Project can be used for this.
	
	* libstetic/wrapper/objects.xml: Added signals.
	
	* libstetic/editor/ResponseId.cs: 
	* libstetic/editor/Translatable.cs:
	* libstetic/editor/Char.cs:
	* libstetic/editor/Color.cs:
	* libstetic/editor/ThemedIcon.cs:
	* libstetic/editor/Boolean.cs:
	* libstetic/editor/Image.cs:
	* libstetic/editor/FloatRange.cs:
	* libstetic/editor/Text.cs:
	* libstetic/editor/Accelerator.cs:
	* libstetic/editor/Enumeration.cs:
	* libstetic/editor/GroupPicker.cs:
	* libstetic/editor/OptIntRange.cs:
	* libstetic/editor/Flags.cs:
	* libstetic/editor/StringArray.cs:
	* libstetic/editor/String.cs:
	* libstetic/editor/IntRange.cs:
	  Implement the new IPropertyEditor interface.
	
	* libstetic/HandleWindow.cs: Use a wider focus rectangle.
	Get the correct top level window when it's embedded in another window.
	
	* libstetic/GladeUtils.cs: Added helper methods for exporting and
	importing widgets. Read/Write signal information.
	
	* libstetic/ClassDescriptor.cs: Added support for signals.
	
	* stetic/Makefile.am:
	* libstetic/Makefile.am: Updated.
	
	* libstetic/Registry.cs: Added some helper methods for locating
	groups.
	
	* Makefile.am:
	* configure.in: Set version to 0.1.0. Added .pc file.
	
	* stetic/WidgetFactory.cs: Don't show the window when it's
	created. The hosting app can do it by subscribing the 
	Project.WidgetAdded event.
	
	* stetic/Glade.cs: Top level widgets don't need to be windows,
	they can be containers.
	
	* stetic/PropertyGrid.cs: Some big changes. This widget is not a Grid
	anymore, but a VBox of grids. There is a grid for every ItemGroup, and
	they are reused for all widgets that share the same ItemGroup. The
	property grid is now much faster.
	
	* stetic/Stetic.cs: Added the signals editor. Handle some events
	previously handled in the widget code, but which I moved here to
	make the code more generic.
	
	* libstetic/IPropertyEditor.cs: New interface to be implemented
	by all property editors.
	
	* stetic/PropertyEditor.cs: Replaced all code that relied on reflection
	to create and initialize property editors. All this is now done through
	the new IPropertyEditor interface. Now it is also possible to reuse
	the same PropertyEditor for different objects that share the same
	property.
	
	* stetic/Palette.cs:
	* stetic/ProjectView.cs: Added support for changing the project to
	which those widgets are bound.
	
	* stetic/stetic.glade: Added the signals editor.
	
	* stetic/Project.cs: Added several events which are needed to
	integrate Stetic in an IDE.
	
	* stetic.pc.in: Added.
	
	* libstetic/SignalDescriptor.cs: New descriptor for signals.
	
	* libstetic/wrapper/WidgetEventHandler.cs:
	* libstetic/wrapper/WidgetNameChangedHandler.cs:
	* libstetic/wrapper/SignalEventHandler.cs:
	* libstetic/wrapper/SignalChangedEventHandler.cs
	
	* libstetic/wrapper/SignalCollection.cs:
	* libstetic/wrapper/Signal.cs: New class. Holds information
	about signal handlers bound to a widgets.
	
	* libstetic/ItemGroupCollection.cs: New collection class.
	
	* stetic/SignalsEditor.cs: The new signals editor.


svn path=/trunk/stetic/; revision=56684
  • Loading branch information...
1 parent cdd9920 commit af7029802b49aca0dad9dec59583231d6b7d5e88 @slluis slluis committed Feb 8, 2006
Showing with 2,689 additions and 402 deletions.
  1. +105 −0 ChangeLog
  2. +7 −0 Makefile.am
  3. +2 −1 configure.in
  4. +23 −2 libstetic/ClassDescriptor.cs
  5. +87 −23 libstetic/GladeUtils.cs
  6. +33 −14 libstetic/HandleWindow.cs
  7. +23 −0 libstetic/IPropertyEditor.cs
  8. +8 −2 libstetic/ItemGroup.cs
  9. +32 −0 libstetic/ItemGroupCollection.cs
  10. +9 −0 libstetic/Makefile.am
  11. +27 −8 libstetic/Registry.cs
  12. +81 −0 libstetic/SignalDescriptor.cs
  13. +21 −9 libstetic/editor/Accelerator.cs
  14. +26 −1 libstetic/editor/Boolean.cs
  15. +13 −3 libstetic/editor/Char.cs
  16. +26 −1 libstetic/editor/Color.cs
  17. +16 −5 libstetic/editor/Enumeration.cs
  18. +16 −5 libstetic/editor/Flags.cs
  19. +38 −6 libstetic/editor/FloatRange.cs
  20. +16 −8 libstetic/editor/GroupPicker.cs
  21. +25 −14 libstetic/editor/Image.cs
  22. +66 −5 libstetic/editor/IntRange.cs
  23. +38 −10 libstetic/editor/OptIntRange.cs
  24. +13 −3 libstetic/editor/ResponseId.cs
  25. +12 −7 libstetic/editor/String.cs
  26. +10 −5 libstetic/editor/StringArray.cs
  27. +13 −7 libstetic/editor/Text.cs
  28. +18 −7 libstetic/editor/ThemedIcon.cs
  29. +74 −37 libstetic/editor/Translatable.cs
  30. +23 −0 libstetic/wrapper/Container.cs
  31. +55 −0 libstetic/wrapper/Signal.cs
  32. +19 −0 libstetic/wrapper/SignalChangedEventHandler.cs
  33. +85 −0 libstetic/wrapper/SignalCollection.cs
  34. +19 −0 libstetic/wrapper/SignalEventHandler.cs
  35. +89 −1 libstetic/wrapper/Widget.cs
  36. +20 −0 libstetic/wrapper/WidgetEventHandler.cs
  37. +25 −0 libstetic/wrapper/WidgetNameChangedHandler.cs
  38. +0 −7 libstetic/wrapper/Window.cs
  39. +574 −1 libstetic/wrapper/objects.xml
  40. +9 −0 stetic.pc.in
  41. +4 −4 stetic/Glade.cs
  42. +1 −0 stetic/Makefile.am
  43. +25 −2 stetic/Palette.cs
  44. +127 −7 stetic/Project.cs
  45. +26 −5 stetic/ProjectView.cs
  46. +64 −94 stetic/PropertyEditor.cs
  47. +185 −83 stetic/PropertyGrid.cs
  48. +354 −0 stetic/SignalsEditor.cs
  49. +19 −0 stetic/Stetic.cs
  50. +1 −3 stetic/WidgetFactory.cs
  51. +87 −12 stetic/stetic.glade
View
105 ChangeLog
@@ -1,3 +1,108 @@
+2006-02-07 Lluis Sanchez Gual <lluis@novell.com>
+
+ * libstetic/ItemGroup.cs: Converted to class. Added support for
+ Signal items.
+
+ * libstetic/wrapper/Container.cs: Added properties for storing
+ the width and height of the container (at design time).
+
+ * libstetic/wrapper/Widget.cs: Added support for signals.
+ Added some new events: NameChanged, WidgetChanged, SignalAdded,
+ SignalRemoved, SignalChanged.
+
+ * libstetic/wrapper/Window.cs: Don't show the window when it's
+ selected. That's something that the hosting application has to
+ decide. The selection change event in Project can be used for this.
+
+ * libstetic/wrapper/objects.xml: Added signals.
+
+ * libstetic/editor/ResponseId.cs:
+ * libstetic/editor/Translatable.cs:
+ * libstetic/editor/Char.cs:
+ * libstetic/editor/Color.cs:
+ * libstetic/editor/ThemedIcon.cs:
+ * libstetic/editor/Boolean.cs:
+ * libstetic/editor/Image.cs:
+ * libstetic/editor/FloatRange.cs:
+ * libstetic/editor/Text.cs:
+ * libstetic/editor/Accelerator.cs:
+ * libstetic/editor/Enumeration.cs:
+ * libstetic/editor/GroupPicker.cs:
+ * libstetic/editor/OptIntRange.cs:
+ * libstetic/editor/Flags.cs:
+ * libstetic/editor/StringArray.cs:
+ * libstetic/editor/String.cs:
+ * libstetic/editor/IntRange.cs:
+ Implement the new IPropertyEditor interface.
+
+ * libstetic/HandleWindow.cs: Use a wider focus rectangle.
+ Get the correct top level window when it's embedded in another window.
+
+ * libstetic/GladeUtils.cs: Added helper methods for exporting and
+ importing widgets. Read/Write signal information.
+
+ * libstetic/ClassDescriptor.cs: Added support for signals.
+
+ * stetic/Makefile.am:
+ * libstetic/Makefile.am: Updated.
+
+ * libstetic/Registry.cs: Added some helper methods for locating
+ groups.
+
+ * Makefile.am:
+ * configure.in: Set version to 0.1.0. Added .pc file.
+
+ * stetic/WidgetFactory.cs: Don't show the window when it's
+ created. The hosting app can do it by subscribing the
+ Project.WidgetAdded event.
+
+ * stetic/Glade.cs: Top level widgets don't need to be windows,
+ they can be containers.
+
+ * stetic/PropertyGrid.cs: Some big changes. This widget is not a Grid
+ anymore, but a VBox of grids. There is a grid for every ItemGroup, and
+ they are reused for all widgets that share the same ItemGroup. The
+ property grid is now much faster.
+
+ * stetic/Stetic.cs: Added the signals editor. Handle some events
+ previously handled in the widget code, but which I moved here to
+ make the code more generic.
+
+ * libstetic/IPropertyEditor.cs: New interface to be implemented
+ by all property editors.
+
+ * stetic/PropertyEditor.cs: Replaced all code that relied on reflection
+ to create and initialize property editors. All this is now done through
+ the new IPropertyEditor interface. Now it is also possible to reuse
+ the same PropertyEditor for different objects that share the same
+ property.
+
+ * stetic/Palette.cs:
+ * stetic/ProjectView.cs: Added support for changing the project to
+ which those widgets are bound.
+
+ * stetic/stetic.glade: Added the signals editor.
+
+ * stetic/Project.cs: Added several events which are needed to
+ integrate Stetic in an IDE.
+
+ * stetic.pc.in: Added.
+
+ * libstetic/SignalDescriptor.cs: New descriptor for signals.
+
+ * libstetic/wrapper/WidgetEventHandler.cs:
+ * libstetic/wrapper/WidgetNameChangedHandler.cs:
+ * libstetic/wrapper/SignalEventHandler.cs:
+ * libstetic/wrapper/SignalChangedEventHandler.cs
+
+ * libstetic/wrapper/SignalCollection.cs:
+ * libstetic/wrapper/Signal.cs: New class. Holds information
+ about signal handlers bound to a widgets.
+
+ * libstetic/ItemGroupCollection.cs: New collection class.
+
+ * stetic/SignalsEditor.cs: The new signals editor.
+
2005-09-27 Dan Winship <danw@novell.com>
* libstetic/HandleWindow.cs (HandleEvent): hack around bgo 316871
View
@@ -1 +1,8 @@
SUBDIRS = glue libstetic stetic
+
+pkgconfigdir = $(prefix)/lib/pkgconfig
+pkgconfig_DATA = stetic.pc
+
+EXTRA_DIST = stetic.pc
+
+DISTCLEANFILES = stetic.pc
View
@@ -1,5 +1,5 @@
AC_PREREQ(2.53)
-AC_INIT(stetic, 0.0.0)
+AC_INIT(stetic, 0.1.0)
AC_CONFIG_SRCDIR(stetic/Stetic.cs)
AM_INIT_AUTOMAKE(AC_PACKAGE_NAME, AC_PACKAGE_VERSION)
@@ -36,4 +36,5 @@ Makefile
glue/Makefile
libstetic/Makefile
stetic/Makefile
+stetic.pc
])
@@ -18,7 +18,9 @@ public class ClassDescriptor {
Gdk.Pixbuf icon;
bool deprecated, hexpandable, vexpandable;
- ArrayList groups = new ArrayList ();
+ ItemGroupCollection groups = new ItemGroupCollection ();
+ ItemGroupCollection signals = new ItemGroupCollection ();
+
int importantGroups;
ItemGroup contextMenu;
ItemGroup internalChildren;
@@ -94,6 +96,19 @@ public ClassDescriptor (Assembly assembly, XmlElement elem)
}
}
+ XmlElement signalsElem = elem["signals"];
+ if (signalsElem != null) {
+ foreach (XmlElement groupElem in signalsElem.SelectNodes ("itemgroup")) {
+ ItemGroup itemgroup;
+ if (groupElem.HasAttribute ("ref")) {
+ string refname = groupElem.GetAttribute ("ref");
+ itemgroup = Registry.LookupSignalGroup (refname);
+ } else
+ itemgroup = new ItemGroup (groupElem, this);
+ signals.Add (itemgroup);
+ }
+ }
+
XmlElement contextElem = elem["contextmenu"];
if (contextElem != null) {
if (contextElem.HasAttribute ("ref")) {
@@ -216,12 +231,18 @@ public object NewInstance (IProject proj)
}
}
- public ArrayList ItemGroups {
+ public ItemGroupCollection ItemGroups {
get {
return groups;
}
}
+ public ItemGroupCollection SignalGroups {
+ get {
+ return signals;
+ }
+ }
+
public int ImportantGroups {
get {
return importantGroups;
Oops, something went wrong.

0 comments on commit af70298

Please sign in to comment.