MAK Data Logger API Documentation for DIS
lgrAnnotationView.h
Go to the documentation of this file.
1 /******************************************************************************
2 ** Copyright (c) 1992-2010 VT MAK
3 ** All rights reserved.
4 ******************************************************************************/
5 
9 
10 #ifndef lgrAnnotationView_H_
11 #define lgrAnnotationView_H_
12 
13 #include "lgrAnn.h"
14 
15 #include "lgrAnnotationBaseView.h"
16 #include <QtGui/QWidget>
17 
18 class QMenuBar;
19 class QGridLayout;
20 class QLabel;
21 class QPushButton;
22 
23 namespace MAKLogger
24 {
25  class DtLgrAnnotationBar;
26  class DtLgrAnnotationComponent;
27  class DtLgrAnnotationMenuBar;
28  class DtLgrAnnotationSlots;
29  class DtLgrAnnotationManager;
30  class DtLgrZoomableWidget;
31 
35  {
36  Q_OBJECT
37  public:
38 
41  DtLgrAnnotationManager* manager, QWidget* parent);
42 
44  virtual ~DtLgrAnnotationView();
45 
46  private:
50  DtLgrAnnotationView& operator=(const DtLgrAnnotationView&);
51 
52  public slots:
53 
55  virtual void enableView(bool);
56 
58 
59  void onPrevAnnotation();
60  void onAnnotate();
61  void onNextAnnotation();
63  public:
64 
65 
66  virtual void connectSlots(DtLgrAnnotationSlots*);
67 
68  virtual DtLgrZoomableWidget* zoomComponent();
69 
70 
71 
74  virtual void updateVisibility(bool);
75 
77  DtLgrAnnotationMenuBar* menu();
78 
80  const DtLgrAnnotationMenuBar* menu() const;
81 
83  DtLgrAnnotationSlots* annotationSlots();
84 
86  virtual void annotationAdded(DtLgrAnnotation* annotation);
87 
89  virtual void annotationRemoved(DtLgrAnnotation* annotation);
90 
92  virtual void annotationChanged(DtLgrAnnotation* annotation);
93 
95  virtual void selectAnnotation(DtLgrAnnotation* annotation);
96 
98  virtual DtLgrAnnotation* selectedAnnotation();
99 
101  QString filename() const;
102 
103  virtual void setFilename(const QString& filename , bool saved);
104 
106  virtual void fileOpened(const DtString& filename);
107 
109  virtual void fileClosed();
110 
112  virtual void fileSaved(const DtString& filename);
113 
115  bool queryUserOpenFile(QString& returnedName);
116 
118  bool queryUserOpenSpecificFile(const QString& filename);
119 
121  bool queryUserSaveAsFile(QString& returnedName);
122 
124  int queryUserCloseUnsavedFile();
125 
127  void unableToAllowChange();
128 
131  void releaseMenuBar();
132 
133 
135  void connectToolbar();
136 
137  protected:
142  QMenuBar* myMenuBar;
143  QLabel* myFileLabel;
145  //QGridLayout* myLayout;
146  QString myFilename;
148 
149  // Toolbar actions
150  QPushButton* myPrevAnn;
151  QPushButton* myAnn;
152  QPushButton* myNextAnn;
153  };
154 }
155 
156 #endif

Document ID: Generated on Mon Jan 19 08:20:14 EST 2015 from SVN revision 149581
Copyright © 2005-2012 VT MÄK. All Rights Reserved (www.mak.com)