X-Git-Url: http://shamusworld.gotdns.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;ds=sidebyside;f=src%2Fline.cpp;h=da9717c1af65810bbe2975e33b9c8048c3798610;hb=59e5af9d8606aa091fa979e19f78e9325a1c0825;hp=5f3a611023e6faceb395d166bface63ea8b3bbf6;hpb=ef811c836c00cc94ce1eaea5c2e77e5278298b18;p=architektonas diff --git a/src/line.cpp b/src/line.cpp index 5f3a611..da9717c 100644 --- a/src/line.cpp +++ b/src/line.cpp @@ -273,6 +273,8 @@ Like so: oldPoint = point; needUpdate = true; + +//doesn't work QMainWindow::statusBar()->setText("You are manipulating a line"); } /* @@ -285,18 +287,20 @@ Ugly ways to do it: More elegant ways: - Pass the point in a notification function (how?) - - Pass the point as a reference to the class instance object (&endpoint). This way, the line - doesn't have to care about keeping track of Dimensions connected to it. But still have to - care about other connected entities (other Lines, Circles, Arcs, Splines, Texts, etc). I - think I'd be OK with this. - Since the Dimension has a pointer to our object, all we have to do is update our coordinates - and the Dimension object will adjust itself on the next repaint. Problem solved, and we don't - have to know anything about how many Dimensions are connected to us, or where! \o/ + - Pass the point as a reference to the class instance object (&endpoint). This + way, the line doesn't have to care about keeping track of Dimensions + connected to it. But still have to care about other connected entities + (other Lines, Circles, Arcs, Splines, Texts, etc). I think I'd be OK with + this. Since the Dimension has a pointer to our object, all we have to do is + update our coordinates and the Dimension object will adjust itself on the + next repaint. Problem solved, and we don't have to know anything about how + many Dimensions are connected to us, or where! \o/ The question then becomes, how do we do this kind of coupling??? -We need to know about connected entities so that we can have them either move in expected ways -or constrain the movement of this Line object. This is how we will be a cut above all other CAD -software currently out there: the GUI will try to do the right thing, most of the time. :-) +We need to know about connected entities so that we can have them either move +in expected ways or constrain the movement of this Line object. This is how we +will be a cut above all other CAD software currently out there: the GUI will +try to do the right thing, most of the time. :-) */ if (needUpdate) {