X-Git-Url: https://git.wpitchoune.net/gitweb/?a=blobdiff_plain;f=src%2Fsettings.h;fp=src%2Fsettings.h;h=d15fd4da5e45fa552f310e369e1a82dc73d00612;hb=2cf9ca6ed6eca3a02209f58ab86d663d7cfbf710;hp=0000000000000000000000000000000000000000;hpb=464cae462442ca890698a0d54e7fb927becd4347;p=ptask.git diff --git a/src/settings.h b/src/settings.h new file mode 100644 index 0000000..d15fd4d --- /dev/null +++ b/src/settings.h @@ -0,0 +1,42 @@ +/* + * Copyright (C) 2012-2013 jeanfi@gmail.com + * + * This program is free software; you can redistribute it and/or + * modify it under the terms of the GNU General Public License as + * published by the Free Software Foundation; either version 2 of the + * License, or (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, but + * WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA + * 02110-1301 USA + */ + +#ifndef _PTASK_SETTINGS_H_ +#define _PTASK_SETTINGS_H_ + +#include + +extern const char *SETTINGS_KEY_WINDOW_WIDTH; +extern const char *SETTINGS_KEY_WINDOW_HEIGHT; +extern const char *SETTINGS_KEY_WINDOW_X; +extern const char *SETTINGS_KEY_WINDOW_Y; +extern const char *SETTINGS_KEY_SPLITER_VERTICAL_POS; +extern const char *SETTINGS_KEY_SPLITER_HORIZONTAL_POS; +extern const char *SETTINGS_KEY_TASKS_SORT_COL; +extern const char *SETTINGS_KEY_TASKS_SORT_ORDER; +extern const char * const SETTINGS_VISIBLE_COL_KEYS[]; + +void settings_init(); + +gint settings_get_int(const gchar *key); +void settings_set_int(const gchar *key, gint value); +gboolean settings_get_boolean(const gchar *key); +void settings_set_boolean(const gchar *key, gboolean value); + +#endif