|
Isis Developer Reference
|
Go to the documentation of this file.
20 class QXmlStreamWriter;
23 class ControlDisplayProperties;
110 virtual bool startElement(
const QString &namespaceURI,
const QString &localName,
111 const QString &qName,
const QXmlAttributes &atts);
114 Q_DISABLE_COPY(XmlHandler);
118 FileName m_xmlHandlerCnetFolderName;
@ Io
A type of error that occurred when performing an actual I/O operation.
Definition: IException.h:155
Control(QString cnetFileName, QObject *parent=0)
Create a Control from control net located on disk.
Definition: Control.cpp:35
Q_DECLARE_METATYPE(Isis::Control *)
void SetMutex(QMutex *mutex)
Set mutex to lock for making Naif calls.
Definition: ControlNet.cpp:1666
QMutex * mutex()
Return mutex used for Naif calls.
Definition: Project.cpp:1658
void deleteFromDisk()
Delete the control net from disk.
Definition: Control.cpp:334
QString name() const
Returns the name of the file excluding the path and the attributes in the file name.
Definition: FileName.cpp:162
File name manipulation and expansion.
Definition: FileName.h:100
virtual void pushContentHandler(XmlStackedHandler *newHandler)
Push a contentHandler and maybe continue parsing...
Definition: XmlStackedHandlerReader.cpp:55
void Write(const QString &filename, bool pvl=false)
Writes out the control network.
Definition: ControlNet.cpp:311
virtual bool startElement(const QString &namespaceURI, const QString &localName, const QString &qName, const QXmlAttributes &atts)
Definition: XmlStackedHandler.cpp:44
static QString cnetRoot(QString projectRoot)
Appends the root directory name 'cnets' to the project.
Definition: Project.cpp:2019
This is the GUI communication mechanism for cubes.
Definition: ControlDisplayProperties.h:59
This represents an ISIS control net in a project-based GUI interface.
Definition: Control.h:66
void copyToNewProjectRoot(const Project *project, FileName newProjectRoot)
Copies the files of the given Project to the given location.
Definition: Control.cpp:294
QString toString(bool boolToConvert)
Global function to convert a boolean to a string.
Definition: IString.cpp:211
Manage a stack of content handlers for reading XML files.
Definition: XmlStackedHandlerReader.h:30
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:373
bool isModified()
@description Has this control been modified?
Definition: Control.cpp:229
~Control()
Destroys Control object.
Definition: Control.cpp:126
The main project for ipce.
Definition: Project.h:289
void closeControlNet()
Cleans up the ControlNet pointer.
Definition: Control.cpp:214
bool write()
@description Write control net to disk.
Definition: Control.cpp:191
QString expanded() const
Returns a QString of the full file name including the file path, excluding the attributes.
Definition: FileName.cpp:196
ControlNet * controlNet()
Open and return a pointer to the ControlNet for this Control.
Definition: Control.cpp:150
#define _FILEINFO_
Macro for the filename and line number.
Definition: IException.h:24
QDir dir() const
Returns the path of the file's parent directory as a QDir object.
Definition: FileName.cpp:465
void openControlNet()
Sets the ControlNet from the control net file name provided in the constructor.
Definition: Control.cpp:165
void setModified(bool modified=true)
@description Sets the modification state of this control.
Definition: Control.cpp:241
a control network
Definition: ControlNet.h:257
Isis exception class.
Definition: IException.h:91
QString toString() const
Returns a QString of the full file name including the file path, excluding the attributes with any Is...
Definition: FileName.cpp:515
QString projectRoot() const
Get the top-level folder of the project.
Definition: Project.cpp:1666
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:355
ControlNet * m_controlNet
A pointer to the ControlNet object associated with this Control object.
Definition: Control.h:69
@ Programmer
This error is for when a programmer made an API call that was illegal.
Definition: IException.h:146
XML Handler that parses XMLs in a stack-oriented way.
Definition: XmlStackedHandler.h:118
ControlDisplayProperties * displayProperties()
Access a pointer to the display properties for the control network.
Definition: Control.cpp:252
void save(QXmlStreamWriter &stream, const Project *project, FileName newProjectRoot) const
Definition: ControlDisplayProperties.cpp:121
QString id() const
Access the unique ID associated with this Control.
Definition: Control.cpp:282
This is free and unencumbered software released into the public domain.
Definition: Apollo.h:16
QString fileName() const
Access the name of the control network file associated with this Control.
Definition: Control.cpp:272