#
f99596f4 |
|
23-Dec-2023 |
John Scipione <jscipione@gmail.com> |
Icon-O-Matic: Fix crashes while auto-scrolling This fixes crashes that happen when scrolling list views in Icon-O-Matic triggered by the BListView auto-scroll feature reintroduced in hrev57439. Take out the auto-scrolling code from Icon-O-Matic, call BListView's MouseMoved() instead since BListView's can scroll now. The BListView auto- scroll feature has been updated to work with draggable multi-select. ScrollTo(index) method has been moved from Icon-O-matic to BListView and is used to scroll to an index instead of a selection since the selection doesn't change while you are dragging. Override BListItem's DrawItem() method to prevent it from drawing. I've hijacked DrawItem()'s complete param to mean even or odd instead. Everybody draws the same background PathListView.cpp and StyleListView.cpp now push the frame over and draw text using SimpleListView parent class DrawItem() instead of repeating the drawing code. InitiateDrag got moved from the abstract DragSortableListView class to the SimpleListView implementation class. The following color constants have been added: rgb_color kDropIndicatorColor = make_color(255, 65, 54, 255); rgb_color kDragFrameColor = make_color(17, 17, 17, 255); First one is the red drop target indicator line. It has been changed to clrs.cc red which is the same as B_FAILURE_COLOR, but I didn't want to use that InterfaceDef constant as it doesn't indicate failure in this case, it's just a slightly different red. Second one is the drag selection outline, it has been changed from pure black to clrs.cc black which is a shade lighter than pure black. Fixes #18707 Change-Id: Ib0b375d7d5641d458a6ce004a6dfeac551636698 Reviewed-on: https://review.haiku-os.org/c/haiku/+/7215 Reviewed-by: waddlesplash <waddlesplash@gmail.com> Reviewed-by: Adrien Destugues <pulkomandy@pulkomandy.tk> Tested-by: Commit checker robot <no-reply+buildbot@haiku-os.org>
|
#
4b0dffe5 |
|
21-Aug-2023 |
Zardshard <0azrune6@zard.anonaddy.com> |
Icon-O-Matic: Make list items copy/pastable Also: * make transformers draggable * clean up archiving code Partially addresses #18400 Change-Id: Ibc384a1919e1330113a5e2857da16284181a834e Reviewed-on: https://review.haiku-os.org/c/haiku/+/6869 Reviewed-by: waddlesplash <waddlesplash@gmail.com> Tested-by: Commit checker robot <no-reply+buildbot@haiku-os.org>
|
#
64279352 |
|
22-Jun-2023 |
Zardshard <0azrune6@zard.anonaddy.com> |
Icon-O-Matic: Generalize some classes * Turns PathContainer, ShapeContainer, StyleContainer into Container. * Makes Shape use Container for storing Tansformers instead of reinventing the wheel yet again. * Moves common logic from AddPathsCommand, AddStylesCommand, AddShapesCommand, and AddTransformersCommand to AddCommand. * Factors out common logic from two more commands similar to above. This adds the MoveCommand and RemoveCommand classes. * Cleans up some code style. Change-Id: I59eca94a1c45eac608514f269f6e5f8628f93fab Reviewed-on: https://review.haiku-os.org/c/haiku/+/6640 Tested-by: Commit checker robot <no-reply+buildbot@haiku-os.org> Reviewed-by: Adrien Destugues <pulkomandy@pulkomandy.tk>
|
#
098eaec6 |
|
08-Jun-2023 |
Zardshard <0azrune6@zard.anonaddy.com> |
Icon-O-Matic: Add reference images Fixes #2748 Also fixes a comment misstating a function's name and code style. Change-Id: I609a1f1e100ded647818e70b428cedc48cf29036 Reviewed-on: https://review.haiku-os.org/c/haiku/+/6604 Tested-by: Commit checker robot <no-reply+buildbot@haiku-os.org> Reviewed-by: Adrien Destugues <pulkomandy@pulkomandy.tk>
|
#
ae59605d |
|
09-Jun-2015 |
Janus <janus2@ymail.com> |
Icon-o-Matic: fix variables name 2 * thanks to stippi for pointing out the problem.
|
#
c80329fa |
|
09-Jun-2015 |
Janus <janus2@ymail.com> |
Icon-O-Matic: fix variables name
|
#
14f0e6d7 |
|
09-Jun-2015 |
Janus <janus2@ymail.com> |
Icon-o-Matic: list views use system colors * Fixes #10840. * Properties view needs more work for dark themes (There is another ticket for that).
|
#
0cbb6c11 |
|
09-May-2015 |
Stephan Aßmus <superstippi@gmx.de> |
Icon-O-Matic: Make GradientTransformable a BReferenceable * Switch to using support/Referenceable.h instead of using an older copy of this code. * Make GradientTransformable a BReferenceable and fix #12033.
|
#
f30d4638 |
|
05-May-2012 |
Stephan Aßmus <superstippi@gmx.de> |
Accept dropping Styles from another I-O-M window. * Add archived versions of the selected Styles to the drag message. * If the base class didn't handle the drop message, try to unarchive Styles and add them via AddStylesCommand.
|
#
01bcddc1 |
|
05-May-2012 |
Stephan Aßmus <superstippi@gmx.de> |
Code style cleanup
|
#
546208a5 |
|
16-Apr-2012 |
Oliver Tappe <zooey@hirschkaefer.de> |
More catalog-related cleanup. * rename B_TRANSLATE_CONTEXT to B_TRANSLATION_CONTEXT and B_TRANSLATE_WITH_CONTEXT to B_TRANSLATE_CONTEXT, squashing a TODO * adjust all uses of both macros in Haiku's source tree * use correct header guard for collecting/Catalog.h The renamed macros require adjustments to all external applications using catalogs.
|
#
61ee19d1 |
|
10-Apr-2011 |
Stephan Aßmus <superstippi@gmx.de> |
* A whole buch of refactoring and other changes to make Icon-O-Matic a multi-document application. This is already more useful than before, but will be even more useful once it is possible to copy more types of objects to the system clipboard and paste them into other open icons. * Fixed wrong snapping menu item being marked when restoring settings that enable a different snapping mode from the default. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@41212 a95241bf-73f2-0310-859d-f6bbb57e9c96
|
#
518852fc |
|
29-Dec-2010 |
Adrien Destugues <pulkomandy@pulkomandy.ath.cx> |
Patch by Dziadek: localize IconOMatic git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@40025 a95241bf-73f2-0310-859d-f6bbb57e9c96
|
#
7974d3dc |
|
13-Jan-2010 |
Stephan Aßmus <superstippi@gmx.de> |
Patch by Humdinger: Updated Haiku apps to use sentence-case. What a huge undertaking... The files where I had to apply the patch manually (for mysterious reasons) have also gotten a whitespace cleanup. I've proof-read everything so hopefully there should be no problems. This should be the final part of #5169. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@35049 a95241bf-73f2-0310-859d-f6bbb57e9c96
|
#
fb3e35fc |
|
22-Jan-2009 |
Michael Lotz <mmlr@mlotz.ch> |
Fixing all headers/namespaces/name lookup problems that hinder a GCC 4.3.2 build. I sure hope that this doesn't break the build for anyone else. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28992 a95241bf-73f2-0310-859d-f6bbb57e9c96
|
#
991547ef |
|
14-Oct-2008 |
Stephan Aßmus <superstippi@gmx.de> |
Patch by Artur Wyszynski: * Implemented BGradient, BGradientLinear, BGradientRadial, BGradientDiamond, BGradientConic and BGradientRadialFocus new Interface Kit classes. * Implemented all the (AGG-based) backend necessary in the app_server to render gradients (Painter, DrawingEngine) * app_server/View can convert a BGradient layout to screen coordinates. * Added BGradient methods of the Fill* methods in BView. * Implemented a test app and added it to the image as a demo. * Adopted Icon-O-Matic and libs/icon in order to avoid clashing with the new BGradient class. Re-use some parts where possible. Awesome work, Artur! Thanks a lot. Now a more modern looking GUI has just become much easier to implement! :-) TODO: * Remove the need to have gradient type twice in the app_server protocol. * Refactor some parts of the patch to remove duplicated code (Painter, DrawingEngine). * Adopt the BPicture protocol to know about BGradients. * Review some parts of the BArchivable implementation. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28109 a95241bf-73f2-0310-859d-f6bbb57e9c96
|
#
015a014a |
|
21-Sep-2007 |
Stephan Aßmus <superstippi@gmx.de> |
* fixed quite a few selections bugs, most were caused by cyclic notifications, and the mechanism to prevent them not working... * could have fixed the "there are still listeners attached" bug (debugger drop) on exit, I have not seen it again, but I am not sure if it is really fixed * introduced a way to ask the user, if changes should be saved and then pick up the line of thought after saving git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@22269 a95241bf-73f2-0310-859d-f6bbb57e9c96
|
#
3ec18e87 |
|
17-Sep-2006 |
Marcus Overhagen <marcusoverhagen@gmail.com> |
various GCC 4 build fixes git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@18875 a95241bf-73f2-0310-859d-f6bbb57e9c96
|
#
0e1ba39f |
|
29-Aug-2006 |
Stephan Aßmus <superstippi@gmx.de> |
* merged Icon-O-Matic from Ingos layout branch into trunk (r18134:18685) git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@18686 a95241bf-73f2-0310-859d-f6bbb57e9c96
|
#
61b0e9e3 |
|
12-Jul-2006 |
Stephan Aßmus <superstippi@gmx.de> |
* added a little bit of tracing to object destruction, since there seems to be a problem when quitting the app * added Undo/Redo commands for numerous operations - (un)assigning VectorPaths to Shapes - adding new VectorPaths - removing VectorPaths - adding Shapes - transforming Shapes - adding Styles - changing Style color * there was a mix up in classes inheriting from SimpleListView, RemoveItemList() gives a list of item pointers, not indices * GradientControl sent the focus notification to the window instead of the set BHandler target * StyleView takes care of transfering the current Style color or the focused gradient stop color to the CurrentColor object, so the current color of the SwatchGroup is synced * small improvement to layout of SwatchGroup * SwatchGroup no longer knows anything about a Style * fixed syncing the global Selection to the listview selection at least for ShapeListView * implemented cloning Shapes - added Transformer::Clone(VectorSource& source) to all Transformers - ShapeListView uses this when dropping shapes with shift pressed * updated NOTES * added Transformable::matrix_size, so that "6" isn't hardcoded everywhere (though it still is at most places) * added listener interface to TransformBox, this is used by the new TransformObjectsCommand, as long as the TransformBox still exists, the command modifies the TransformBox transformation instead of messing with the objects itself * fixed hotspot size in TransformBox by using the zoom level of the CanvasView * TransformBox rotates/scales correctly around the visible pivot * fixed TransformCommand toggling to transformation (the diff was bogus) * Gradient doesn't trigger unnecessary notifications in SetColor() * CanvasView doesn't eat keyboard events when the GradientControl or one of the ListViews has focus (is a hack currently...) * fixed bug in PropertyListView when it calls the PropertyChanged() hook: because of the notification mechanism, the Properties might be toast after the hook returns * moved all GetProperty() implementations from headers into .cpp files git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@18122 a95241bf-73f2-0310-859d-f6bbb57e9c96
|
#
85623bad |
|
09-Jul-2006 |
Stephan Aßmus <superstippi@gmx.de> |
* relayout of the GUI, you can start to take it serious :-) git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@18077 a95241bf-73f2-0310-859d-f6bbb57e9c96
|
#
4215c452 |
|
08-Jul-2006 |
Stephan Aßmus <superstippi@gmx.de> |
* implemented MoveTransformersCommand (so Transformers can be drag sorted now) * implemented RemoveTransformersCommand * implemented StyleListView (I promise, this is the last list view :-) * implemented adding new styles via the Style menu * implemented selecting the Style of the currently selected Shape git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@18072 a95241bf-73f2-0310-859d-f6bbb57e9c96
|
#
ae59605d24d5ff1e9d795f8551fa9d46a9f05e12 |
|
09-Jun-2015 |
Janus <janus2@ymail.com> |
Icon-o-Matic: fix variables name 2 * thanks to stippi for pointing out the problem.
|
#
c80329fa61d30d05cacbb237864b42c07e16de99 |
|
09-Jun-2015 |
Janus <janus2@ymail.com> |
Icon-O-Matic: fix variables name
|
#
14f0e6d73d4ee697753149a03ebb0dff13bc0cc5 |
|
09-Jun-2015 |
Janus <janus2@ymail.com> |
Icon-o-Matic: list views use system colors * Fixes #10840. * Properties view needs more work for dark themes (There is another ticket for that).
|
#
0cbb6c11eec74201f566920c90ebd2c5546b7aa6 |
|
09-May-2015 |
Stephan Aßmus <superstippi@gmx.de> |
Icon-O-Matic: Make GradientTransformable a BReferenceable * Switch to using support/Referenceable.h instead of using an older copy of this code. * Make GradientTransformable a BReferenceable and fix #12033.
|
#
f30d4638665e3383fbee1dff819e52a0343dad6e |
|
05-May-2012 |
Stephan Aßmus <superstippi@gmx.de> |
Accept dropping Styles from another I-O-M window. * Add archived versions of the selected Styles to the drag message. * If the base class didn't handle the drop message, try to unarchive Styles and add them via AddStylesCommand.
|
#
01bcddc1bfead44532cc185e66be4b2ef29b2b53 |
|
05-May-2012 |
Stephan Aßmus <superstippi@gmx.de> |
Code style cleanup
|
#
546208a53940a26c6379c48a7854ade1a8250fc5 |
|
16-Apr-2012 |
Oliver Tappe <zooey@hirschkaefer.de> |
More catalog-related cleanup. * rename B_TRANSLATE_CONTEXT to B_TRANSLATION_CONTEXT and B_TRANSLATE_WITH_CONTEXT to B_TRANSLATE_CONTEXT, squashing a TODO * adjust all uses of both macros in Haiku's source tree * use correct header guard for collecting/Catalog.h The renamed macros require adjustments to all external applications using catalogs.
|
#
61ee19d10fcc38e93a80a29b90efe6e4e15604df |
|
10-Apr-2011 |
Stephan Aßmus <superstippi@gmx.de> |
* A whole buch of refactoring and other changes to make Icon-O-Matic a multi-document application. This is already more useful than before, but will be even more useful once it is possible to copy more types of objects to the system clipboard and paste them into other open icons. * Fixed wrong snapping menu item being marked when restoring settings that enable a different snapping mode from the default. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@41212 a95241bf-73f2-0310-859d-f6bbb57e9c96
|
#
518852fca73d16198413de528219fcdfa6b04647 |
|
29-Dec-2010 |
Adrien Destugues <pulkomandy@pulkomandy.ath.cx> |
Patch by Dziadek: localize IconOMatic git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@40025 a95241bf-73f2-0310-859d-f6bbb57e9c96
|
#
7974d3dcf39ce78e5885b481eee12e561ad6e096 |
|
13-Jan-2010 |
Stephan Aßmus <superstippi@gmx.de> |
Patch by Humdinger: Updated Haiku apps to use sentence-case. What a huge undertaking... The files where I had to apply the patch manually (for mysterious reasons) have also gotten a whitespace cleanup. I've proof-read everything so hopefully there should be no problems. This should be the final part of #5169. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@35049 a95241bf-73f2-0310-859d-f6bbb57e9c96
|
#
fb3e35fcec1ef41b413b3b121764509f436dee4d |
|
22-Jan-2009 |
Michael Lotz <mmlr@mlotz.ch> |
Fixing all headers/namespaces/name lookup problems that hinder a GCC 4.3.2 build. I sure hope that this doesn't break the build for anyone else. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28992 a95241bf-73f2-0310-859d-f6bbb57e9c96
|
#
991547ef6c1fca650f0fba855206296ef54bc441 |
|
14-Oct-2008 |
Stephan Aßmus <superstippi@gmx.de> |
Patch by Artur Wyszynski: * Implemented BGradient, BGradientLinear, BGradientRadial, BGradientDiamond, BGradientConic and BGradientRadialFocus new Interface Kit classes. * Implemented all the (AGG-based) backend necessary in the app_server to render gradients (Painter, DrawingEngine) * app_server/View can convert a BGradient layout to screen coordinates. * Added BGradient methods of the Fill* methods in BView. * Implemented a test app and added it to the image as a demo. * Adopted Icon-O-Matic and libs/icon in order to avoid clashing with the new BGradient class. Re-use some parts where possible. Awesome work, Artur! Thanks a lot. Now a more modern looking GUI has just become much easier to implement! :-) TODO: * Remove the need to have gradient type twice in the app_server protocol. * Refactor some parts of the patch to remove duplicated code (Painter, DrawingEngine). * Adopt the BPicture protocol to know about BGradients. * Review some parts of the BArchivable implementation. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28109 a95241bf-73f2-0310-859d-f6bbb57e9c96
|
#
015a014aa74d4366a1c2c14ecef92483ebf3e532 |
|
21-Sep-2007 |
Stephan Aßmus <superstippi@gmx.de> |
* fixed quite a few selections bugs, most were caused by cyclic notifications, and the mechanism to prevent them not working... * could have fixed the "there are still listeners attached" bug (debugger drop) on exit, I have not seen it again, but I am not sure if it is really fixed * introduced a way to ask the user, if changes should be saved and then pick up the line of thought after saving git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@22269 a95241bf-73f2-0310-859d-f6bbb57e9c96
|
#
3ec18e87d6cfa48715a6ed10bcd03858d832093b |
|
17-Sep-2006 |
Marcus Overhagen <marcusoverhagen@gmail.com> |
various GCC 4 build fixes git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@18875 a95241bf-73f2-0310-859d-f6bbb57e9c96
|
#
0e1ba39f0440e200e30b6a648e70c3e8683dc5f7 |
|
29-Aug-2006 |
Stephan Aßmus <superstippi@gmx.de> |
* merged Icon-O-Matic from Ingos layout branch into trunk (r18134:18685) git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@18686 a95241bf-73f2-0310-859d-f6bbb57e9c96
|
#
61b0e9e3149012ccbd48a10dcbc7f83600bb4769 |
|
12-Jul-2006 |
Stephan Aßmus <superstippi@gmx.de> |
* added a little bit of tracing to object destruction, since there seems to be a problem when quitting the app * added Undo/Redo commands for numerous operations - (un)assigning VectorPaths to Shapes - adding new VectorPaths - removing VectorPaths - adding Shapes - transforming Shapes - adding Styles - changing Style color * there was a mix up in classes inheriting from SimpleListView, RemoveItemList() gives a list of item pointers, not indices * GradientControl sent the focus notification to the window instead of the set BHandler target * StyleView takes care of transfering the current Style color or the focused gradient stop color to the CurrentColor object, so the current color of the SwatchGroup is synced * small improvement to layout of SwatchGroup * SwatchGroup no longer knows anything about a Style * fixed syncing the global Selection to the listview selection at least for ShapeListView * implemented cloning Shapes - added Transformer::Clone(VectorSource& source) to all Transformers - ShapeListView uses this when dropping shapes with shift pressed * updated NOTES * added Transformable::matrix_size, so that "6" isn't hardcoded everywhere (though it still is at most places) * added listener interface to TransformBox, this is used by the new TransformObjectsCommand, as long as the TransformBox still exists, the command modifies the TransformBox transformation instead of messing with the objects itself * fixed hotspot size in TransformBox by using the zoom level of the CanvasView * TransformBox rotates/scales correctly around the visible pivot * fixed TransformCommand toggling to transformation (the diff was bogus) * Gradient doesn't trigger unnecessary notifications in SetColor() * CanvasView doesn't eat keyboard events when the GradientControl or one of the ListViews has focus (is a hack currently...) * fixed bug in PropertyListView when it calls the PropertyChanged() hook: because of the notification mechanism, the Properties might be toast after the hook returns * moved all GetProperty() implementations from headers into .cpp files git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@18122 a95241bf-73f2-0310-859d-f6bbb57e9c96
|
#
85623bad057fb4912f355ac5a4dde05fbd471b10 |
|
09-Jul-2006 |
Stephan Aßmus <superstippi@gmx.de> |
* relayout of the GUI, you can start to take it serious :-) git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@18077 a95241bf-73f2-0310-859d-f6bbb57e9c96
|
#
4215c452a4a92759e04b8c221016fea48531f1bc |
|
08-Jul-2006 |
Stephan Aßmus <superstippi@gmx.de> |
* implemented MoveTransformersCommand (so Transformers can be drag sorted now) * implemented RemoveTransformersCommand * implemented StyleListView (I promise, this is the last list view :-) * implemented adding new styles via the Style menu * implemented selecting the Style of the currently selected Shape git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@18072 a95241bf-73f2-0310-859d-f6bbb57e9c96
|