comparison libinterp/corefcn/graphics.cc @ 17652:57750dc54ab6

maint: Correct indentation in graphics.cc, graphics.in.h. No code changes. * libinterp/corefcn/graphics.cc, libinterp/corefcn/graphics.in.h: Correct indentation of constructors. No code changes.
author Rik <rik@octave.org>
date Mon, 14 Oct 2013 11:04:46 -0700
parents cd5a6008ae72
children d63878346099
comparison
equal deleted inserted replaced
17651:b0f529c3671d 17652:57750dc54ab6
8020 callback_event : public base_graphics_event 8020 callback_event : public base_graphics_event
8021 { 8021 {
8022 public: 8022 public:
8023 callback_event (const graphics_handle& h, const std::string& name, 8023 callback_event (const graphics_handle& h, const std::string& name,
8024 const octave_value& data = Matrix ()) 8024 const octave_value& data = Matrix ())
8025 : base_graphics_event (), handle (h), callback_name (name), 8025 : base_graphics_event (), handle (h), callback_name (name),
8026 callback (), callback_data (data) { } 8026 callback (), callback_data (data) { }
8027 8027
8028 callback_event (const graphics_handle& h, const octave_value& cb, 8028 callback_event (const graphics_handle& h, const octave_value& cb,
8029 const octave_value& data = Matrix ()) 8029 const octave_value& data = Matrix ())
8030 : base_graphics_event (), handle (h), callback_name (), 8030 : base_graphics_event (), handle (h), callback_name (),
8031 callback (cb), callback_data (data) { } 8031 callback (cb), callback_data (data) { }
8032 8032
8033 void execute (void) 8033 void execute (void)
8034 { 8034 {
8035 if (callback.is_defined ()) 8035 if (callback.is_defined ())
8036 gh_manager::execute_callback (handle, callback, callback_data); 8036 gh_manager::execute_callback (handle, callback, callback_data);
8038 gh_manager::execute_callback (handle, callback_name, callback_data); 8038 gh_manager::execute_callback (handle, callback_name, callback_data);
8039 } 8039 }
8040 8040
8041 private: 8041 private:
8042 callback_event (void) 8042 callback_event (void)
8043 : base_graphics_event (), handle (), 8043 : base_graphics_event (), handle (), callback_name (), callback_data ()
8044 callback_name (), callback_data ()
8045 { } 8044 { }
8046 8045
8047 private: 8046 private:
8048 graphics_handle handle; 8047 graphics_handle handle;
8049 std::string callback_name; 8048 std::string callback_name;
8054 class 8053 class
8055 function_event : public base_graphics_event 8054 function_event : public base_graphics_event
8056 { 8055 {
8057 public: 8056 public:
8058 function_event (graphics_event::event_fcn fcn, void* data = 0) 8057 function_event (graphics_event::event_fcn fcn, void* data = 0)
8059 : base_graphics_event (), function (fcn), 8058 : base_graphics_event (), function (fcn), function_data (data)
8060 function_data (data) { } 8059 { }
8061 8060
8062 void execute (void) 8061 void execute (void)
8063 { 8062 {
8064 function (function_data); 8063 function (function_data);
8065 } 8064 }
8084 set_event : public base_graphics_event 8083 set_event : public base_graphics_event
8085 { 8084 {
8086 public: 8085 public:
8087 set_event (const graphics_handle& h, const std::string& name, 8086 set_event (const graphics_handle& h, const std::string& name,
8088 const octave_value& value, bool do_notify_toolkit = true) 8087 const octave_value& value, bool do_notify_toolkit = true)
8089 : base_graphics_event (), handle (h), property_name (name), 8088 : base_graphics_event (), handle (h), property_name (name),
8090 property_value (value), notify_toolkit (do_notify_toolkit) { } 8089 property_value (value), notify_toolkit (do_notify_toolkit) { }
8091 8090
8092 void execute (void) 8091 void execute (void)
8093 { 8092 {
8094 gh_manager::auto_lock guard; 8093 gh_manager::auto_lock guard;
8095 8094