X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=src%2Fui%2Fdialog%2Ffind.h;h=9594669fa59d5e7763901822a1a3c300a650d660;hb=04d2e120ddfbd611206889d33696c7a1cf103e14;hp=08a14570755ea84f83436a88441d99813f708008;hpb=ae2ea38baf0231827056de70c5881d15da0c08b4;p=inkscape.git diff --git a/src/ui/dialog/find.h b/src/ui/dialog/find.h index 08a145707..9594669fa 100644 --- a/src/ui/dialog/find.h +++ b/src/ui/dialog/find.h @@ -12,13 +12,44 @@ #ifndef INKSCAPE_UI_DIALOG_FIND_H #define INKSCAPE_UI_DIALOG_FIND_H -#include #include #include "dialog.h" -#include "ui/widget/notebook-page.h" #include "ui/widget/button.h" -#include "ui/widget/entry.h" +#include "ui/widget/entry.h" +#include + +#include "message-stack.h" +#include "helper/window.h" +#include "macros.h" +#include "inkscape.h" +#include "document.h" +#include "desktop.h" +#include "selection.h" +#include "desktop-handles.h" + +#include "dialogs/dialog-events.h" +#include "prefs-utils.h" +#include "verbs.h" +#include "interface.h" +#include "sp-text.h" +#include "sp-flowtext.h" +#include "text-editing.h" +#include "sp-tspan.h" +#include "selection-chemistry.h" +#include "sp-defs.h" +#include "sp-rect.h" +#include "sp-ellipse.h" +#include "sp-star.h" +#include "sp-spiral.h" +#include "sp-path.h" +#include "sp-line.h" +#include "sp-polyline.h" +#include "sp-item-group.h" +#include "sp-use.h" +#include "sp-image.h" +#include "sp-offset.h" +#include using namespace Inkscape::UI::Widget; @@ -57,8 +88,28 @@ protected: CheckButton _check_groups; CheckButton _check_clones; CheckButton _check_images; - CheckButton _check_offsets; + CheckButton _check_offsets; + + // Button-click handlers + void onClear(); + void onFind(); + void onToggleAlltypes(); + void onToggleShapes(); + + + // onFind helper functions + bool item_id_match (SPItem *item, const gchar *id, bool exact); + bool item_text_match (SPItem *item, const gchar *text, bool exact); + bool item_style_match (SPItem *item, const gchar *text, bool exact); + bool item_attr_match (SPItem *item, const gchar *name, bool exact); + GSList * filter_fields (GSList *l, bool exact); + bool item_type_match (SPItem *item); + GSList * filter_types (GSList *l); + GSList * filter_list (GSList *l, bool exact); + GSList * all_items (SPObject *r, GSList *l, bool hidden, bool locked); + GSList * all_selection_items (Inkscape::Selection *s, GSList *l, SPObject *ancestor, bool hidden, bool locked); + void squeeze_window(); private: Find(Find const &d);