summaryrefslogtreecommitdiff
path: root/stickynotes/stickynotes.h
diff options
context:
space:
mode:
authorPerberos <[email protected]>2011-11-14 18:24:48 -0300
committerPerberos <[email protected]>2011-11-14 18:24:48 -0300
commit312ba610a1e98fc656fb58178227d7d45a64494e (patch)
tree54a3c2b6084c80e63fb0526c6e7b8e01627acbd7 /stickynotes/stickynotes.h
downloadmate-applets-312ba610a1e98fc656fb58178227d7d45a64494e.tar.bz2
mate-applets-312ba610a1e98fc656fb58178227d7d45a64494e.tar.xz
initial
Diffstat (limited to 'stickynotes/stickynotes.h')
-rw-r--r--stickynotes/stickynotes.h94
1 files changed, 94 insertions, 0 deletions
diff --git a/stickynotes/stickynotes.h b/stickynotes/stickynotes.h
new file mode 100644
index 00000000..0e64c735
--- /dev/null
+++ b/stickynotes/stickynotes.h
@@ -0,0 +1,94 @@
+/* Sticky Notes
+ * Copyright (C) 2002-2003 Loban A Rahman
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 2, or (at your option)
+ * any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
+ * 02111-1307, USA.
+ */
+
+#ifndef __STICKYNOTES_H__
+#define __STICKYNOTES_H__
+
+#define WNCK_I_KNOW_THIS_IS_UNSTABLE 1
+#include <libwnck/libwnck.h>
+#include <stickynotes_applet.h>
+
+typedef struct
+{
+ GtkWidget *w_window; /* Sticky Note window */
+ GtkWidget *w_menu; /* Sticky Note menu */
+ GtkWidget *w_properties; /* Sticky Note properties dialog */
+
+ GtkWidget *w_entry; /* Sticky Note title entry */
+ GtkWidget *w_color; /* Sticky Note color picker */
+ GtkWidget *w_color_label; /* Sticky Note color label */
+ GtkWidget *w_font_color; /* Sticky Note font color picker */
+ GtkWidget *w_font_color_label; /* Sticky Note font color label */
+ GtkWidget *w_font; /* Sticky Note font picker */
+ GtkWidget *w_font_label; /* Sticky Note font label */
+ GtkWidget *w_def_color; /* Sticky Note default color setting */
+ GtkWidget *w_def_font; /* Sticky Note default font setting */
+
+ GtkWidget *w_title; /* Sticky Note title */
+ GtkWidget *w_body; /* Sticky Note text body */
+ GtkWidget *w_scroller; /* Sticky Note scroller */
+ GtkWidget *w_lock; /* Sticky Note lock button */
+ GtkWidget *w_close; /* Sticky Note close button */
+ GtkWidget *w_resize_se; /* Sticky Note resize button (south east) */
+ GtkWidget *w_resize_sw; /* Sticky Note resize button (south west) */
+
+ GtkToggleAction *ta_lock_toggle_item; /* Lock item in the popup menu */
+
+ GtkImage *img_lock; /* Lock image */
+ GtkImage *img_close; /* Close image */
+ GtkImage *img_resize_se; /* SE resize image */
+ GtkImage *img_resize_sw; /* SW resize image */
+
+ gchar *color; /* Note color */
+ gchar *font_color; /* Font color */
+ gchar *font; /* Note font */
+ gboolean locked; /* Note locked state */
+
+ gint x; /* Note x-coordinate */
+ gint y; /* Note y-coordinate */
+ gint w; /* Note width */
+ gint h; /* Note height */
+
+ int workspace; /* Workspace the note is on */
+
+} StickyNote;
+
+StickyNote * stickynote_new(GdkScreen *screen);
+void stickynote_free(StickyNote *note);
+
+gboolean stickynote_get_empty(const StickyNote *note);
+
+void stickynote_set_title(StickyNote *note, const gchar* title);
+void stickynote_set_color (StickyNote *note,
+ const gchar *color_str,
+ const gchar *font_color_str,
+ gboolean save);
+void stickynote_set_font(StickyNote *note, const gchar* font_str, gboolean save);
+void stickynote_set_locked(StickyNote *note, gboolean locked);
+void stickynote_set_visible(StickyNote *note, gboolean visible);
+
+void stickynote_change_properties(StickyNote *note);
+
+void stickynotes_add(GdkScreen *screen);
+void stickynotes_remove(StickyNote *note);
+void stickynotes_save(void);
+gboolean stickynotes_save_now (void);
+void stickynotes_load(GdkScreen *screen);
+
+#endif /* __STICKYNOTES_H__ */