1 /*
2  *      lo_prefs.h - Line operations, remove duplicate lines, empty lines,
3  *                   lines with only whitespace, sort lines.
4  *
5  *      Copyright 2015 Sylvan Mostert <smostert.dev@gmail.com>
6  *
7  *      This program is free software; you can redistribute it and/or modify
8  *      it under the terms of the GNU General Public License as published by
9  *      the Free Software Foundation; either version 2 of the License, or
10  *      (at your option) any later version.
11  *
12  *      This program is distributed in the hope that it will be useful,
13  *      but WITHOUT ANY WARRANTY; without even the implied warranty of
14  *      MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
15  *      GNU General Public License for more details.
16  *
17  *      You should have received a copy of the GNU General Public License along
18  *      with this program; if not, write to the Free Software Foundation, Inc.,
19  *      51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
20 */
21 
22 #ifndef LO_PREFS_H
23 #define LO_PREFS_H
24 
25 #include <geanyplugin.h>
26 #include "lo_prefs.h"
27 
28 
29 typedef struct
30 {
31 	/* general settings */
32 	gchar *config_file;
33 	gboolean use_collation_compare;
34 } LineOpsInfo;
35 
36 
37 extern LineOpsInfo *lo_info;
38 
39 
40 /* handle button presses in the preferences dialog box */
41 void
42 lo_configure_response_cb(GtkDialog *dialog, gint response, gpointer user_data);
43 
44 
45 /* Configure the preferences GUI and callbacks */
46 GtkWidget *
47 lo_configure(G_GNUC_UNUSED GeanyPlugin *plugin, GtkDialog *dialog, G_GNUC_UNUSED gpointer pdata);
48 
49 
50 /* Initialize preferences */
51 void
52 lo_init_prefs(GeanyPlugin *plugin);
53 
54 
55 /* Free config */
56 void
57 lo_free_info();
58 
59 #endif