lgrAnnotationView.h
Go to the documentation of this file.
00001 /******************************************************************************
00002 ** Copyright (c) 1992-2010 VT MAK
00003 ** All rights reserved.
00004 ******************************************************************************/
00005 
00009 
00010 #ifndef lgrAnnotationView_H_
00011 #define lgrAnnotationView_H_
00012 
00013 #include "lgrAnn.h"
00014 
00015 #include "lgrAnnotationBaseView.h"
00016 #include <QtGui/QWidget>
00017 
00018 class QMenuBar;
00019 class QGridLayout;
00020 class QLabel;
00021 
00022 namespace MAKLogger
00023 {
00024    class DtLgrAnnotationBar;
00025    class DtLgrAnnotationComponent;
00026    class DtLgrAnnotationMenuBar;
00027    class DtLgrAnnotationSlots;
00028    class DtLgrAnnotationManager;
00029    class DtLgrZoomableWidget;
00030 
00032    class DT_DLL_LGRANN DtLgrAnnotationView : public QWidget, 
00033       public DtLgrAnnotationBaseView
00034    {   
00035       Q_OBJECT
00036    public:
00037 
00039       DtLgrAnnotationView(DtLgrAnnotationComponent* component,
00040          DtLgrAnnotationManager* manager, QWidget* parent);
00041 
00043       virtual ~DtLgrAnnotationView();
00044   
00045    private:
00047       DtLgrAnnotationView(const DtLgrAnnotationView&);
00049       DtLgrAnnotationView& operator=(const DtLgrAnnotationView&);
00050 
00051    public slots:
00052 
00054       virtual void enableView(bool);
00055 
00057 
00058       void onPrevAnnotation();
00059       void onAnnotate();
00060       void onNextAnnotation();
00062    public:
00063 
00064       
00065       virtual void connectSlots(DtLgrAnnotationSlots*);
00066 
00067       virtual DtLgrZoomableWidget* zoomComponent();
00068 
00069 
00070 
00073       virtual void updateVisibility(bool);
00074 
00076       DtLgrAnnotationMenuBar* menu();
00077 
00079       const DtLgrAnnotationMenuBar* menu() const;
00080 
00082       DtLgrAnnotationSlots* annotationSlots();
00083 
00085       virtual void annotationAdded(DtLgrAnnotation* annotation);
00086 
00088       virtual void annotationRemoved(DtLgrAnnotation* annotation);
00089 
00091       virtual void annotationChanged(DtLgrAnnotation* annotation);
00092 
00094       virtual void selectAnnotation(DtLgrAnnotation* annotation);
00095 
00097       virtual DtLgrAnnotation* selectedAnnotation();
00098 
00100       QString filename() const;
00101 
00102       virtual void setFilename(const QString& filename , bool saved);
00103 
00105       virtual void fileOpened(const DtString& filename);
00106 
00108       virtual void fileClosed();
00109 
00111       virtual void fileSaved(const DtString& filename);
00112 
00114       bool queryUserOpenFile(QString& returnedName);
00115 
00117       bool queryUserOpenSpecificFile(const QString& filename);
00118 
00120       bool queryUserSaveAsFile(QString& returnedName);
00121 
00123       int queryUserCloseUnsavedFile();
00124 
00126       void unableToAllowChange();
00127 
00130       void releaseMenuBar();
00131 
00132 
00134       void connectToolbar();
00135 
00136    protected:
00137       DtLgrAnnotationSlots* mySlots;
00138       DtLgrAnnotationManager* myManager;
00139       DtLgrAnnotationBar* myAnnotationBar;
00140       DtLgrAnnotationComponent* myComponent;
00141       QMenuBar* myMenuBar;
00142       QLabel* myFileLabel;
00143       DtLgrAnnotationMenuBar* myAnnotationMenuBar;
00144       //QGridLayout* myLayout;
00145       QString myFilename;
00146       bool myFileSaved;
00147 
00148       // Toolbar actions
00149       QAction* myPrevAnn;
00150       QAction* myAnn; 
00151       QAction* myNextAnn;
00152    };
00153 }
00154 
00155 #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)