00001 // Filename: gtkStatsPianoWindow.h 00002 // Created by: drose (18Jul00) 00003 // 00004 //////////////////////////////////////////////////////////////////// 00005 // 00006 // PANDA 3D SOFTWARE 00007 // Copyright (c) 2001, Disney Enterprises, Inc. All rights reserved 00008 // 00009 // All use of this software is subject to the terms of the Panda 3d 00010 // Software license. You should have received a copy of this license 00011 // along with this source code; you will also find a current copy of 00012 // the license at http://www.panda3d.org/license.txt . 00013 // 00014 // To contact the maintainers of this program write to 00015 // panda3d@yahoogroups.com . 00016 // 00017 //////////////////////////////////////////////////////////////////// 00018 00019 #ifndef GTKSTATSPIANOWINDOW_H 00020 #define GTKSTATSPIANOWINDOW_H 00021 00022 #include <pandatoolbase.h> 00023 00024 #include "gtkStatsMonitor.h" 00025 #include "gtkStatsWindow.h" 00026 00027 class GtkStatsPianoRoll; 00028 00029 //////////////////////////////////////////////////////////////////// 00030 // Class : GtkStatsPianoWindow 00031 // Description : A window that contains a GtkStatsPianoRoll. 00032 //////////////////////////////////////////////////////////////////// 00033 class GtkStatsPianoWindow : public GtkStatsWindow { 00034 public: 00035 GtkStatsPianoWindow(GtkStatsMonitor *monitor, int thread_index, 00036 int chart_xsize, int chart_ysize); 00037 00038 virtual void mark_dead(); 00039 virtual void idle(); 00040 00041 protected: 00042 virtual void setup_menu(); 00043 virtual void menu_new_window(); 00044 void menu_hscale(float hz); 00045 00046 private: 00047 void layout_window(int chart_xsize, int chart_ysize); 00048 00049 private: 00050 int _thread_index; 00051 00052 GtkStatsPianoRoll *_chart; 00053 }; 00054 00055 00056 #endif 00057