Changeset 66 in Sophya


Ignore:
Timestamp:
Jan 7, 1998, 10:40:01 AM (28 years ago)
Author:
aubourg
Message:

Pour mac, 070198

Location:
trunk/SophyaPI/PI
Files:
8 edited

Legend:

Unmodified
Added
Removed
  • trunk/SophyaPI/PI/pibwdgmac.cc

    r64 r66  
    1414PIBaseWdgGen(par, nom, sx, sy, px, py)
    1515{
     16    mAdapter->AddAttachment(new PIUpdAttachment(this));
    1617    mPane->AddAttachment(new PIUpdAttachment(this));
    1718    cursor = NULL;
  • trunk/SophyaPI/PI/pippapplmac.cc

    r64 r66  
    22#include "piupdattachment.h"
    33#include "pippmenubar.h"
     4#include "pippwindowmac.h"
    45#include <LClipboard.h>
    56
     
    78:LApplication()
    89{
     10  RegisterClass_(PIPPWindowMac);
    911  AddAttachment(new LClipboard);
    1012}
  • trunk/SophyaPI/PI/pippviewadapter.cc

    r64 r66  
    11#include "pippviewadapter.h"
     2#include "piupdattachment.h"
    23
    34
     
    104105}
    105106
     107void
     108PIPPViewAdapter::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  
    1919                                                                Int32                           inSurrHeightDelta,
    2020                                                                Boolean                         inRefresh);
     21        virtual void            ResizeFrameBy(
     22                                                                Int16                           inWidthDelta,
     23                                                                Int16                           inHeightDelta,
     24                                                                Boolean                         inRefresh);
    2125                                                               
    2226protected:
  • trunk/SophyaPI/PI/piupdattachment.cc

    r15 r66  
    11#include "piupdattachment.h"
    2 const MessageT  msg_Resize                      = 817;
    3 const MessageT  msg_Move                        = 818;
    42//const MessageT        msg_MouseUp                     = 819;
    53
  • trunk/SophyaPI/PI/piupdattachment.h

    r9 r66  
    33
    44#include "pibwdgmac.h"
     5
     6const MessageT  msg_Resize                      = 817;
     7const MessageT  msg_Move                        = 818;
    58
    69class PIUpdAttachment : public LAttachment {
  • trunk/SophyaPI/PI/piwindowmac.cc

    r64 r66  
    6969PIWindowMac::SetPos(int px, int py)
    7070{
    71    ((LWindow*) mPane)->MoveWindowTo(px-XPos(), py-YPos());
     71   ((LWindow*) mPane)->MoveWindowBy(px-XPos(), py-YPos());
    7272}
     73
     74int
     75PIWindowMac::XPos()
     76{
     77        Rect    theBounds;
     78        ((LWindow*) mPane)->GetGlobalBounds(theBounds);
     79    return theBounds.left;
     80}
     81
     82int
     83PIWindowMac::YPos()
     84{
     85        Rect    theBounds;
     86        ((LWindow*) mPane)->GetGlobalBounds(theBounds);
     87    return theBounds.top;
     88}
     89
  • trunk/SophyaPI/PI/piwindowmac.h

    r64 r66  
    1414  virtual void           SetSize(int sx, int sy);
    1515  virtual void           SetPos(int px, int py);
     16  virtual int            XPos();
     17  virtual int            YPos();
    1618
    1719protected:
Note: See TracChangeset for help on using the changeset viewer.