Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020 #ifndef AP_UNIXTOPRULER_H
00021 #define AP_UNIXTOPRULER_H
00022
00023
00024
00025
00026
00027
00028 #include <gtk/gtk.h>
00029 #include <gdk/gdk.h>
00030 #include "ut_types.h"
00031 #include "ap_TopRuler.h"
00032 #include "xap_UnixCustomWidget.h"
00033
00034 class XAP_Frame;
00035
00036
00037
00038 class AP_UnixTopRuler : public AP_TopRuler, public XAP_UnixCustomWidget
00039 {
00040 public:
00041 AP_UnixTopRuler(XAP_Frame * pFrame);
00042 virtual ~AP_UnixTopRuler(void);
00043
00044 GtkWidget * createWidget(void);
00045 virtual void setView(AV_View * pView);
00046
00047
00048 void getWidgetPosition(gint * x, gint * y);
00049 GtkWidget * getWidget(void) { return m_wTopRuler; };
00050 GdkWindow * getRootWindow(void);
00051
00052 void _ruler_style_context_changed (void);
00053
00054 protected:
00055 GtkWidget * m_wTopRuler;
00056 GdkWindow * m_rootWindow;
00057 gulong m_iStyleID;
00058 class _fe
00059 {
00060 public:
00061 static void realize(AP_UnixTopRuler *self);
00062 static void unrealize(AP_UnixTopRuler *self);
00063 static gint button_press_event(GtkWidget * w, GdkEventButton * e);
00064 static gint button_release_event(GtkWidget * w, GdkEventButton * e);
00065 static gint configure_event(GtkWidget* w, GdkEventConfigure *e);
00066 static gint motion_notify_event(GtkWidget* w, GdkEventMotion* e);
00067 static gint key_press_event(GtkWidget* w, GdkEventKey* e);
00068 static gint delete_event(GtkWidget * w, GdkEvent * , gpointer );
00069 static void destroy (GtkWidget * , gpointer );
00070 };
00071
00072 };
00073
00074 #endif