00001 /*------------------------------------------------------------------------ 00002 *--------------------- WMPSNIFFER -------------------- 00003 *------------------------------------------------------------------------ 00004 * V7.0B 11/05/10 00005 * 00006 * 00007 * File: MyArea_glade.hh 00008 * Authors: Danilo Tardioli 00009 * ---------------------------------------------------------------------- 00010 * Copyright (C) 2000-2012, Universidad de Zaragoza, SPAIN 00011 * 00012 * Contact Addresses: Danilo Tardioli dantard@unizar.es 00013 * 00014 * RT-WMP is free software; you can redistribute it and/or modify it 00015 * under the terms of the GNU General Public License as published by the 00016 * Free Software Foundation; either version 2, or (at your option) any 00017 * later version. 00018 * 00019 * RT-WMP is distributed in the hope that it will be useful, but 00020 * WITHOUT ANY WARRANTY; without even the implied warranty of 00021 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 00022 * General Public License for more details. 00023 * 00024 * You should have received a copy of the GNU General Public License 00025 * distributed with RT-WMP; see file COPYING. If not, write to the 00026 * Free Software Foundation, 59 Temple Place - Suite 330, Boston, MA 00027 * 02111-1307, USA. 00028 * 00029 * As a special exception, if you link this unit with other files to 00030 * produce an executable, this unit does not by itself cause the 00031 * resulting executable to be covered by the GNU General Public License. 00032 * This exception does not however invalidate any other reasons why the 00033 * executable file might be covered by the GNU Public License. 00034 * 00035 *----------------------------------------------------------------------*/ 00036 00037 #ifndef _MYAREA_GLADE_HH 00038 # define _MYAREA_GLADE_HH 00039 00040 00041 #if !defined(GLADEMM_DATA) 00042 #define GLADEMM_DATA 00043 #include <gtkmm/accelgroup.h> 00044 00045 class GlademmData 00046 { 00047 00048 Glib::RefPtr<Gtk::AccelGroup> accgrp; 00049 public: 00050 00051 GlademmData(Glib::RefPtr<Gtk::AccelGroup> ag) : accgrp(ag) 00052 { 00053 } 00054 00055 Glib::RefPtr<Gtk::AccelGroup> getAccelGroup() 00056 { return accgrp; 00057 } 00058 }; 00059 #endif //GLADEMM_DATA 00060 00061 #include <gtkmm/drawingarea.h> 00062 00063 class MyArea_glade : public Gtk::DrawingArea 00064 { 00065 public: 00066 00067 class Gtk::DrawingArea * MyArea; 00068 protected: 00069 00070 MyArea_glade(GlademmData *gmm_data); 00071 00072 ~MyArea_glade(); 00073 private: 00074 virtual bool on_MyArea_button_press_event(GdkEventButton *ev) = 0; 00075 virtual bool on_MyArea_button_release_event(GdkEventButton *ev) = 0; 00076 virtual bool on_MyArea_motion_notify_event(GdkEventMotion *ev) = 0; 00077 }; 00078 #endif