Code

Some improvements to my title/desc stuff of revision 18759 (see bug 171024).
[inkscape.git] / src / dialogs / eek-preview.h
index a2799dd8c020c747d3140f1f4ffa556d1f224d57..ee99125af35dc9b982316fa8e3bfd5aa1987c996 100644 (file)
@@ -20,7 +20,7 @@
  *
  * The Initial Developer of the Original Code is
  * Jon A. Cruz.
- * Portions created by the Initial Developer are Copyright (C) 2005
+ * Portions created by the Initial Developer are Copyright (C) 2005-2008
  * the Initial Developer. All Rights Reserved.
  *
  * Contributor(s):
@@ -67,6 +67,15 @@ typedef enum {
     VIEW_TYPE_GRID
 } ViewType;
 
+typedef enum {
+    PREVIEW_SIZE_TINY = 0,
+    PREVIEW_SIZE_SMALL,
+    PREVIEW_SIZE_MEDIUM,
+    PREVIEW_SIZE_BIG,
+    PREVIEW_SIZE_BIGGER,
+    PREVIEW_SIZE_HUGE
+} PreviewSize;
+
 typedef enum {
   PREVIEW_LINK_NONE = 0,
   PREVIEW_LINK_IN = 1,
@@ -86,16 +95,15 @@ struct _EekPreview
     int _r;
     int _g;
     int _b;
-    
-    // JON: keeping this gboolean because it is legacy c-based code
-    // TODO: convert to bool
+
     gboolean _hot;
     gboolean _within;
     gboolean _takesFocus;
 
     PreviewStyle _prevstyle;
     ViewType _view;
-    GtkIconSize _size;
+    PreviewSize _size;
+    guint _ratio;
     guint _linked;
 };
 
@@ -110,17 +118,17 @@ struct _EekPreviewClass
 GType      eek_preview_get_type(void) G_GNUC_CONST;
 GtkWidget* eek_preview_new(void);
 
-void eek_preview_set_details( EekPreview* splat, PreviewStyle prevstyle, ViewType view, GtkIconSize size );
+void eek_preview_set_details( EekPreview* splat, PreviewStyle prevstyle, ViewType view, PreviewSize size, guint ratio );
 void eek_preview_set_color( EekPreview* splat, int r, int g, int b );
 
 void eek_preview_set_linked( EekPreview* splat, LinkType link );
 LinkType eek_preview_get_linked( EekPreview* splat );
 
-// JON: keeping this gboolean because it is legacy c-based code
-// TODO: convert to bool
 gboolean eek_preview_get_focus_on_click( EekPreview* preview );
 void eek_preview_set_focus_on_click( EekPreview* preview, gboolean focus_on_click );
 
+void eek_preview_set_size_mappings( guint count, GtkIconSize const* sizes );
+
 G_END_DECLS