comparison libgui/graphics/PushTool.cc @ 18501:523878f76518 gui-release

style fix: eliminate lines of slashes to separate functions.
author John W. Eaton <jwe@octave.org>
date Thu, 20 Feb 2014 15:10:07 -0500
parents 49877d3be064
children fe0e34be5576
comparison
equal deleted inserted replaced
18500:49877d3be064 18501:523878f76518
26 26
27 #include "PushTool.h" 27 #include "PushTool.h"
28 28
29 #include "ToolBarButton.cc" 29 #include "ToolBarButton.cc"
30 30
31 //////////////////////////////////////////////////////////////////////////////
32
33 namespace QtHandles 31 namespace QtHandles
34 { 32 {
35
36 //////////////////////////////////////////////////////////////////////////////
37 33
38 PushTool* PushTool::create (const graphics_object& go) 34 PushTool* PushTool::create (const graphics_object& go)
39 { 35 {
40 Object* parent = Object::parentObject (go); 36 Object* parent = Object::parentObject (go);
41 37
48 } 44 }
49 45
50 return 0; 46 return 0;
51 } 47 }
52 48
53 //////////////////////////////////////////////////////////////////////////////
54
55 PushTool::PushTool (const graphics_object& go, QAction* action) 49 PushTool::PushTool (const graphics_object& go, QAction* action)
56 : ToolBarButton<uipushtool> (go, action) 50 : ToolBarButton<uipushtool> (go, action)
57 { 51 {
58 connect (action, SIGNAL (triggered (bool)), this, SLOT (clicked (void))); 52 connect (action, SIGNAL (triggered (bool)), this, SLOT (clicked (void)));
59 } 53 }
60 54
61 //////////////////////////////////////////////////////////////////////////////
62
63 PushTool::~PushTool (void) 55 PushTool::~PushTool (void)
64 { 56 {
65 } 57 }
66
67 //////////////////////////////////////////////////////////////////////////////
68 58
69 void PushTool::update (int pId) 59 void PushTool::update (int pId)
70 { 60 {
71 switch (pId) 61 switch (pId)
72 { 62 {
74 ToolBarButton<uipushtool>::update (pId); 64 ToolBarButton<uipushtool>::update (pId);
75 break; 65 break;
76 } 66 }
77 } 67 }
78 68
79 //////////////////////////////////////////////////////////////////////////////
80
81 void PushTool::clicked (void) 69 void PushTool::clicked (void)
82 { 70 {
83 gh_manager::post_callback (m_handle, "clickedcallback"); 71 gh_manager::post_callback (m_handle, "clickedcallback");
84 } 72 }
85 73
86 //////////////////////////////////////////////////////////////////////////////
87
88 }; 74 };