#include <config.h>
#endif /*HAVE_CONFIG_H*/
+#include <gtk/gtk.h>
+
/*
* admittedly, the ifdefs for gtk and maemo are rather ugly; still
* this way is probably the easiest to maintain
#endif /* MODEST_PLATFORM_GNOME */
#ifdef MODEST_PLATFORM_MAEMO
+#ifdef MODEST_HILDON_VERSION_0
#include <hildon-widgets/hildon-window.h>
+#else
+#include <hildon/hildon-window.h>
+#endif /*MODEST_HILDON_VERSION_0*/
typedef HildonWindow ModestWindowParent;
typedef HildonWindowClass ModestWindowParentClass;
+
+#ifndef GTK_STOCK_FULLSCREEN
+#define GTK_STOCK_FULLSCREEN ""
+#endif /*GTK_STOCK_FULLSCREEN*/
+
#endif /*MODEST_PLATFORM_MAEMO */
/* convenience macros */
/* virtual methods */
void (*set_zoom_func) (ModestWindow *self, gdouble zoom);
gdouble (*get_zoom_func) (ModestWindow *self);
+ gboolean (*zoom_plus_func) (ModestWindow *self);
+ gboolean (*zoom_minus_func) (ModestWindow *self);
+ void (*show_toolbar_func) (ModestWindow *self, gboolean show_toolbar);
+
+ void (*save_state_func) (ModestWindow *self);
};
/**
*/
gdouble modest_window_get_zoom (ModestWindow *window);
+/**
+ * modest_window_zoom_plus:
+ * @window: a #ModestWindow
+ *
+ * increases one level the zoom.
+ *
+ * Returns: %TRUE if successful, %FALSE if increasing zoom is not available
+ */
+gboolean modest_window_zoom_plus (ModestWindow *window);
+
+/**
+ * modest_window_zoom_minus:
+ * @window: a #ModestWindow
+ *
+ * decreases one level the zoom.
+ *
+ * Returns: %TRUE if successful, %FALSE if increasing zoom is not available
+ */
+gboolean modest_window_zoom_minus (ModestWindow *window);
+
+
+/**
+ * modest_window_show_toolbar:
+ * @window:
+ * @view_toolbar: whether or not the toolbar should be shown
+ *
+ * shows/hides the window toolbar
+ **/
+void modest_window_show_toolbar (ModestWindow *window,
+ gboolean show_toolbar);
+
+/**
+ * modest_window_save_state:
+ * @window:
+ *
+ * Ask the window to save its settings for loading again later.
+ * This actually invokes the save_setting_func vfunc, which
+ * derived windows should implement.
+ **/
+void modest_window_save_state (ModestWindow *window);
+
G_END_DECLS
#endif /* __MODEST_WINDOW_H__ */