~ubuntu-branches/ubuntu/utopic/mysql-workbench/utopic

« back to all changes in this revision

Viewing changes to plugins/db.search/DbSearchFilterPanel.cpp

  • Committer: Package Import Robot
  • Author(s): Dmitry Smirnov
  • Date: 2014-05-31 12:03:58 UTC
  • mfrom: (1.2.4)
  • Revision ID: package-import@ubuntu.com-20140531120358-cjik5ofkmj0fxsn8
Tags: 6.1.6+dfsg-1
* New upstream release [May 2014].
* Dropped "prtcl.patch".
* "debian/clean": better clean-up.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
/*
2
 
 * Copyright (c) 2012, 2013 Oracle and/or its affiliates. All rights reserved.
 
2
 * Copyright (c) 2012, 2014 Oracle and/or its affiliates. All rights reserved.
3
3
 *
4
4
 * This program is free software; you can redistribute it and/or
5
5
 * modify it under the terms of the GNU General Public License as
36
36
 
37
37
  _search_box.set_spacing(8);
38
38
 
39
 
  _search_text_label.set_text("Search for Text:");
 
39
 
 
40
 
 
41
  _search_text_label.set_text("Search for table fields that");
40
42
  _search_box.add(&_search_text_label, false, true);
41
 
  _search_box.add(&_search_text, true, true);
42
 
  _search_button.set_text("Start Search");
43
 
  _search_button.set_size(120, -1);
44
 
  _search_box.add(&_search_button, false, true);
45
 
  add(&_search_box, false, true);
46
43
 
 
44
  _filter_selector.add_item("CONTAINS");
47
45
  _filter_selector.add_item("Search using =");
48
46
  _filter_selector.add_item("Search using LIKE");
49
47
  _filter_selector.add_item("Search using REGEXP");
53
51
#endif
54
52
 
55
53
  _filter_selector.set_selected(0);
56
 
  _limits_box.add(&_filter_selector, false, true);
 
54
  _search_box.add(&_filter_selector, false, true);
 
55
 
 
56
 
 
57
  _search_box.add(&_search_text, true, true);
 
58
  add(&_search_box, false, true);
 
59
 
 
60
 
57
61
 
58
62
  _limits_box.set_spacing(4);
59
63
  _limit_table_hint.set_text("Max. matches per table");
71
75
  _limit_total.signal_changed()->connect(boost::bind(update_numeric, boost::ref(_limit_total)));
72
76
  _limit_total.set_value("100000");
73
77
 
74
 
  add(&_limits_box, false, true);
 
78
 
 
79
 
75
80
  _search_all_type_check.set_text("Search columns of all types");
76
81
  _search_all_type_check.set_tooltip("If checked, non-text type columns will be casted to CHAR to match. Otherwise, only text type (CHAR, VARCHAR, TEXT) will be searched.");
77
 
  add(&_search_all_type_check, false, true);
 
82
  _limits_box.add(&_search_all_type_check, false, true);
 
83
 
 
84
  _search_button.set_text("Start Search");
 
85
  _search_button.set_size(120, -1);
 
86
  _limits_box.add(&_search_button, false, true);
 
87
  add(&_limits_box, false, true);
 
88
//  add(&_search_all_type_check, false, true);
78
89
//  _exclude_check.set_text("Invert table selection (search all tables except selected)");
79
90
//  add(&_exclude_check, false, true);
80
91
 
85
96
  _filter_tree.add_node()->set_string(0, "Schema.Table.Column");
86
97
  _hint_label.set_text("Place list of patterns in the form of schema.table.[column].\nYou can use % or _ as wildcarts.");
87
98
//  _table.add(&_filter_tree, 1, 2, 3, 4, mforms::FillAndExpand);
 
99
 
 
100
 
88
101
}
89
102
 
90
103