1 /**
2 * \brief Find dialog
3 *
4 * Authors:
5 * Bryce W. Harrington <bryce@bryceharrington.org>
6 * Johan Engelen <goejendaagh@zonnet.nl>
7 *
8 * Copyright (C) 2004-2006 Authors
9 *
10 * Released under GNU GPL. Read the file 'COPYING' for more information.
11 */
13 #ifdef HAVE_CONFIG_H
14 # include <config.h>
15 #endif
17 #include "find.h"
18 #include "verbs.h"
20 namespace Inkscape {
21 namespace UI {
22 namespace Dialog {
24 Find::Find()
25 : Dialog ("dialogs.find", SP_VERB_DIALOG_FIND),
26 _entry_text(_("_Text: "), _("Find objects by their text content (exact or partial match)")),
27 _entry_id(_("_ID: "), _("Find objects by the value of the id attribute (exact or partial match)")),
28 _entry_style(_("_Style: "), _("Find objects by the value of the style attribute (exact or partial match)")),
29 _entry_attribute(_("_Attribute: "), _("Find objects by the name of an attribute (exact or partial match)")),
30 _check_search_selection(_("Search in s_election"), _("Limit search to the current selection")),
31 _check_search_layer(_("Search in current _layer"), _("Limit search to the current layer")),
32 _check_include_hidden(_("Include _hidden"), _("Include hidden objects in search")),
33 _check_include_locked(_("Include l_ocked"), _("Include locked objects in search")),
35 _check_all(_("All types"), _("Search in all object types")),
36 _check_all_shapes(_("All shapes"), _("Search all shapes")),
37 _check_rects(_("Rectangles"), _("Search rectangles")),
38 _check_ellipses(_("Ellipses"), _("Search ellipses, arcs, circles")),
39 _check_stars(_("Stars"), _("Search stars and polygons")),
40 _check_spirals(_("Spirals"), _("Search spirals")),
41 _check_paths(_("Paths"), _("Search paths, lines, polylines")),
42 _check_texts(_("Texts"), _("Search text objects")),
43 _check_groups(_("Groups"), _("Search groups")),
44 _check_clones(_("Clones"), _("Search clones")),
45 _check_images(_("Images"), _("Search images")),
46 _check_offsets(_("Offsets"), _("Search offset objects")),
48 _button_clear(_("_Clear"), _("Clear values")),
49 _button_find(_("_Find"), _("Select objects matching all of the fields you filled in"))
50 {
51 // Top level vbox
52 Gtk::VBox *vbox = get_vbox();
53 vbox->set_spacing(4);
55 vbox->pack_start(_entry_text, true, true);
56 vbox->pack_start(_entry_id, true, true);
57 vbox->pack_start(_entry_style, true, true);
58 vbox->pack_start(_entry_attribute, true, true);
60 vbox->pack_start(_check_all, true, true);
61 vbox->pack_start(_check_all_shapes, true, true);
62 vbox->pack_start(_check_rects, true, true);
63 vbox->pack_start(_check_ellipses, true, true);
64 vbox->pack_start(_check_stars, true, true);
65 vbox->pack_start(_check_spirals, true, true);
66 vbox->pack_start(_check_paths, true, true);
67 vbox->pack_start(_check_texts, true, true);
68 vbox->pack_start(_check_groups, true, true);
69 vbox->pack_start(_check_clones, true, true);
70 vbox->pack_start(_check_images, true, true);
71 vbox->pack_start(_check_offsets, true, true);
73 vbox->pack_start(_check_search_selection, true, true);
74 vbox->pack_start(_check_search_layer, true, true);
75 vbox->pack_start(_check_include_hidden, true, true);
76 vbox->pack_start(_check_include_locked, true, true);
78 vbox->pack_start(_button_clear, true, true);
79 vbox->pack_start(_button_find, true, true);
82 show_all_children();
83 }
85 Find::~Find()
86 {
87 }
89 } // namespace Dialog
90 } // namespace UI
91 } // namespace Inkscape