http://git.freesmartphone.org/?p=specs.git;a=blob_plain;f=html/index.html;hb=HEAD
* Features to add:
+ + calendar, just the GTK calendar widget with buttons to go back, forth and
+ current (fill in with opimd if it will make sense)
+ = fill in day info with data coming from the laptop, but just read only,
+ without edit features. Good to check what's on for the day, and notes can
+ be taken with pen and paper for now
+ + Allow full text edit of text notes for every day
+ + Activate on double click from date
- switch backlight keep mode when on power/recharging
- the button changes the default for the current power mode
- alarm
- remember unexpired alarms persistently (again, a table in sqlite?) so
that they can be reinstated if zavai is restarted
- show active alarms and allow to delete them
- - calendar, just the GTK calendar widget with buttons to go back, forth and
- current (fill in with opimd if it will make sense)
- - fill in day info with data coming from the laptop, but just read only,
- without edit features. Good to check what's on for the day, and notes can
- be taken with pen and paper for now
- GPX status icon (off, waiting for fix, recording)
- GPX waypoint using AUX button
- GPX + Audio track
public class Clock : Gtk.VBox
{
protected Gtk.Label l_date;
+ protected Gtk.Button l_date_button;
protected Gtk.Label l_time;
protected Gtk.Label l_deadline;
protected time_t last_time;
protected time_t last_deadline;
protected string last_deadline_label;
- public Clock()
+ construct
{
last_time = time_t();
last_time_type = zavai.clock.SourceType.SYSTEM;
l_date = new Gtk.Label("--");
l_date.modify_font(Pango.FontDescription.from_string("Sans 40"));
- pack_start(l_date, false, false, 0);
+ l_date_button = new Gtk.Button();
+ l_date_button.set_image(l_date);
+ l_date_button.relief = Gtk.ReliefStyle.NONE;
+ l_date_button.clicked += on_date_clicked;
+ pack_start(l_date_button, false, false, 0);
l_time = new Gtk.Label("--:--");
l_time.modify_font(Pango.FontDescription.from_string("Sans 60"));
pack_start(l_time, false, false, 0);
zavai.clock.clock.request("ui.main.clock");
}
+ private void on_date_clicked(Gtk.Button b)
+ {
+ zavai.app.push_applet("ui.calendar");
+ }
+
private void on_schedule_changed()
{
zavai.clock.Alarm a = zavai.clock.clock.next_alarm();