33 class QXmlStreamWriter;
36 class ControlDisplayProperties;
102 void save(QXmlStreamWriter &stream,
const Project *project,
FileName newProjectRoot)
const;
123 virtual bool startElement(
const QString &namespaceURI,
const QString &localName,
124 const QString &qName,
const QXmlAttributes &atts);
127 Q_DISABLE_COPY(XmlHandler);
131 FileName m_xmlHandlerCnetFolderName;
This represents an ISIS control net in a project-based GUI interface.
Definition: Control.h:79
The main project for ipce.
Definition: Project.h:289
void deleteFromDisk()
Delete the control net from disk.
Definition: Control.cpp:326
File name manipulation and expansion.
Definition: FileName.h:116
Control(QString cnetFileName, QObject *parent=0)
Create a Control from control net located on disk.
Definition: Control.cpp:27
void copyToNewProjectRoot(const Project *project, FileName newProjectRoot)
Copies the files of the given Project to the given location.
Definition: Control.cpp:286
Q_DECLARE_METATYPE(Isis::Control *)
void save(QXmlStreamWriter &stream, const Project *project, FileName newProjectRoot) const
Method to write this Control object's member data to an XML stream.
Definition: Control.cpp:365
void closeControlNet()
Cleans up the ControlNet pointer.
Definition: Control.cpp:206
This is the GUI communication mechanism for cubes.
Definition: ControlDisplayProperties.h:73
void openControlNet()
Sets the ControlNet from the control net file name provided in the constructor.
Definition: Control.cpp:157
bool isModified()
Has this control been modified?
Definition: Control.cpp:221
a control network
Definition: ControlNet.h:271
bool write()
Write control net to disk.
Definition: Control.cpp:183
~Control()
Destroys Control object.
Definition: Control.cpp:118
XML Handler that parses XMLs in a stack-oriented way.
Definition: XmlStackedHandler.h:112
void updateFileName(Project *)
Change the on-disk file name for this control to be where the control ought to be in the given projec...
Definition: Control.cpp:347
ControlNet * controlNet()
Open and return a pointer to the ControlNet for this Control.
Definition: Control.cpp:142
ControlNet * m_controlNet
A pointer to the ControlNet object associated with this Control object.
Definition: Control.h:82
ControlDisplayProperties * displayProperties()
Access a pointer to the display properties for the control network.
Definition: Control.cpp:244
void setModified(bool modified=true)
Sets the modification state of this control.
Definition: Control.cpp:233
Namespace for ISIS/Bullet specific routines.
Definition: Apollo.h:31
QString id() const
Access the unique ID associated with this Control.
Definition: Control.cpp:274
Manage a stack of content handlers for reading XML files.
Definition: XmlStackedHandlerReader.h:25
QString fileName() const
Access the name of the control network file associated with this Control.
Definition: Control.cpp:264