diff options
| author | Jon A. Cruz <jon@joncruz.org> | 2010-01-15 06:45:34 +0000 |
|---|---|---|
| committer | Jon A. Cruz <jon@joncruz.org> | 2010-01-15 06:45:34 +0000 |
| commit | 23eacbbc876cdef12857ca48725cee350ed4696f (patch) | |
| tree | a89d3f2be8a4ce471277fb059c78e584fcb39e0f /src/selection-chemistry.h | |
| parent | Fixed object leak. (diff) | |
| download | inkscape-23eacbbc876cdef12857ca48725cee350ed4696f.tar.gz inkscape-23eacbbc876cdef12857ca48725cee350ed4696f.zip | |
Restore encapsulation of selection implementation.
(bzr r8983)
Diffstat (limited to 'src/selection-chemistry.h')
| -rw-r--r-- | src/selection-chemistry.h | 38 |
1 files changed, 24 insertions, 14 deletions
diff --git a/src/selection-chemistry.h b/src/selection-chemistry.h index 7cc5f8d9f..60d64ced9 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 <lauris@kaplinski.com> * Frank Felfe <innerspace@iname.com> * bulia byak <buliabyak@users.sf.net> + * Jon A. Cruz <jon@joncruz.org> * - * 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); @@ -131,19 +146,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 |
