X-Git-Url: https://git.dogcows.com/gitweb?p=chaz%2Fhomebank;a=blobdiff_plain;f=src%2Fui-tag.h;fp=src%2Fui-tag.h;h=01865f8a067a039ced295774df75e6bf839ee398;hp=0000000000000000000000000000000000000000;hb=236cb5e47660876f46488ea8f76ecd5bebfa1fac;hpb=8892e90b335f94c296462a91534334b674226cd9 diff --git a/src/ui-tag.h b/src/ui-tag.h new file mode 100644 index 0000000..01865f8 --- /dev/null +++ b/src/ui-tag.h @@ -0,0 +1,71 @@ +/* HomeBank -- Free, easy, personal accounting for everyone. + * Copyright (C) 1995-2019 Maxime DOYEN + * + * This file is part of HomeBank. + * + * HomeBank 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. + * + * HomeBank 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, see . + */ + +#ifndef __HB_TAG_GTK_H__ +#define __HB_TAG_GTK_H__ + + +enum +{ + LST_DEFTAG_TOGGLE, + LST_DEFTAG_DATAS, + NUM_LST_DEFTAG +}; + + +struct ui_tag_manage_dialog_data +{ + GtkWidget *window; + + GtkWidget *ST_name; + GtkWidget *LV_tag; + + GtkWidget *BT_add; + GtkWidget *BT_edit; + GtkWidget *BT_delete; + + gint change; +}; + + +struct ui_tag_dialog_data +{ + GtkWidget *dialog; + +}; + +/* = = = = = = = = = = */ + + +void ui_tag_combobox_populate(GtkComboBoxText *combobox); +GtkWidget *ui_tag_combobox_new(GtkWidget *label); + + +/* = = = = = = = = = = */ + +void ui_tag_listview_add(GtkTreeView *treeview, Tag *item); +guint32 ui_tag_listview_get_selected_key(GtkTreeView *treeview); +void ui_tag_listview_remove_selected(GtkTreeView *treeview); +void ui_tag_listview_populate(GtkWidget *view, gint insert_type); +GtkWidget *ui_tag_listview_new(gboolean withtoggle); + +GtkWidget *ui_tag_manage_dialog (void); + + +#endif \ No newline at end of file