00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00025 #ifndef __FRAME_UTILITIES_H
00026 #define __FRAME_UTILITIES_H
00027 #ifdef __cplusplus
00028 extern "C" {
00029 #endif
00030
00031 #include <gtk/gtk.h>
00032
00033 #include "constants.h"
00034 #include "frame-common.h"
00035 #include "machine.h"
00036 #include "time-period.h"
00037
00038
00039
00050 void frame_display_error_message (frame_t *, frame_error_t, const gchar *, ...);
00051
00052
00053
00063 double frame_get_height (frame_t *);
00064
00065
00066
00076 double frame_get_width (frame_t *);
00077
00078
00079
00093 gboolean frame_get_coordinates (frame_t *, GtkWidget *, guint *, guint *);
00094
00095
00103 void frame_request_redraw (frame_t *);
00104
00105
00106
00114 void frame_request_content_refresh (frame_t *);
00115
00116
00117
00118
00119
00120
00121
00122
00123
00124
00125
00126
00127
00128
00129
00137 void frame_unset_error (frame_t *);
00138
00139
00140
00159 int frame_initialise (frame_t *, size_ratio_t, machine_t *, time_period_t *);
00160
00161
00162
00173 GtkWidget *frame_get_root_widget (frame_t *);
00174
00175
00176
00192 char *frame_get_absolute_reports_path (frame_t *, const char *, const char *);
00193
00194
00195
00209 char *frame_get_absolute_data_path (frame_t *, const char *);
00210
00211
00212
00226 char *frame_get_absolute_tmp_path (frame_t *, const char *);
00227
00228 #ifdef __cplusplus
00229 }
00230 #endif
00231 #endif