lgrAnnotationSlots.h
Go to the documentation of this file.
00001 /******************************************************************************
00002 ** Copyright (c) 1992-2010 VT MAK
00003 ** All rights reserved.
00004 ******************************************************************************/
00005 
00008 
00009 #ifndef lgrAnnotationSlots_H_
00010 #define lgrAnnotationSlots_H_
00011 
00012 #include "lgrAnn.h"
00013 #include "lgrEditorInterface.h"
00014 
00015 #include <QtCore/QObject>
00016 
00017 namespace MAKLogger
00018 {
00019 
00020    class DtLgrGuiModel;
00021    class DtLgrAnnotationComponent;
00022    class DtLgrAnnotationBar;
00023    class DtLgrAnnotationMenuBar;
00024    class DtLgrAnnotationManager;
00025    class DtLgrAnnotationView;
00026    class DtLgrAnnotation;
00027 
00029    class DT_DLL_LGRANN DtLgrAnnotationSlots : public QObject
00030    {
00031       Q_OBJECT
00032 
00033    public:
00034 
00037       DtLgrAnnotationSlots(DtLgrAnnotationComponent* component,
00038          DtLgrAnnotationManager* manager,DtLgrAnnotationView* view);
00039 
00041       virtual ~DtLgrAnnotationSlots();
00042 
00043    private:
00045       DtLgrAnnotationSlots(const DtLgrAnnotationSlots&);
00047       DtLgrAnnotationSlots& operator=(const DtLgrAnnotationSlots&);
00048 
00049    public slots:
00050 
00052       void postModelUpdate(DtLgrGuiModel& model);
00053 
00055       void openCorrespondingFile(QString);
00056 
00058       void closeCorrespondingFile(bool opening);
00059 
00061       void loggerFileDataChanged(const DtLgrEditorInterface::FileDataOperations& fileOp);
00062 
00066       void setAutoLoad(bool);
00067 
00069       void setAllowChanges(bool);
00070 
00071       void openFile();
00072       void openFile(const QString& filename);
00073 
00074       void importFile();
00075       void saveFile();
00076       void saveFileAs();
00077 
00081       bool prepareFileForClose();
00082 
00088       bool closeFile();
00089 
00091       void createAnnotation();
00092 
00094       void modifyAnnotation();
00095 
00097       void quickModifyAnnotation();
00098 
00100       void deleteAnnotation();
00101       
00103       void selectAnnotation();
00104 
00108       void convertAnnotationFromMenu();
00109 
00111       void convertAnnotation();
00112 
00114       void convertAnnotation(QString type);
00115 
00117       void jumpToPrevious();
00118 
00120       void jumpToNext();
00121 
00123       void jumpToStart();
00124 
00126       void jumpToEnd();
00127 
00129       void boundToStartAndEnd();
00130 
00132       void zoomToStartAndEnd();
00133 
00135       void showHelp();
00136 
00138       void emitAnnotationsChanged();
00139 
00140       void selectedAnnotationChanged(DtLgrAnnotation*);
00141 
00142    signals:
00143       void fileOpened();
00144       void fileSaved();
00145       void fileClosed();
00146       void annotationsChanged();
00147 
00148    protected:
00149       DtLgrAnnotationComponent* myComponent;
00150       DtLgrAnnotationView* myView;
00151       DtLgrAnnotationManager* myManager;     
00152       QString myCorrespondingName;
00153       QString myObjectToConvert;
00154    };
00155 
00156 }
00157 
00158 #endif

Document ID: Generated on Tue Oct 11 19:41:03 EDT 2011 from SVN revision 107422
Copyright © 2005-2011 VT MÄK Inc. All Rights Reserved (www.mak.com)