Changeset 423f33dfc2ef7be69a94187fb0e80cbfeedc5ffd
- Timestamp:
- 30/10/10 16:53:54 (3 years ago)
- Children:
- ce22ee226eaa1e1892f415d8a8ca6c531aac8b22
- Parents:
- eff5657181e6e907db0f2b8157586277f4258033
- git-committer:
- Matias De la Puente <mfpuente.ar@…> (30/10/10 16:53:54)
- Files:
-
- 4 edited
-
gtkfrontend/searchbarview.vala (modified) (2 diffs)
-
libi4uccore/documentpagelogic.vala (modified) (2 diffs)
-
libi4uccore/searchbarlogic.vala (modified) (1 diff)
-
libi4uccore/searchbarview.vala (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
gtkfrontend/searchbarview.vala
rdfe49c7 r423f33d 34 34 private Menu _options_menu = new Menu (); 35 35 36 public string search_text 37 { 38 set { _search_text_entry.text = value; } 39 get { return _search_text_entry.text; } 40 } 41 42 public bool search_backward_sensitive 43 { 44 set { _search_backward_button.sensitive = value; } 45 get { return _search_backward_button.sensitive; } 46 } 47 48 public bool search_forward_sensitive 49 { 50 set { _search_forward_button.sensitive = value; } 51 get { return _search_forward_button.sensitive; } 52 } 53 54 public bool highlight_all 55 { 56 set { _highlight_all_check.active = value; } 57 get { return _highlight_all_check.active; } 58 } 59 60 public bool match_case 61 { 62 set { _match_case_check.active = value; } 63 get { return _match_case_check.active; } 64 } 65 66 public string replace_text 67 { 68 set { _replace_text_entry.text = value; } 69 get { return _replace_text_entry.text; } 70 } 71 72 public bool replace_sensitive 73 { 74 set { _replace_button.sensitive = value; } 75 get { return _replace_button.sensitive; } 76 } 77 78 public bool replace_all_sensitive 79 { 80 set { _replace_all_button.sensitive = value; } 81 get { return _replace_all_button.sensitive; } 82 } 36 public string search_text { set; get; } 37 public bool search_backward_sensitive { set; get; } 38 public bool search_forward_sensitive { set; get; } 39 public bool highlight_all { set; get; } 40 public bool match_case { set; get; } 41 public string replace_text { set; get; } 42 public bool replace_sensitive { set; get; } 43 public bool replace_all_sensitive { set; get; } 83 44 84 45 public SearchBarView (SourceView source_view) … … 145 106 _options_menu.show_all (); 146 107 108 //Bind properties 109 bind_property ("search-text", _search_text_entry, "text", BindingFlags.BIDIRECTIONAL); 110 bind_property ("search-backward-sensitive", _search_backward_button, "sensitive", BindingFlags.BIDIRECTIONAL); 111 bind_property ("search-forward-sensitive", _search_forward_button, "sensitive", BindingFlags.BIDIRECTIONAL); 112 bind_property ("highlight-all", _highlight_all_check, "active", BindingFlags.BIDIRECTIONAL); 113 bind_property ("match-case", _match_case_check, "active", BindingFlags.BIDIRECTIONAL); 114 bind_property ("replace-text", _replace_text_entry, "text", BindingFlags.BIDIRECTIONAL); 115 bind_property ("replace-sensitive", _replace_button, "sensitive", BindingFlags.BIDIRECTIONAL); 116 bind_property ("replace-all-sensitive", _replace_all_button, "sensitive", BindingFlags.BIDIRECTIONAL); 117 147 118 //connect signals 148 _search_text_entry.changed.connect (() => this.search_text_changed ());149 119 _search_text_entry.icon_press.connect (on_search_text_entry_icon_press); 150 120 _search_backward_button.clicked.connect (() => this.search_backward_clicked ()); 151 121 _search_forward_button.clicked.connect (() => this.search_forward_clicked ()); 152 _highlight_all_check.toggled.connect (() => this.highlight_all_changed ());153 _replace_text_entry.changed.connect (() => this.replace_text_changed ());154 122 _replace_text_entry.icon_press.connect (on_replace_text_entry_icon_press); 155 123 _replace_button.clicked.connect (() => this.replace_clicked ()); -
libi4uccore/documentpagelogic.vala
rdfe49c7 r423f33d 229 229 { 230 230 _view.search_bar_view_visible = true; 231 _view.search_bar_view. search_text_changed ();231 _view.search_bar_view.notify_property ("search-text"); 232 232 } 233 233 … … 283 283 { 284 284 if (_view.search_bar_view_visible) 285 _view.search_bar_view. search_text_changed ();285 _view.search_bar_view.notify_property ("search-text"); 286 286 } 287 287 -
libi4uccore/searchbarlogic.vala
rdfe49c7 r423f33d 35 35 36 36 //connect view signals 37 _view. search_text_changed.connect (on_search_text_changed);37 _view.notify["search-text"].connect (on_search_text_changed); 38 38 _view.search_backward_clicked.connect (() => _view.search (false)); 39 39 _view.search_forward_clicked.connect (() => _view.search (true)); 40 _view. highlight_all_changed.connect (on_highlight_all_changed);41 _view. replace_text_changed.connect (on_replace_text_changed);40 _view.notify["highlight-all"].connect (on_highlight_all_changed); 41 _view.notify["replace-text"].connect (on_replace_text_changed); 42 42 _view.replace_clicked.connect (() => _view.replace ()); 43 43 _view.replace_all_clicked.connect (() => _view.replace_all ()); -
libi4uccore/searchbarview.vala
rdfe49c7 r423f33d 31 31 public abstract bool replace_all_sensitive { set; get; } 32 32 33 public signal void search_text_changed ();34 33 public signal void search_backward_clicked (); 35 34 public signal void search_forward_clicked (); 36 public signal void highlight_all_changed ();37 public signal void replace_text_changed ();38 35 public signal void replace_clicked (); 39 36 public signal void replace_all_clicked ();
Note: See TracChangeset
for help on using the changeset viewer.

