Changeset 66 in Sophya
- Timestamp:
- Jan 7, 1998, 10:40:01 AM (28 years ago)
- Location:
- trunk/SophyaPI/PI
- Files:
-
- 8 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/SophyaPI/PI/pibwdgmac.cc
r64 r66 14 14 PIBaseWdgGen(par, nom, sx, sy, px, py) 15 15 { 16 mAdapter->AddAttachment(new PIUpdAttachment(this)); 16 17 mPane->AddAttachment(new PIUpdAttachment(this)); 17 18 cursor = NULL; -
trunk/SophyaPI/PI/pippapplmac.cc
r64 r66 2 2 #include "piupdattachment.h" 3 3 #include "pippmenubar.h" 4 #include "pippwindowmac.h" 4 5 #include <LClipboard.h> 5 6 … … 7 8 :LApplication() 8 9 { 10 RegisterClass_(PIPPWindowMac); 9 11 AddAttachment(new LClipboard); 10 12 } -
trunk/SophyaPI/PI/pippviewadapter.cc
r64 r66 1 1 #include "pippviewadapter.h" 2 #include "piupdattachment.h" 2 3 3 4 … … 104 105 } 105 106 107 void 108 PIPPViewAdapter::ResizeFrameBy( 109 Int16 inWidthDelta, 110 Int16 inHeightDelta, 111 Boolean inRefresh) 112 { 113 LView::ResizeFrameBy(inWidthDelta,inHeightDelta,inRefresh); 114 ExecuteAttachments(msg_Resize, NULL); 115 } 116 -
trunk/SophyaPI/PI/pippviewadapter.h
r64 r66 19 19 Int32 inSurrHeightDelta, 20 20 Boolean inRefresh); 21 virtual void ResizeFrameBy( 22 Int16 inWidthDelta, 23 Int16 inHeightDelta, 24 Boolean inRefresh); 21 25 22 26 protected: -
trunk/SophyaPI/PI/piupdattachment.cc
r15 r66 1 1 #include "piupdattachment.h" 2 const MessageT msg_Resize = 817;3 const MessageT msg_Move = 818;4 2 //const MessageT msg_MouseUp = 819; 5 3 -
trunk/SophyaPI/PI/piupdattachment.h
r9 r66 3 3 4 4 #include "pibwdgmac.h" 5 6 const MessageT msg_Resize = 817; 7 const MessageT msg_Move = 818; 5 8 6 9 class PIUpdAttachment : public LAttachment { -
trunk/SophyaPI/PI/piwindowmac.cc
r64 r66 69 69 PIWindowMac::SetPos(int px, int py) 70 70 { 71 ((LWindow*) mPane)->MoveWindow To(px-XPos(), py-YPos());71 ((LWindow*) mPane)->MoveWindowBy(px-XPos(), py-YPos()); 72 72 } 73 74 int 75 PIWindowMac::XPos() 76 { 77 Rect theBounds; 78 ((LWindow*) mPane)->GetGlobalBounds(theBounds); 79 return theBounds.left; 80 } 81 82 int 83 PIWindowMac::YPos() 84 { 85 Rect theBounds; 86 ((LWindow*) mPane)->GetGlobalBounds(theBounds); 87 return theBounds.top; 88 } 89 -
trunk/SophyaPI/PI/piwindowmac.h
r64 r66 14 14 virtual void SetSize(int sx, int sy); 15 15 virtual void SetPos(int px, int py); 16 virtual int XPos(); 17 virtual int YPos(); 16 18 17 19 protected:
Note:
See TracChangeset
for help on using the changeset viewer.