summaryrefslogtreecommitdiff
path: root/gladeui/glade-design-view.c
Commit message (Collapse)AuthorAgeFilesLines
* Fix use of GTK+ style context APIsMatthias Clasen2015-12-111-3/+7
| | | | | | Make sure to save the style context before querying with other states. This stops GTK+ from warning, and makes things work.
* GladeAdaptorChooser: created new widget to choose an adaptor.Juan Pablo Ugarte2014-05-131-0/+45
| | | | | | Used in GladePlaceholder and GladeDesignView to quickly create new widgets and objects. This should be more than enough to close Bug 708146 "Catalog search entry"
* Convert every object to use G_DEFINE_TYPE_WITH_CODE() or G_ADD_PRIVATE() macrosJuan Pablo Ugarte2014-04-171-6/+3
| | | | Fixed function prototype identation and spacing.
* Correct bounds checking for design view highlightChris Johns2014-03-141-1/+1
| | | | | | | | | The check should be for both x and y being less than 0, as when the cursor is moved out of the design view "canvas" area, the values are set to -1. Note this doesn't actually change behaviour, as the coordinates are set to (-1, -1) whent the cursor leaves the area. https://bugzilla.gnome.org/show_bug.cgi?id=723819
* Drag&Drop clean up.Juan Pablo Ugarte2013-08-191-299/+223
| | | | | | | | | | | Added private _GladeDrag interface. (only used internaly in gladeui) Implemented _GladeDrag in GladePlaceholder GladeWidget GladeDesignView and GladeDesignLayout Added drag-dest property to GladeWidget to enable/disable drag support (used in GtkFixed GtkLayout and GtkOverlay containers) Made GladeInspector a drag source by implementing GtkTreeDragSource interface in GladeProject
* Converted GladeBaseEditor, GladeDesignView and GladePalette to be GtkBox ↵Tristan Van Berkom2013-05-071-1/+3
| | | | | | subclasses Avoids deprecation warnings from GtkVBox.
* GladeDesignView: Remove some of the hacks in Drag and DropTristan Van Berkom2013-04-041-47/+5
| | | | | Allow normal code paths to run at drop time, GladeWidget implementations ensure that the child is dropped at the right location.
* HACK: Allow GtkLayout to have children dragged into it at mouse position.Tristan Van Berkom2013-04-031-4/+4
| | | | | | | | This is a hack and all GTK_IS_FIXED() GTK_IS_LAYOUT() statements in GladeDesignView code needs to go away. This should instead be properly handled by a general feature of GladeWidget/GladeWidgetAdaptor.
* Removed GladeDesignView shadow since it is ussually packed in a notebookJuan Pablo Ugarte2013-03-121-3/+0
|
* Removed project parameter check in glade_design_view_set_project()Juan Pablo Ugarte2013-01-221-4/+5
|
* glade_design_view_set_project(): keep a reference to projectJuan Pablo Ugarte2013-01-221-7/+33
|
* Implemented inline Drag and DropJuan Pablo Ugarte2013-01-181-168/+412
|
* Added Drag&Drop support from the palette.Juan Pablo Ugarte2013-01-181-0/+196
|
* Render bg in GladeDesignLayout and GladeDesignViewJuan Pablo Ugarte2012-10-081-4/+14
|
* Removed use of custon style providers. Fixes color problems in adwaita themesJuan Pablo Ugarte2012-10-071-10/+2
|
* Removed use of deprecated GtkHBox, GtkVBox and othersJuan Pablo Ugarte2012-04-281-1/+1
|
* Added custom style provider to setup viewport background color to @base_colorJuan Pablo Ugarte2012-04-271-23/+13
|
* Added workaround for child bg bug on Adwaita theme on the workspace.Juan Pablo Ugarte2011-11-031-5/+9
|
* Optimized project loading time by not updating progrebars on each object loaded.Juan Pablo Ugarte2011-04-131-88/+64
| | | | | Added bg logo on empty GladeDesignView. Migrated code using deprecated GtkStyle to GtkStyleContext
* * gladeui/glade-design-layout.c:Juan Pablo Ugarte2011-03-021-0/+1
| | | | | | | o removed double click toplevel maximize feature o replaced GDK_FLEUR cursor with GDK_BOTTOM_RIGHT_CORNER for resize action * gladeui/glade-design-view.c: make layout_box GTK_ALIGN_START to fix toplevel alignment
* * gladeui/glade-project.[ch]: added accessor for toplevel listJuan Pablo Ugarte2011-02-021-0/+5
| | | | | | | | | | * gladeui/glade-design-view.c: pack toplevel widgets in GladeProject toplevels list order. * gladeui/glade-property.c: added special case for parentless widget properties on glade_property_set_value_impl() to show and hide new and old values. * gladeui/glade-editor-property.c: removed glade_widget_hide() call on glade_eprop_object_show_dialog() since now its handled on GladeProperty
* * gladeui/glade-design-layout.c:Juan Pablo Ugarte2011-02-021-18/+19
| | | | | | | | allocate all the remaining space to child, this fixes some allocation issues on widget where gtk_widget_get_preferred_height() value is different than the one returned by gtk_widget_get_preferred_size() * gladeui/glade-design-view.c: set layout halign property to GTK_ALIGN_START
* * gladuei/glade-design-private.h, gladeui/glade-design-layout.[ch],Tristan Van Berkom2011-02-011-10/+10
| | | | | | gladeui/glade-design-view.[ch]: Relicensed LGPL, Juan Pablo Ugarte, Vincent Geddes and I are the only Copyright holders for these files and I have thier consent to relicense these files LGPL.
* * gladeui/glade-design-view.c: unified if statements in ↵Juan Pablo Ugarte2011-01-311-15/+13
| | | | glade_design_view_selection_changed()
* * gladeui/glade-design-layout.c:Juan Pablo Ugarte2011-01-311-44/+67
| | | | | | | | | | | | o implemented get_preferred_width_for_height() and get_preferred_width_for_height() to fix allocation problem o check if toplevel has a child selected before selecting it itself on button press o dont draw selection if widget has no allocation * gladeui/glade-design-view.c: o delegate scrolling to size-allocate if toplevel layout has no allocation Fixes scrolling while creating a new widget from the palette. o also add widgets on visibility change
* * gladeui/glade-design-view.[ch]:Juan Pablo Ugarte2011-01-311-22/+68
| | | | | | | | | | | | | | | | o removed glade_design_view_get_layout() declaration o removed gladeui/glade-design-layout.h include o implemented _glade_design_view_freeze/thaw() o handle widget adding and removal on project's add-widget and remove-widget signals o use widget-visibility-changed to remove toplevel from project when its hidden * gladeui/glade-design-layout.[ch]: o added design-view construct only property o use _glade_design_view_freeze/thaw() to avoid scrolling to selection from the layout. o removed unused _glade_design_layout_should_scroll() * gladeui/glade-design-private.h: added new file to declare private API.
* * gladeui/glade-app.c: replaced GladeDesignLayout API with the new private oneJuan Pablo Ugarte2011-01-291-64/+54
| | | | | | | | | | | | | | | | | | | | | | | | | | | | * gladeui/glade-design-layout.[ch]: o added widget maximization on label double click o fixed size allocation to be able to maximize widget without making the viewport scrollbars appear o removed glade_design_layout_selection_set() * gladeui/glade-design-view.c: o improved viewport scrolling to selected toplevel, now we only scroll if the selection was not triggered by the layout. o replaced on_project_add_widget() on_project_remove_widget() with new project signal widget-visibility-changed * gladeui/glade-project.[ch]: o added GladeProject::widget-visibility-changed signal o added glade_project_widget_visibility_changed() function * gladeui/glade-widget.c: o added visible property. o use glade_project_widget_visibility_changed() to emit signal on widget visibility change * gladeui/glade.h: removed glade-design-layout.h since now its private * gladeui/Makefile.am: do not install private header glade-design-layout.h * plugins/gtk+/Makefile.am: do not install headers
* * gladeui/glade-design-view.c: added a label at the end of the layout box ↵Juan Pablo Ugarte2011-01-291-3/+4
| | | | to allow the last layout to resize
* * gladeui/glade-design-view.c:Juan Pablo Ugarte2011-01-261-3/+17
| | | | | | | | | | | | | o draw viewport bg using base colors from style o set Layout box border width and spacing * gladeui/glade-design-layout.c: o removed padding (now set on parent) o added PangoLayout to draw widget name o added space needed for widget name in glade_design_layout_get_preferred_height () o glade_design_layout_size_allocate() allocate enough space for widget name o moved widget name to south east and used as resize grip o update widget name on GladeWidget::notify:name
* * gladeui/glade-design-view.c:Juan Pablo Ugarte2011-01-251-7/+91
| | | | | | | | | | o added a GtkVBox intead of a GladeDesignLayout to pack multiple layout/toplevels o add/remove widgets from layout on GladeProject add-widget and remove-widget signals * gladeui/glade-design-layout.c: draw widget name next to layout frame. * gladeui/glade-widget.c: comented code in glade_widget_hide() that was crashing because glade_design_view_get_layout() always returns NULL in this hack.
* 2011-01-22 Juan Pablo Ugarte <juanpablougarte@gmail.com>Juan Pablo Ugarte2011-01-231-0/+9
| | | | | | | | | | | | | | | | | | | | | | | * gladeui/glade-design-layout.[ch]: o added glade_design_layout_selection_set() (removed project dependency) o removed PointerRegion enum o reworked cursors pointer in an array to ease seting them o reemplazed glade_design_layout_get_pointer_region () with gdl_get_activity_from_pointer() o removed call to gtk_widget_size_allocate() in glade_design_layout_update_child() fixes rendering glith while resizing o precompute child offset to optimize from-embeder to-embeder handlers o draw "pretty" selection * gladeui/glade-design-view.c: set layout selection on project's selection-changed signal * gladeui/glade-app.[ch]: o added glade_app_do_event() o set custom gdk event handler to marshal event to GladeDesignLayouts using glade_design_layout_do_event() * gladeui/glade-utils.[ch]: removed unused function glade_util_draw_selection_nodes() * gladeui/glade-widget-adaptor.c: removed g_signal_override_class_handler() event marshalling hack.
* * gladeui/glade-design-view.c: Made it a no-show-all widget.Tristan Van Berkom2011-01-051-3/+6
|
* * ALL SOURCE FILES: Removed 8-space indentation, reformatted all code with:Tristan Van Berkom2010-12-301-157/+168
| | | | | | | | | | | | | indent \ --braces-after-if-line \ --case-brace-indentation0 \ --case-indentation2 \ --braces-after-struct-decl-line \ --line-length80 --no-tabs \ --dont-line-up-parentheses \ --continuation-indentation4 \ --continue-at-parentheses \ --honour-newlines --tab-size8 --indent-level2 -nbbo
* * gladeui/glade-design-view.c: Made loading progress bar nicer looking and ↵Tristan Van Berkom2010-12-291-2/+9
| | | | ellipsizing.
* Set progress bar to show text.Tristan Van Berkom2010-12-221-0/+1
|
* * gladeui/glade-project.c: Added "parse-began" signalTristan Van Berkom2010-12-221-10/+67
| | | | | | | | | | * gladeui/glade-design-view.c: Hide workspace and show load progress while loading so that one cannot access project widgets during the load (insensitive workspace was problematic and causing some loaded project windows to be permanently insensitive). * src/glade-window.c: Avoid any messups during project load, cannot close projects while they are loading, etc.
* Run gtkdocize with --flavour=no-tmplTristan Van Berkom2008-04-071-0/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * autogen.sh: Run gtkdocize with --flavour=no-tmpl * configure.ac: Require gtk-doc 1.9 and bump to 3.5.0 dev version. * doc/gladeui-overrides.txt, doc/children.sgml, doc/tmpl/*: Removed unneeded. * doc/gladeui-docs.sgml, doc/widgetclasses.sgml, doc/catalogintro.sgml, doc/Makefile.am: Mega docs update, added new files and completely rediscribed the catalog in its new form. * gladeui/glade-design-view.c, gladeui/glade-widget.c, gladeui/glade-widget-adaptor.c, gladeui/glade-command.c, gladeui/glade-widget-adaptor.h, gladeui/glade-base-editor.c, gladeui/glade-widget-action.c, gladeui/glade-xml-utils.c, gladeui/glade-utils.c, gladeui/glade-catalog.c, gladeui/glade-property.c, gladeui/glade-project.c: Added some description statements to newly documented files, fixed some warnings in other sources. M ChangeLog M configure.ac M doc/gladeui-docs.sgml M doc/widgetclasses.sgml M doc/catalogintro.sgml D doc/gladeui-overrides.txt M doc/Makefile.am D doc/children.sgml D doc/tmpl M doc/gladeui-sections.txt M doc/gladeui.types M doc/properties.sgml M gladeui/glade-design-view.c M gladeui/glade-widget.c M gladeui/glade-widget-adaptor.c M gladeui/glade-command.c M gladeui/glade-widget-adaptor.h M gladeui/glade-base-editor.c M gladeui/glade-widget-action.c M gladeui/glade-xml-utils.c M gladeui/glade-utils.c M gladeui/glade-catalog.c M gladeui/glade-property.c M gladeui/glade-project.c M autogen.sh svn path=/trunk/; revision=1775
* o Removed search algorythm for child widgets, removedTristan Van Berkom2007-01-311-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * gladeui/glade-widget.[ch]: o Removed search algorythm for child widgets, removed glade_widget_event_widget (), removed popup-menu signal handler, removed call to gtk_window_set_decorated() on toplevel project widgets, removed widget->setup_events(), removed hide_on_delete() o Added glade_widget_event() to feed events directly to widgets from the design layout. o Call glade_app_hierarchy_changed() upon add/remove/replace operations * gladeui/glade-utils.c: Removed glade_utils_deep_fixed_event() and the hacky widget grab that went with it. * gladeui/glade-app.[ch]: Added glade_app_hierarchy_changed() and added "hierarchy-changed" signal. * gladeui/glade-design-layout.c: o Make sure event window is always on top by trapping GladeApp's "hierarchy-changed" signal o Feed events directly to the proper GladeWidget, if its not handled then pass it on to the underlying widgets (using gtk_widget_event() directly). * gladeui/glade-cursor.c: Removed the recursive cursor setting routine. * gladeui/glade-fixed.c: Simplified immensely by removing redundant code, now there is only one GladeWidget to deal with, no searching and gropeing for the appropriate widget to operate on. svn path=/trunk/; revision=1065
* Now works like a pure widget, uses gtk_widget_size_allocate() to resizeTristan Van Berkom2007-01-281-2/+2
| | | | | | | | | | | | | | | | | | | * gladeui/glade-design-layout.[ch]: Now works like a pure widget, uses gtk_widget_size_allocate() to resize children and gtk_widget_queue_resize() to resize itself (removed default size control for now). * gladeui/glade-xml-utils.[ch], gladeui/glade-widget.[ch], gladeui/glade-widget-adaptor.[ch], plugins/gtk/gtk+.xml.in, plugins/gtk/glade-gtk.c, plugins/gnome/glade-gnome.c: - Added glade_xml_get_property_int() - Added default-width/height to catalog/GWA - Added toplevel-width/height properties to GladeWidget - Use default-width/height in catalogs instead of gtk_window_set_default_size() in plugin code. svn path=/trunk/; revision=1061
* Reorganised package structure, moved a lot of files and directories.Tristan Van Berkom2007-01-231-0/+196
* Reorganised package structure, moved a lot of files and directories. Modified the Makefile.am in most directories. * po/POTFILES.in, po/POTFILES.skip: Update for reorganisation. * configure.ac: Add files to AC_CONFIG_FILES. Change AC_CONFIG_SRCDIR. svn path=/trunk/; revision=1050