Glom::HasTitleSingular Class Reference

HasTitleSingular instances may have a (translated) singular form of their title. More...

Inherited by Glom::Relationship, and Glom::TableInfo.

Collaboration diagram for Glom::HasTitleSingular:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 HasTitleSingular ()
 HasTitleSingular (const HasTitleSingular& src)
virtual ~HasTitleSingular ()
HasTitleSingularoperator= (const HasTitleSingular& src)
bool operator== (const HasTitleSingular& src) const
bool operator!= (const HasTitleSingular& src) const
Glib::ustring get_title_singular () const
 Get the (translation of the) singular form of the title, in the current locale, if specified.
Glib::ustring get_title_singular_with_fallback () const
 Get the (translation of the) singular form of the title, in the current locale, if specified, falling back to the non-singular title, and then falling back to the table name.
void set_title_singular (const Glib::ustring& title)
 Set the singular title's translation for the current locale.

Public Attributes

sharedptr< TranslatableItemm_title_singular
 For instance, "Customer" if the table is titled "Customers".

Detailed Description

HasTitleSingular instances may have a (translated) singular form of their title.

For instance, "Album" instead of "Albums". This is useful in some generated UI strings.


Constructor & Destructor Documentation

Glom::HasTitleSingular::HasTitleSingular (  ) 
Glom::HasTitleSingular::HasTitleSingular ( const HasTitleSingular src  ) 
Glom::HasTitleSingular::~HasTitleSingular (  )  [virtual]

Member Function Documentation

Glib::ustring Glom::HasTitleSingular::get_title_singular (  )  const

Get the (translation of the) singular form of the title, in the current locale, if specified.

Glib::ustring Glom::HasTitleSingular::get_title_singular_with_fallback (  )  const

Get the (translation of the) singular form of the title, in the current locale, if specified, falling back to the non-singular title, and then falling back to the table name.

bool Glom::HasTitleSingular::operator!= ( const HasTitleSingular src  )  const
HasTitleSingular& Glom::HasTitleSingular::operator= ( const HasTitleSingular src  ) 

Reimplemented in Glom::Relationship, and Glom::TableInfo.

bool Glom::HasTitleSingular::operator== ( const HasTitleSingular src  )  const

Reimplemented in Glom::Relationship.

void Glom::HasTitleSingular::set_title_singular ( const Glib::ustring &  title  ) 

Set the singular title's translation for the current locale.


Member Data Documentation

For instance, "Customer" if the table is titled "Customers".

This is useful in some UI strings.


The documentation for this class was generated from the following files:

Generated on Tue Aug 10 16:53:31 2010 for libglom-1.14 by  doxygen 1.6.1