Commit Graph

26531 Commits

Author SHA1 Message Date
Martin Nordholts 624bb78c4c app: Move down gimp_dock_window_from_dock() in the file
Move down gimp_dock_window_from_dock() in the file as it is a special
kind of function.
2009-10-26 07:52:07 +01:00
Martin Nordholts dd96705549 app: Allow multi-column dock windows by drag-and-drop
When dropping a dockable on a dock separator on the side of e.g. a
dock window, a new column of dockables will be created. This allows
multi-column dock window setups.
2009-10-25 23:34:43 +01:00
Martin Nordholts d3bb3e7f99 app: Add and use gimp_dockbook_drag_source_to_dockable() 2009-10-25 23:02:05 +01:00
Martin Nordholts 2b622f99cd app: gimp_dock_separator_get_anchor() -> _get_insert_pos() 2009-10-25 22:25:06 +01:00
Martin Nordholts 521543106c app: Enable repeated toggling between Multi- and Single-window mode
Enable repeated toggling between Multi- an Single-window mode. When
enabling Single-window mode all docks and displays are put in a single
window. When disabling Single-window mode they are moved out to their
own windows again.
2009-10-25 22:05:57 +01:00
Martin Nordholts fdf2454666 app: Add gimp_image_window_new/destroy()
Add gimp_image_window_new/destroy() so we have a central place where
the Gimp::image_windows list is managed.
2009-10-25 22:02:38 +01:00
Martin Nordholts 19baff1a50 app: Add gimp_image_window_get_shell() 2009-10-25 21:57:14 +01:00
Martin Nordholts be8e0045ac app: Add gimp_dock_window_get_docks()
Add gimp_dock_window_get_docks() and get rid of trailing whitespace.
2009-10-25 21:50:08 +01:00
Martin Nordholts b9214fd3cf app: Add "gimp" property to GimpImageWindow 2009-10-25 21:44:23 +01:00
Martin Nordholts d7c61bade9 app: Copy dialogs list so we can remove while we iterate 2009-10-25 20:35:49 +01:00
Martin Nordholts ca5fbf45d4 app: gimp_get_image_window_iter() -> gimp_get_image_windows()
Rename gimp_get_image_window_iter() to gimp_get_image_windows() and
make it return a copy of the list of windows. Typically we will kill
or create new windows when we use this function which is why we do a
copy.
2009-10-25 20:31:55 +01:00
Martin Nordholts 39ee4ffa43 app: Use gimp_dock_window_remove_dock() not gtk_container_remove()
Since we added a GimpDockColumns to GimpDockWindows we need to use
gimp_dock_window_remove_dock() not gtk_container_remove(). This makes
"Windows→Single-window mode" work as before again.
2009-10-25 20:27:28 +01:00
Martin Nordholts 870d7f9376 app: Connect to GtkNotebook::page-removed in GimpImageWindow
We must disconnect from the last display shell when it is removed
when rearranging the UI, so connect to GtkNotebook::page-removed
in GimpImageWindow and do that.
2009-10-25 20:03:51 +01:00
Martin Nordholts 75ee76ecb6 app: Handle gimp_image_window_get_active_shell() returning NULL
When rearranging the UI it is pretty common that
gimp_image_window_get_active_shell() returns NULL so check for that.
2009-10-25 20:03:51 +01:00
Alexia Death fc3c368f96 Fix 180 degrees rotated brushes with dynamics off and direction following. 2009-10-25 17:16:26 +02:00
Martin Nordholts e81c4f44de app: Allow more than one dock inside a dock window
Put a GimpDockColumns inside GimpDockWindow so that there can be more
than one dock inside a dock window. For now,
gimp_dock_window_get_dock() returns the first dock. Eventually need to
return all docks and refactor the other code as needed.
2009-10-25 13:10:08 +01:00
Martin Nordholts ff6a787757 app: Add gimp_dialog_factory_dock_window_new()
Add gimp_dialog_factory_dock_window_new() since we need to be able to
create only dock windows when going from single-window mode back to
multi-window.
2009-10-25 12:24:54 +01:00
Martin Nordholts 31b0f01748 devel-docs: Start working on ui-framework.txt
This document describes how the GIMP UI framework functions and is
implemented. Here, "UI framework" refers to the system that saves the
UI layout between GIMP sessions, i.e. how docks, dockable dialogs etc
are setup.
2009-10-25 12:13:03 +01:00
Martin Nordholts 3934813dd1 app: Insert, not prepend, into GimpDock dockbooks list
Insert, not prepend, into GimpDock dockbooks list. Fixes failing test
'test-session-management.c'.
2009-10-25 11:49:54 +01:00
Martin Nordholts 43c000498b app: Format gimpdialogfactory.h 2009-10-25 10:53:00 +01:00
Martin Nordholts 9cbe0cafa8 app: Document GimpDialogFactory 2009-10-25 10:38:42 +01:00
Martin Nordholts 65c0ce5dbe app: Get rid of const disqualifier warning
Get rid of const qualifier for a bunch of GimpDisplayShell getters to
get rid of a disqualifier warning. The problem is that we call into
GTK+ which sometime misses const which breaks the chain. As a general
guideline we should avoid const for widgets.
2009-10-24 21:02:19 +02:00
Martin Nordholts 4bd2230a55 app: Chain up GimpPanedBox::finalize() 2009-10-24 20:33:09 +02:00
Martin Nordholts 2acc6e3de1 Ignore Qt Creator project files
It works fairly well to use Qt Creator to develop and debug
GIMP. Ignore Qt Creator 4.x-ish project files.
2009-10-24 20:24:21 +02:00
Martin Nordholts 6f95bc6888 app: Keep GimpDocks in GtkPaneds in GimpDockColumns
Use the new GimpPanedBox to make the space for GimpDocks in
GimpDockColumns manually distributable by the use of GtkPaneds.
2009-10-24 20:10:42 +02:00
Martin Nordholts b700f219de app: Make created GtkPaned subclass depend on GimpPanedBox orientation 2009-10-24 20:08:08 +02:00
Martin Nordholts eb9b365864 app: Add GimpPanedBox
Add a new class GimpPanedBox that wraps the arrangement of widgets
into GtkPaned hierarchies. It takes over the separator management from
GimpDock and the GtkPaned management from
gimpwidgets-utils.[ch]. GimpPanedBox can be both vertically and
horizontally oriented.

Change GimpDock to use this widget and make some other minor
adaptations.
2009-10-24 18:53:46 +02:00
Martin Nordholts 69f17fdbf2 app: Add gimp_dock_separator_set_dropped_cb()
Allow to set the dropped callback after dock separator construction.
We need this in order to move the dock separators into a common widget
for which the callback to use is not known at construction time.
2009-10-24 18:43:35 +02:00
Martin Nordholts fafee5230f configure.ac: Don't disable deprecated APIs for unreleased libs
Update version checks and prevent disabling of deprecatd APIs for
unreleased versions of libs.
2009-10-24 15:03:59 +02:00
Martin Nordholts 73ba838093 configure.ac: Fix GTK+ and GLib version report 2009-10-24 13:58:29 +02:00
Khaled Hosny 6693ed9a91 Updated Arabic translation 2009-10-23 23:25:07 +02:00
Khaled Hosny d848cdc939 Add missing files 2009-10-23 18:50:42 +02:00
Khaled Hosny 25b0bab7d6 Updated Arabic translation 2009-10-23 18:39:43 +02:00
Michael Natterer bc33e4735d Sync required pango version with configure 2009-10-22 20:37:01 +02:00
Michael Natterer ea7c37293c Don't block all key events on the canvas (fixes tool interaction)
(gimp_display_shell_canvas_tool_events): when ignoring events on
overlays, special case key events because they always originate from
the topelvel and never from the canvas' window itself.
2009-10-21 19:35:20 +02:00
Tournaris Pavlos a93cb543ff Updated Greek po-python translation 2009-10-20 14:41:36 +03:00
Vasilis Kontogiannis 2e6dd9a128 Updated Greek libgimp translation 2009-10-20 14:38:10 +03:00
Vasilis Kontogiannis 1f9a0cf170 Updated Greek translation 2009-10-20 14:32:49 +03:00
Michael Natterer db896708f3 Disable RGBA colormaps in offscreen widgets for now because they crash 2009-10-19 11:03:23 +02:00
Michael Natterer 0b712fb4e5 GtkInputDialog is deprecated now, so #undef GTK_DISABLE_DEPRECATED
Finally the reason needed to reimplement this beast in a proper way in
GIMP.
2009-10-19 10:11:45 +02:00
Michael Natterer 8a377be277 Turn legacy tranlation context "tool|_Zoom" into a proper one 2009-10-19 00:13:56 +02:00
Michael Natterer 8780342dcb Set a 10px border on the canvas so overlays have some spacing 2009-10-18 23:03:04 +02:00
Michael Natterer 0c58ffe680 Use an RGBA colormap so rounded corners work 2009-10-18 22:53:26 +02:00
Michael Natterer 84ab7454b5 Put the image map tool dialogs into overlay boxes when in fullscreen mode 2009-10-18 22:42:21 +02:00
Michael Natterer 81786482ec Add GimpToolOverlay which displays tool dialogs directly on the canvas
The new widget has a GtkDialog-like API so tools which use either an
overlay or a real dialog are as obvious as possible.
2009-10-18 22:33:23 +02:00
Michael Natterer 8124792130 Derive GimpCanvas from GimpOverlayBox
- adapt callbacks to ignore / not block events on offscreen children
- use GimpOverlayBox' scroll API which makes sure overlay children
  don't scroll along
2009-10-18 22:19:29 +02:00
Michael Natterer 3d354c9434 Add new widget GimpOverlayBox which is a GtkContainer subclass
It keeps around its children as offscreen widgets and renders them
using a (potantially) arbitrary cairo_matrix_t (the actual API allows
for arbitrary alignment wihin the container and rotating).
2009-10-18 21:57:34 +02:00
Michael Natterer 4822ca0d6d Make menu positioning also works for transformed offscreen widgets
(gimp_button_menu_position): reorder the code, use the new
gdk_window_get_root_coords() and pass it coordinates that include
the widget's offset within its parent gdk window.
2009-10-18 16:03:33 +02:00
Michael Natterer 0ce426cc79 Make the toggle grid insensitive when the dynamics are read-only 2009-10-18 13:24:59 +02:00
Michael Natterer 387ec40214 Remove useless frame and vbox that were copied over from the paint options 2009-10-18 13:10:58 +02:00