GnuCash c935c2f+
Loading...
Searching...
No Matches
gnc-plugin-page-register-sort.hpp
1/**********************************************************************
2 * gnc-plugin-page-register-sort.hpp -- register page sort *
3 * *
4 * Copyright (C) 2026 Bob Fewell *
5 * *
6 * This program is free software; you can redistribute it and/or *
7 * modify it under the terms of the GNU General Public License as *
8 * published by the Free Software Foundation; either version 2 of *
9 * the License, or (at your option) any later version. *
10 * *
11 * This program is distributed in the hope that it will be useful, *
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of *
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
14 * GNU General Public License for more details. *
15 * *
16 * You should have received a copy of the GNU General Public License *
17 * along with this program; if not, contact: *
18 * *
19 * Free Software Foundation Voice: +1-617-542-5942 *
20 * 51 Franklin Street, Fifth Floor Fax: +1-617-542-2652 *
21 * Boston, MA 02110-1301, USA gnu@gnu.org *
22 **********************************************************************/
23
33#ifndef __GNC_PLUGIN_PAGE_REGISTER_SORT_HPP
34#define __GNC_PLUGIN_PAGE_REGISTER_SORT_HPP
35
36#include <gtk/gtk.h>
37#include "gnc-split-reg.h"
38#include "gnc-plugin-page.h"
39#include <stdbool.h>
40
42{
43 GtkWidget* dialog;
44 SortType sort_type;
45 bool reverse_order;
46 bool save_order;
47};
48
50
51void gnc_ppr_sort_dialog (GncPluginPage *plugin_page, SplitRegister* reg,
52 struct SortData *sd, bool show_save_button);
53
54#endif /* __GNC_PLUGIN_PAGE_REGISTER_SORT_HPP */
Functions for adding plugins to a GnuCash window.
void gnc_ppr_sort_dialog(GncPluginPage *plugin_page, SplitRegister *reg, SortData *sd, bool show_save_button)
This function is called for the sort dialog.
void gnc_ppr_sort_update_register(GncPluginPage *plugin_page)
This function is called to update the register.
The instance data structure for a content plugin.