gnucash/libgnucash/engine/qofbookslots.h
Robert Fewell 07f3f536cc Allow to select saved report on print invoice button
This change was inspired by mildred's #PR1247 and uses the new
GncReportCombo to allow selection of 'Saved Invoice reports' when the
invoice print button is used or when printing multiple invoices.

This change presents a dialog with the default for the report combo set
to the properties setting. This dialog has a timeout which is
adjustable under properties and will stop if a key is pressed or combo
popped so that a different report template can be selected and used.
There is also an 'OK' button that stops the time out and prints and a
'Cancel' button which cancels the print.
2023-02-02 14:05:53 +00:00

87 lines
3.2 KiB
C

/********************************************************************\
* qofbookslots.h -- Defines the names of slots used in the book. *
* 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, contact: *
* *
* Free Software Foundation Voice: +1-617-542-5942 *
* 51 Franklin Street, Fifth Floor Fax: +1-617-542-2652 *
* Boston, MA 02110-1301, USA gnu@gnu.org *
* *
\********************************************************************/
#ifndef SWIG /* swig doesn't see N_() as a string constant */
#include <glib/gi18n.h>
#else
#define N_(string) string
#endif
/** @name Book parameter names
* These define the names used for the slots used to store book level parameters.
* They are defined here so swig will find them since they need to be available to
* Scheme code too.
@{
*/
/*
* See also SET_ENUM() in src/engine/engine.i
*
* SOME_DEFINED_NAME gets mapped into SOME-DEFINED-NAME by SWIG
* http://www.swig.org/Doc1.3/Guile.html#Guile_nn10
*/
/*
* gnc:*kvp-option-path* is used to refer to the kvp frame
* in which book-level options are stored.
* It is tied from this C #define in
* src/app-utils/app-utils.scm
* and is extensively used in
* src/gnome-utils/gnome-utils.scm
* various reports
*/
#define KVP_OPTION_PATH "options"
/*
* Various option sections and options within those sections
* The untranslated string is used for the key in the KVP
* The translated string appears as the tab name and as the
* text associated with the option selector on the tab
*/
#define OPTION_SECTION_ACCOUNTS N_("Accounts")
#define OPTION_NAME_TRADING_ACCOUNTS N_("Use Trading Accounts")
#define OPTION_NAME_AUTO_READONLY_DAYS N_("Day Threshold for Read-Only Transactions (red line)")
#define OPTION_NAME_NUM_FIELD_SOURCE N_("Use Split Action Field for Number")
#define OPTION_SECTION_BUDGETING N_("Budgeting")
#define OPTION_NAME_DEFAULT_BUDGET N_("Default Budget")
#define OPTION_SECTION_BUSINESS N_("Business")
#define OPTION_NAME_DEFAULT_INVOICE_REPORT N_("Default Invoice Report")
#define OPTION_NAME_DEFAULT_INVOICE_REPORT_TIMEOUT N_("Default Invoice Report Timeout")
/** @} */
/* For the grep-happy:
* KVP-OPTION-PATH
* OPTION-SECTION-ACCOUNTS
* OPTION-NAME-TRADING-ACCOUNTS
* OPTION-NAME_NUM-FIELD-SOURCE
* OPTION-SECTION-BUDGETING
* OPTION-NAME-DEFAULT-BUDGET
*/