Maeomm Reference Documentation: hildonsmm
Main Page   Namespaces   Book  

Hildon::DateEditor Class Reference
[Widgets]

Inheritance diagram for Hildon::DateEditor:

Gtk::Container Gtk::Widget Gtk::Object Atk::Implementor Glib::Object Glib::Interface Glib::ObjectBase Glib::ObjectBase sigc::trackable sigc::trackable List of all members.

Detailed Description

Hildon::DateEditor is a widget which allows the user to enter a date.

It has three entry fields (day, month, year) and an icon button, which allows the user to choose a date by opening a HildonCalendar::Popup dialog.

See also Hildon::CalendarPopup and Hildon::TimeEditor


Public Member Functions

 DateEditor ()
void get_date (guint& year, guint& month, guint& day) const
 
Parameters:
year Year.

guint get_day () const
 Gets the day shown in the editor.
guint get_month () const
 Gets the month shown in the editor.
guint get_year () const
 
Returns:
The current year shown in the editor.

const HildonDateEditor* gobj () const
 Provides access to the underlying C GtkObject.
HildonDateEditor* gobj ()
 Provides access to the underlying C GtkObject.
void set_date (guint year, guint month, guint day)
 Sets the date shown in the editor.
bool set_day (guint day)
 Sets the day shown in the editor.
bool set_month (guint month)
 Sets the month shown in the editor.
bool set_year (guint year)
 Sets the year shown in the editor.
Glib::SignalProxy1< bool,
DateTimeError
signal_date_error ()
 
Prototype:
bool date_error(DateTimeError type)

virtual ~DateEditor ()

Related Functions

(Note that these are not member functions.)

Hildon::DateEditorwrap (HildonDateEditor* object, bool take_copy=false)
 
Parameters:
object The C instance


Constructor & Destructor Documentation

virtual Hildon::DateEditor::~DateEditor (  )  [virtual]

Hildon::DateEditor::DateEditor (  ) 


Member Function Documentation

void Hildon::DateEditor::get_date ( guint &  year,
guint &  month,
guint &  day 
) const

Parameters:
year Year.

Parameters:
month Month.
day Day.
Returns:
The year, month, and day currently on the date editor.

guint Hildon::DateEditor::get_day (  )  const

Gets the day shown in the editor.

Returns:
The current day shown in the editor.

guint Hildon::DateEditor::get_month (  )  const

Gets the month shown in the editor.

Returns:
The current month shown in the editor.

guint Hildon::DateEditor::get_year (  )  const

Returns:
The current year shown in the editor.

const HildonDateEditor* Hildon::DateEditor::gobj (  )  const [inline]

Provides access to the underlying C GtkObject.

Reimplemented from Gtk::Container.

HildonDateEditor* Hildon::DateEditor::gobj (  )  [inline]

Provides access to the underlying C GtkObject.

Reimplemented from Gtk::Container.

void Hildon::DateEditor::set_date ( guint  year,
guint  month,
guint  day 
)

Sets the date shown in the editor.

Parameters:
year Year.
month Month.
day Day.

bool Hildon::DateEditor::set_day ( guint  day  ) 

Sets the day shown in the editor.

Parameters:
day Day.
Returns:
true if the day is valid.

bool Hildon::DateEditor::set_month ( guint  month  ) 

Sets the month shown in the editor.

Parameters:
month Month.
Returns:
true if the month is valid.

bool Hildon::DateEditor::set_year ( guint  year  ) 

Sets the year shown in the editor.

Parameters:
year Year.
Returns:
true if the year is valid.

Glib::SignalProxy1<bool,DateTimeError> Hildon::DateEditor::signal_date_error (  ) 

Prototype:
bool date_error(DateTimeError type)


Friends And Related Function Documentation

Hildon::DateEditor* wrap ( HildonDateEditor *  object,
bool  take_copy = false 
) [related]

Parameters:
object The C instance

Parameters:
take_copy False if the result should take ownership of the C instance. True if it should take a new copy or ref.
Returns:
A C++ instance that wraps this C instance.


The documentation for this class was generated from the following file:
Generated for hildonmm by Doxygen 1.5.1 © 1997-2001