VR-Forces 4.0.4 Class Documentation
include/tmEventHandler/createLineHandler.h
Go to the documentation of this file.
00001 /*******************************************************************************
00002 ** Copyright (c) 2003 MAK Technologies, Inc.
00003 ** All rights reserved.
00004 *******************************************************************************/
00005 /*******************************************************************************
00006 ** $RCSfile: createLineHandler.h,v $ $Revision: 1.11 $ $State: Exp $
00007 *******************************************************************************/
00008 
00011 
00012 #ifndef CREATELINEHANDLER_H_
00013 #define CREATELINEHANDLER_H_
00014 
00015 #include "tmEventHandler/createControlObjectHandler.h"
00016 #include "tmqt/eventSignaller.h"
00017 
00018 class DtLineConfigWidget;
00019 
00021 #include "tmEventHandler/tmEventHandlerDefines.h"
00022 class DT_DLL_tmEventHandler DtCreateLineHandler : public DtCreateControlObjectHandler
00023 {
00024    Q_OBJECT
00025    
00026 public:
00027 
00029    DtCreateLineHandler();
00030    
00032    virtual ~DtCreateLineHandler();
00033    
00034 public:
00036    static DtEventHandler* create(DtEventController* owner, void* usr);
00037 
00038 protected:
00039    virtual void initDialog(QWidget* w);
00040    virtual void initDialogConnections();
00041 
00042    virtual void setWorkingName();
00043 
00044    virtual DtSymbol* createSymbol(DtTMMapArea* area);
00045    virtual bool finishOnCreate() const;
00046 
00049    virtual void initFreehandMode();
00050 
00053    virtual bool mouseEvent(DtTMMapArea* area, QMouseEvent* evnt, const DtPoint& pnt);
00054 
00056    virtual void freehandDraw(const DtPoint& pnt, bool end = false);
00057 
00059    virtual QString workingTitle() const;
00060    virtual const char* eventSignalName() { return DtCreateLineWidgetEvent; };
00061 
00062    virtual void setEmitCreateSignal(bool);
00063 
00064 protected:
00065    bool myFreehand;
00066    bool myInFreehandDraw;
00067 };
00068 
00069 #endif //CREATELINEHANDLER_H_

Document ID: Generated on Fri Jun 29 16:33:32 EDT 2012 from SVN revision 116588
Copyright © 2005-2012 VT MÄK Inc. All Rights Reserved (www.mak.com)