Isis 3 Programmer Reference
QnetFileTool.h
1 #ifndef QnetFileTool_h
2 #define QnetFileTool_h
3 
10 /* SPDX-License-Identifier: CC0-1.0 */
11 
12 #include "FileTool.h"
13 #include <QCloseEvent>
14 
15 class QString;
16 class QWidget;
17 
18 namespace Isis {
19  class ControlNet;
20  class ControlPoint;
21  class QnetTool;
22  class SerialNumberList;
23 
79  class QnetFileTool : public FileTool {
80  Q_OBJECT
81 
82  public:
83  QnetFileTool(QnetTool *qnetTool, QWidget *parent);
84  ~QnetFileTool();
85 
86  virtual void addTo(QMenu *menu);
87 
88  ControlNet *controlNet();
89  SerialNumberList *serialNumberList();
90 
91  signals:
92  void serialNumberListUpdated();
93  void controlNetworkUpdated(QString cNetName);
94  void newControlNetwork(ControlNet *);
95  void newGroundFile();
96  void newDemFile();
97 
98  public slots:
99  virtual void open();
100  virtual void exit(QCloseEvent *event = NULL);
101  virtual void save();
102  virtual void saveAs();
103  void loadPointImages(ControlPoint *point);
104  void loadImage(const QString &serialNumber);
105  void setDirty();
106 
107  private:
108  QString m_cnetFileName;
109  bool m_isDirty;
110  QAction *m_openGround;
111  QAction *m_openDem;
112  QnetTool *m_qnetTool;
113  };
114 };
115 
116 #endif
Isis::QnetFileTool::saveAs
virtual void saveAs()
Save control network with given file.
Definition: QnetFileTool.cpp:281
QWidget
QMenu
Isis::QnetFileTool::save
virtual void save()
Save control network with given file.
Definition: QnetFileTool.cpp:265
Isis::SerialNumberList
Serial Number list generator.
Definition: SerialNumberList.h:64
Isis::QnetFileTool::loadPointImages
void loadPointImages(ControlPoint *point)
Load images for the given point.
Definition: QnetFileTool.cpp:359
Isis::ControlPoint
A single control point.
Definition: ControlPoint.h:354
Isis::QnetTool
Qnet tool operations.
Definition: QnetTool.h:256
Isis::ControlNet
a control network
Definition: ControlNet.h:257
Isis::QnetFileTool::open
virtual void open()
Open a list of cubes.
Definition: QnetFileTool.cpp:118
Isis::FileTool::exit
virtual void exit()
Exit the program, this slot called when the exit is chosen from the File menu.
Definition: FileTool.cpp:972
Isis::QnetFileTool::addTo
virtual void addTo(QMenu *menu)
Adds the file tool's actions to the menu.
Definition: QnetFileTool.cpp:78
Isis::FileTool
Definition: FileTool.h:59
Isis::QnetFileTool::setDirty
void setDirty()
Sets save net flag to true.
Definition: QnetFileTool.cpp:369
Isis::QnetFileTool::QnetFileTool
QnetFileTool(QnetTool *qnetTool, QWidget *parent)
Constructor.
Definition: QnetFileTool.cpp:33
Isis::QnetFileTool::loadImage
void loadImage(const QString &serialNumber)
Load given cube in Workspace.
Definition: QnetFileTool.cpp:329
QAction
Isis
This is free and unencumbered software released into the public domain.
Definition: Apollo.h:16
Isis::QnetFileTool
Qnet File operations.
Definition: QnetFileTool.h:79