source: libi4uc/i4ucdocumentpageviewiface.vala @ cb212b45f847c9f00759669c1ffe40b1e0c84569

Revision cb212b45f847c9f00759669c1ffe40b1e0c84569, 3.3 KB checked in by Matias De la Puente <mfpuente.ar@…>, 3 years ago (diff)

Documents: Add go_to_line method and grab focus when openning a document

  • Property mode set to 100644
Line 
1/* i4ucdocumentpageviewiface.vala
2 *
3 * Copyright (C) 2010  Matias De la Puente
4 *
5 * This program is free software: you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License as published by
7 * the Free Software Foundation, either version 3 of the License, or
8 * (at your option) any later version.
9 *
10 * This program is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13 * GNU General Public License for more details.
14 *
15 * You should have received a copy of the GNU General Public License
16 * along with this program.  If not, see <http://www.gnu.org/licenses/>.
17 *
18 * Author:
19 *      Matias De la Puente <mfpuente.ar@gmail.com>
20 */
21
22public interface I4uc.DocumentPageViewIface : GLib.Object, PageIface
23{
24        //Settings properties
25        public abstract string font_name { set; get; }
26        public abstract int tab_width { set; get; }
27        public abstract bool auto_indent { set; get; }
28        public abstract bool highlight_current_line { set; get; }
29        public abstract bool insert_spaces_instead_of_tabs { set; get; }
30        public abstract bool show_line_numbers { set; get; }
31        public abstract bool highlight_matching_brackets { set; get; }
32        public abstract bool wrap_mode { set; get; }
33        public abstract bool can_undo { get; }
34        public abstract bool can_redo { get; }
35        public abstract bool has_selection { get; }
36        public abstract string content { set; get; }
37        public abstract string language_id { set; get; }
38       
39        //Error bar properties
40        public abstract bool error_bar_visible { set; get; }
41        public abstract string error_bar_primary_text { set; get; }
42        public abstract string error_bar_secondary_text { set; get; }
43       
44        //Reload bar properties
45        public abstract bool reload_bar_visible { set; get; }
46        public abstract string reload_bar_primary_text { set; get; }
47        public abstract string reload_bar_secondary_text { set; get; }
48       
49        //Save bar properties
50        public abstract bool save_bar_visible { set; get; }
51        public abstract string save_bar_primary_text { set; get; }
52        public abstract string save_bar_secondary_text { set; get; }
53       
54        //Search and Replace properties
55        public abstract SearchBarViewIface search_bar_view { get; }
56        public abstract bool search_bar_view_visible { set; get; }
57       
58        //Content properties
59        public abstract bool content_visible { set; get; }
60        public abstract bool content_modified { set; get; }
61       
62        //Signals
63        public signal void selected ();
64        public signal void content_changed ();
65        public signal void selection_changed ();
66        public signal void focused_in ();
67        public signal void error_bar_ok_clicked ();
68        public signal void reload_bar_reload_clicked ();
69        public signal void reload_bar_cancel_clicked ();
70        public signal void save_bar_save_clicked ();
71        public signal void save_bar_cancel_clicked ();
72       
73        //Methods
74        public abstract void undo ();
75        public abstract void redo ();
76        public abstract void cut ();
77        public abstract void copy ();
78        public abstract void paste ();
79        public abstract void guess_language_id (string content_type);
80        public abstract int show_save_dialog (string name, ref string folder_uri, out string document_uri);
81        public abstract void show_print_dialog () throws GLib.Error;
82        public abstract int show_close_message ();
83        public abstract void grab_focus ();
84        public abstract void add_recent (string uri);
85        public abstract void go_to_line (int line);
86}
Note: See TracBrowser for help on using the repository browser.