libglom-1.30
1.30.0
|
Namespaces | |
Conversions | |
DbUtils | |
Utils | |
Classes | |
class | AppState |
There is one instance per document. More... | |
class | ChoiceValue |
A value of a custom choice, for a field or a layout item. More... | |
class | CustomTitle |
class | DatabaseTitle |
This is a separate class, instead of just deriving Document from TranslatableItem, to avoid the need to use Document via std::shared_ptr. More... | |
class | Document |
class | Field |
class | FieldTypes |
class | Formatting |
This specifies how to display data for fields or static text items. More... | |
class | FoundSet |
A grouping of information about a view of a table, including what records are viewed (the where clause), how the are sorted (the sort clause). More... | |
class | GroupInfo |
class | HasTitleSingular |
HasTitleSingular instances may have a (translated) singular form of their title. More... | |
class | LayoutGroup |
class | LayoutItem |
class | LayoutItem_Button |
class | LayoutItem_CalendarPortal |
class | LayoutItem_Field |
A LayoutItem that shows the data from a table field. More... | |
class | LayoutItem_FieldSummary |
class | LayoutItem_Footer |
class | LayoutItem_GroupBy |
The child items are fields to be shown for each record in the group. More... | |
class | LayoutItem_Header |
class | LayoutItem_Image |
class | LayoutItem_Line |
This is only used on print layouts. More... | |
class | LayoutItem_Notebook |
The child items are LayoutGroups, each of which will be shown on its own tab. More... | |
class | LayoutItem_Placeholder |
class | LayoutItem_Portal |
get_title() returns either the title of the Field or the CustomTitle. More... | |
class | LayoutItem_Summary |
class | LayoutItem_Text |
A layout item for static text, and an optional title. More... | |
class | LayoutItem_VerticalGroup |
The child items are arranged vertically in a row on a report. More... | |
class | LayoutItem_WithFormatting |
A base class for all layout items that may have formatting options. More... | |
class | NumericFormat |
class | PrintLayout |
class | Privileges |
class | Relationship |
class | Report |
class | ReportBuilder |
class | StaticText |
This reuses the title concept of the TranslatableItem base class to give us translatable text. More... | |
class | SystemPrefs |
class | TableInfo |
class | TranslatableItem |
TranslatableItem have a map of translation strings - one string for each locale. More... | |
class | UsesRelationship |
Typedefs | |
typedef std::pair< std::shared_ptr< const LayoutItem_Field >, bool > | type_pair_sort_field |
field, ascending More... | |
typedef std::vector< type_pair_sort_field > | type_sort_clause |
typedef GlomBakery::View< Document > | View_Glom |
The base View for the document. More... | |
typedef GlomBakery::View_Composite< Document > | View_Composite_Glom |
Functions | |
void | libglom_init () |
This must be used by applications other than Glom, which are unlikely to otherwise initialize the libraries used by libglom. More... | |
void | libglom_deinit () |
template<class T_obj > | |
std::shared_ptr< T_obj > | glom_sharedptr_clone (const std::shared_ptr< T_obj >& src) |
template<class T_obj > | |
std::shared_ptr< T_obj > | glom_sharedptr_clone (const std::shared_ptr< const T_obj >& src) |
bool | write_pot_file (Document* document, const Glib::ustring& pot_file_uri) |
Create a pot template file that can be used by translators to create a new .po file. More... | |
bool | write_translations_to_po_file (Document* document, const Glib::ustring& po_file_uri, const Glib::ustring& translation_locale, const Glib::ustring& locale_name=Glib::ustring()) |
Create a po file containing the translations from the Glom document. More... | |
bool | import_translations_from_po_file (Document* document, const Glib::ustring& po_file_uri, const Glib::ustring& translation_locale) |
Parse a po file, storing its translations in the Glom document. More... | |
Glib::ustring | get_po_context_for_item (const std::shared_ptr< const TranslatableItem >& item, const Glib::ustring& hint) |
Get a hint about what the text is for. More... | |
template<class T_object > | |
Glib::ustring | glom_get_sharedptr_name (const std::shared_ptr< T_object >& item) |
template<typename T_Container > | |
auto | find_if_layout_item_field_is_same_field (T_Container& container, const std::shared_ptr< const LayoutItem_Field >& layout_item) -> decltype(container.begin()) |
Find the element in the container which is a LayoutItem_Field which refers to the same field, without comparing irrelevant stuff such as formatting. More... | |
. | |
Find the element in the container whose name is the same as This assumes that the element is a shared_ptr<>. | |
template<typename T_Container > | |
auto | find_if_same_name (T_Container& container, const Glib::ustring& name) -> decltype(container.begin()) |
Variables | |
const char | GLOM_IMAGE_FORMAT [] = "png" |
const char | GLOM_IMAGE_FORMAT_MIME_TYPE [] = "image/png" |
typedef std::pair< std::shared_ptr<const LayoutItem_Field>, bool> Glom::type_pair_sort_field |
field, ascending
typedef GlomBakery::View<Document> Glom::View_Glom |
The base View for the document.
auto Glom::find_if_layout_item_field_is_same_field | ( | T_Container & | container, |
const std::shared_ptr< const LayoutItem_Field >& | layout_item | ||
) | -> decltype(container.begin()) |
Find the element in the container which is a LayoutItem_Field which refers to the same field, without comparing irrelevant stuff such as formatting.
This assumes that the element is a shared_ptr<>.
auto Glom::find_if_same_name | ( | T_Container & | container, |
const Glib::ustring & | name | ||
) | -> decltype(container.begin()) |
Glib::ustring Glom::get_po_context_for_item | ( | const std::shared_ptr< const TranslatableItem >& | item, |
const Glib::ustring & | hint | ||
) |
Get a hint about what the text is for.
This is also necessary to uniquely identify the item, because not all text with the same contents should be translated the same way in all languages - the context might change the translation.
Glib::ustring Glom::glom_get_sharedptr_name | ( | const std::shared_ptr< T_object > & | item | ) |
std::shared_ptr<T_obj> Glom::glom_sharedptr_clone | ( | const std::shared_ptr< T_obj > & | src | ) |
std::shared_ptr<T_obj> Glom::glom_sharedptr_clone | ( | const std::shared_ptr< const T_obj > & | src | ) |
bool Glom::import_translations_from_po_file | ( | Document* | document, |
const Glib::ustring & | po_file_uri, | ||
const Glib::ustring & | translation_locale | ||
) |
Parse a po file, storing its translations in the Glom document.
document | The document into which the translations should be stored. |
po_file | The filepath at which to find a .po file. |
translation_locale | For instance, de_DE. |
void Glom::libglom_deinit | ( | ) |
void Glom::libglom_init | ( | ) |
bool Glom::write_pot_file | ( | Document* | document, |
const Glib::ustring & | pot_file_uri | ||
) |
Create a pot template file that can be used by translators to create a new .po file.
document | The document whose translations should be written to a .po file. |
pot_file | The filepath at which to create a .po file. |
bool Glom::write_translations_to_po_file | ( | Document* | document, |
const Glib::ustring & | po_file_uri, | ||
const Glib::ustring & | translation_locale, | ||
const Glib::ustring & | locale_name = Glib::ustring() |
||
) |
Create a po file containing the translations from the Glom document.
document | The document whose translations should be written to a .po file. |
po_file | The filepath at which to create a .po file. |
translation_locale | For instance, de_DE. |
locale_name | For instance, Deutsch, to identify the translation team. |
const char Glom::GLOM_IMAGE_FORMAT[] = "png" |
const char Glom::GLOM_IMAGE_FORMAT_MIME_TYPE[] = "image/png" |