00001 // Filename: pgButtonNotify.h 00002 // Created by: drose (18Aug05) 00003 // 00004 //////////////////////////////////////////////////////////////////// 00005 // 00006 // PANDA 3D SOFTWARE 00007 // Copyright (c) Carnegie Mellon University. All rights reserved. 00008 // 00009 // All use of this software is subject to the terms of the revised BSD 00010 // license. You should have received a copy of this license along 00011 // with this source code in a file named "LICENSE." 00012 // 00013 //////////////////////////////////////////////////////////////////// 00014 00015 #ifndef PGBUTTONNOTIFY_H 00016 #define PGBUTTONNOTIFY_H 00017 00018 #include "pandabase.h" 00019 #include "pgItemNotify.h" 00020 00021 class PGButton; 00022 00023 //////////////////////////////////////////////////////////////////// 00024 // Class : PGButtonNotify 00025 // Description : Objects that inherit from this class can receive 00026 // notify messages when a slider bar moves or otherwise 00027 // is reconfigured. 00028 //////////////////////////////////////////////////////////////////// 00029 class EXPCL_PANDA_PGUI PGButtonNotify : public PGItemNotify { 00030 public: 00031 INLINE PGButtonNotify(); 00032 00033 protected: 00034 virtual void button_click(PGButton *button, const MouseWatcherParameter ¶m); 00035 00036 friend class PGButton; 00037 }; 00038 00039 #include "pgButtonNotify.I" 00040 00041 #endif