Isis 3 Programmer Reference
QnetFileTool.h
Go to the documentation of this file.
1 #ifndef QnetFileTool_h
2 #define QnetFileTool_h
3 
26 #include "FileTool.h"
27 #include <QCloseEvent>
28 
29 class QString;
30 class QWidget;
31 
32 namespace Isis {
33  class ControlNet;
34  class ControlPoint;
35  class QnetTool;
36  class SerialNumberList;
37 
93  class QnetFileTool : public FileTool {
94  Q_OBJECT
95 
96  public:
97  QnetFileTool(QnetTool *qnetTool, QWidget *parent);
98  ~QnetFileTool();
99 
100  virtual void addTo(QMenu *menu);
101 
102  ControlNet *controlNet();
103  SerialNumberList *serialNumberList();
104 
105  signals:
106  void serialNumberListUpdated();
107  void controlNetworkUpdated(QString cNetName);
108  void newControlNetwork(ControlNet *);
109  void newGroundFile();
110  void newDemFile();
111 
112  public slots:
113  virtual void open();
114  virtual void exit(QCloseEvent *event = NULL);
115  virtual void save();
116  virtual void saveAs();
117  void loadPointImages(ControlPoint *point);
118  void loadImage(const QString &serialNumber);
119  void setDirty();
120 
121  private:
122  QString m_cnetFileName;
123  bool m_isDirty;
124  QAction *m_openGround;
125  QAction *m_openDem;
126  QnetTool *m_qnetTool;
127  };
128 };
129 
130 #endif
virtual void addTo(QMenu *menu)
Adds the file tool&#39;s actions to the menu.
void loadImage(const QString &serialNumber)
Load given cube in Workspace.
QnetFileTool(QnetTool *qnetTool, QWidget *parent)
Constructor.
a control network
Definition: ControlNet.h:271
void setDirty()
Sets save net flag to true.
A single control point.
Definition: ControlPoint.h:369
virtual void exit()
Exit the program, this slot called when the exit is chosen from the File menu.
Definition: FileTool.cpp:973
void loadPointImages(ControlPoint *point)
Load images for the given point.
virtual void saveAs()
Save control network with given file.
Namespace for ISIS/Bullet specific routines.
Definition: Apollo.h:31
virtual void save()
Save control network with given file.
Qnet tool operations.
Definition: QnetTool.h:256
Serial Number list generator.
virtual void open()
Open a list of cubes.
Qnet File operations.
Definition: QnetFileTool.h:93