Changeset 8820 for trunk


Ignore:
Timestamp:
01/19/08 12:55:11 (17 years ago)
Author:
tbretz
Message:
*** empty log message ***
Location:
trunk/MagicSoft/Cosy
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Cosy/devdrv/shaftencoder.cc

    r8811 r8820  
    1515
    1616ShaftEncoder::ShaftEncoder(const BYTE_t nodeid, const char *name, MLog &out)
    17     : NodeDrv(nodeid, name, out), fPos(0), fVel(0), fAcc(0),
    18     fTurn(0), fDirection(kUndefined), fHysteresisPos(0), fHysteresisNeg(0),
    19     fLabel(NULL), fUpdPos(0), fPosHasChanged(false), fDirHasChanged(false),
    20     fReport(NULL),
    21     /*fTwin(0), fIsUpdated(kFALSE),*/
    22       fMotor(0), fOffset(0), fDirChangedPos(0)
     17    : NodeDrv(nodeid, name, out),
     18    fPos(0), fVel(0), fAcc(0), fTurn(0), fTicks(0),
     19    fDirection(kUndefined), fHysteresisPos(0), fHysteresisNeg(0),
     20    fLabel(NULL), fUpdPos(0),
     21    fPosHasChanged(false), fDirHasChanged(false),
     22    fReport(NULL), fMotor(0), fOffset(0), fDirChangedPos(0)
    2323{
    2424}
     
    186186    }
    187187
    188     char text[21];
     188    char text[21]="";
    189189    if (pos!=fUpdPos && fLabel)
    190190    {
     
    314314    }
    315315
    316     if (multipos>GetPos()) fDirection = kForward;
    317     else if (multipos<GetPos()) fDirection = kBackward;
    318     else fDirection = kUndefined;
     316    if (multipos>GetPos())
     317        fDirection = kForward;
     318    else
     319        if (multipos<GetPos())
     320            fDirection = kBackward;
     321        else
     322            fDirection = kUndefined;
    319323
    320324
  • trunk/MagicSoft/Cosy/gui/MGCosy.h

    r7790 r8820  
    1818class TGTab;
    1919class TGLabel;
    20 class TGMenuBar;
    2120class TGTextView;
    2221class TGPopupMenu;
  • trunk/MagicSoft/Cosy/gui/MGEmbeddedCanvas.cc

    r8811 r8820  
    117117{
    118118    TList &list = *fCanvas->GetListOfPrimitives();
    119     list.ForEach(TObject, SetBit)(kNoContextMenu);
     119    list.R__FOR_EACH(TObject, SetBit)(kNoContextMenu);
    120120
    121121    fCanvas->SetBit(kNoContextMenu);
  • trunk/MagicSoft/Cosy/gui/MGEmbeddedCanvas.h

    r4076 r8820  
    11#ifndef COSY_MGEmbeddedCanvas
    22#define COSY_MGEmbeddedCanvas
    3 
    4 //
    5 // This File contains the declaration of the MGCoordinates-class
    6 //
    7 //   Author: Thomas Bretz
    8 //   Version: V1.0 (1-8-2000)
    9 
    103
    114#ifndef ROOT_TRootEmbeddedCanvas
Note: See TracChangeset for help on using the changeset viewer.