9#include "TargetBodyList.h"
16#include <QInputDialog>
18#include <QProgressDialog>
19#include <QtConcurrentMap>
20#include <QXmlStreamWriter>
23#include "IException.h"
26#include "TargetBody.h"
107 emit countChanged(count());
120 emit countChanged(count());
130 bool countChanging = count();
133 emit countChanged(count());
147 emit countChanged(count());
166 emit countChanged(count());
182 emit countChanged(count());
199 emit countChanged(count());
213 emit countChanged(count());
226 emit countChanged(count());
239 emit countChanged(count());
256 emit countChanged(count());
272 emit countChanged(count());
283 emit countChanged(count());
294 emit countChanged(count());
311 emit countChanged(count());
328 if (count() != other.count()) {
329 emit countChanged(count());
345 emit countChanged(count());
359 emit countChanged(count());
373 emit countChanged(count());
391 emit countChanged(count());
409 emit countChanged(count());
427 emit countChanged(count());
445 emit countChanged(count());
460 bool countChanging = (rhs.count() != count());
464 emit countChanged(count());
479 bool countChanging = (rhs.count() != count());
486 emit countChanged(count());
File name manipulation and expansion.
The main project for ipce.
List for holding TargetBodies.
TargetBodyList & operator<<(const QList< TargetBodyQsp > &other)
Appends another TargetBodyList to the list.
QString m_name
This functor is used for copying the TargetBody objects between two projects quickly.
TargetBodyList & operator=(const QList< TargetBodyQsp > &rhs)
Assignment operator for a QList of TargetBodyQsp.
void setPath(QString newPath)
Set the relative path (from the project root) to this target body list's folder.
void removeLast()
Removes the last TargetBody from the list.
void save(QXmlStreamWriter &stream, const Project *project, FileName newProjectRoot) const
Delete all of the contained TargetBody objects from disk (see TargetBody::deleteFromDisk())
iterator erase(iterator pos)
Erases the TargetBody associated with an iterator.
QString path() const
Get the path to these target body objects in the list (relative to project root).
void swap(QList< TargetBodyQsp > &other)
Swaps the list with another TargetBodyList.
TargetBodyQsp takeLast()
Removes and returns the last TargetBody in the list.
void insert(int i, TargetBodyQsp const &value)
Inserts a TargetBody at a specific index.
void append(TargetBodyQsp const &value)
Appends a TargetBody to the list.
bool removeOne(TargetBodyQsp const &value)
Removes the first occurrence of a TargetBody from the list.
void push_front(TargetBodyQsp const &value)
Insertes a TargetBody at the front of the list.
TargetBodyList & operator+=(const QList< TargetBodyQsp > &other)
Appends another TargetBodyList to the list.
TargetBodyList(QString name, QString path, QObject *parent=NULL)
Create an target body list from an target body list name and path (does not read TargetBody objects).
QString name() const
Get the human-readable name of this target body list.
void removeFirst()
Removes the first TargetBody from the list.
int removeAll(TargetBodyQsp const &value)
Removes all occurrences of a TargetBody and returns the number removed.
void prepend(TargetBodyQsp const &value)
Inserts a TargetBody at the front of the list.
void push_back(TargetBodyQsp const &value)
Appends a TargetBody to the end of the list.
TargetBodyQsp takeFirst()
Removes and returns the first TargetBody in the list.
QString m_path
This stores the directory name that contains the TargetBody objects in this list.
~TargetBodyList()
Create an target body list from a list of target body file names.
void setName(QString newName)
Gets a list of pre-connected actions that have to do with display, such as color, alpha,...
void removeAt(int i)
Removes the TargetBody at a specific index.
void clear()
clears the list.
TargetBodyQsp takeAt(int i)
Removes and returns the TargetBody at a specific index.
This is free and unencumbered software released into the public domain.
This is free and unencumbered software released into the public domain.