X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=src%2Fselection-chemistry.h;h=1f975975a6abc696f22199aaa9dfdc923b5392d7;hb=6f6e83456e84a4e7b27412c280db9bf932252c6d;hp=7cc5f8d9f55992d824b81ca289e03ad181825537;hpb=ba0842a4240ac9f46ab11d856227468237284186;p=inkscape.git diff --git a/src/selection-chemistry.h b/src/selection-chemistry.h index 7cc5f8d9f..1f975975a 100644 --- a/src/selection-chemistry.h +++ b/src/selection-chemistry.h @@ -1,5 +1,5 @@ -#ifndef __SP_SELECTION_CHEMISTRY_H__ -#define __SP_SELECTION_CHEMISTRY_H__ +#ifndef SEEN_SELECTION_CHEMISTRY_H +#define SEEN_SELECTION_CHEMISTRY_H /* * Miscellanous operations on selected items @@ -8,8 +8,9 @@ * Lauris Kaplinski * Frank Felfe * bulia byak + * Jon A. Cruz * - * Copyright (C) 1999-2005 authors + * Copyright (C) 1999-2010 authors * Copyright (C) 2001-2002 Ximian, Inc. * * Released under GNU GPL, read the file 'COPYING' for more information @@ -28,6 +29,20 @@ namespace LivePathEffect { class SPCSSAttr; +namespace Inkscape { + class SelectionHelper { + public: + static void selectAll(SPDesktop *desktop); + static void selectAllInAll(SPDesktop *desktop); + static void selectNone(SPDesktop *desktop); + static void invert(SPDesktop *desktop); + static void invertAllInAll(SPDesktop *desktop); + static void reverse(SPDesktop *dt); + static void selectNext(SPDesktop *desktop); + static void selectPrev(SPDesktop *desktop); + }; +} // namespace Inkscape + void sp_selection_delete(SPDesktop *desktop); void sp_selection_duplicate(SPDesktop *desktop, bool suppressDone = false); void sp_edit_clear_all(SPDesktop *desktop); @@ -48,6 +63,7 @@ void sp_selection_to_guides(SPDesktop *desktop); void sp_selection_tile(SPDesktop *desktop, bool apply = true); void sp_selection_untile(SPDesktop *desktop); +//void sp_selection_group_impl(GSList const *reprs_to_group, Inkscape::XML::Node *group, Inkscape::XML::Document *xml_doc, SPDocument *doc); void sp_selection_group(SPDesktop *desktop); void sp_selection_ungroup(SPDesktop *desktop); @@ -59,7 +75,7 @@ void sp_selection_lower_to_bottom(SPDesktop *desktop); SPCSSAttr *take_style_from_item (SPItem *item); void sp_selection_cut(SPDesktop *desktop); -void sp_selection_copy(); +void sp_selection_copy(SPDesktop *desktop); void sp_selection_paste(SPDesktop *desktop, bool in_place); void sp_selection_paste_style(SPDesktop *desktop); void sp_selection_paste_livepatheffect(SPDesktop *desktop); @@ -131,19 +147,14 @@ GSList *sp_degroup_list (GSList *items); /* selection cycling */ typedef enum { - SP_CYCLE_SIMPLE, - SP_CYCLE_VISIBLE, /* cycle only visible items */ - SP_CYCLE_FOCUS /* readjust visible area to view selected item */ + SP_CYCLE_SIMPLE, + SP_CYCLE_VISIBLE, // cycle only visible items + SP_CYCLE_FOCUS // readjust visible area to view selected item } SPCycleType; -/* fixme: This should be moved into preference repr */ -#ifndef __SP_SELECTION_CHEMISTRY_C__ -extern SPCycleType SP_CYCLING; -#else -SPCycleType SP_CYCLING = SP_CYCLE_FOCUS; -#endif - -#endif +// TOOD fixme: This should be moved into preference repr +extern SPCycleType SP_CYCLING; +#endif // SEEN_SELECTION_CHEMISTRY_H