Commit 37b69776 authored by Alexander Semke's avatar Alexander Semke

Fixed email addresses, should fix many warning of Krazy.

parent 6e753c50
/***************************************************************************
File : AbstractColumn.cpp
Project : AbstractColumn
Project : LabPlot
Description : Interface definition for data with column logic
--------------------------------------------------------------------
Copyright : (C) 2007,2008 Tilman Benkert (thzs*gmx.net)
(replace * with @ in the email addresses)
Copyright : (C) 2007,2008 Tilman Benkert (thzs@gmx.net)
***************************************************************************/
......@@ -48,22 +47,22 @@
* \class AbstractColumn
* \brief Interface definition for data with column logic
*
* This is an abstract base class for column-based data,
* This is an abstract base class for column-based data,
* i.e. mathematically a vector or technically a 1D array or list.
* It only defines the interface but has no data members itself.
* It only defines the interface but has no data members itself.
*
* Classes derived from this are typically table columns or outputs
* of filters which can be chained between table columns and plots.
* From the point of view of the plot functions there will be no difference
* of filters which can be chained between table columns and plots.
* From the point of view of the plot functions there will be no difference
* between a table column and a filter output since both use this interface.
*
* Classes derived from this will either store a
* vector with entries of one certain data type, e.g. double, QString,
* Classes derived from this will either store a
* vector with entries of one certain data type, e.g. double, QString,
* QDateTime, or generate such values on demand. To determine the data
* type of a class derived from this, use the columnMode() function.
* AbstractColumn defines all access functions for all supported data
* types but only those corresponding to the return value of columnMode()
* will return a meaningful value. Calling functions not belonging to
* type of a class derived from this, use the columnMode() function.
* AbstractColumn defines all access functions for all supported data
* types but only those corresponding to the return value of columnMode()
* will return a meaningful value. Calling functions not belonging to
* the data type of the column is safe, but will do nothing (writing
* function) or return some default value (reading functions).
*
......@@ -71,14 +70,14 @@
* Any class whose output values are subject to change over time must emit
* the according signals. These signals notify any object working with the
* column before and after a change of the column.
* In some cases it will be necessary for a class using
* the column to connect aboutToBeDestroyed(), to react
* to a column's deletion, e.g. a filter's reaction to a
* In some cases it will be necessary for a class using
* the column to connect aboutToBeDestroyed(), to react
* to a column's deletion, e.g. a filter's reaction to a
* table deletion.
*
* All writing functions have a "do nothing" standard implementation to
* make deriving a read-only class very easy without bothering about the
* writing interface.
* writing interface.
*/
/**
......@@ -101,7 +100,7 @@ AbstractColumn::AbstractColumn(const QString &name) : AbstractAspect(name),
* \brief Return the column mode
*
* This function is most used by tables but can also be used
* by plots. The column mode specifies how to interpret
* by plots. The column mode specifies how to interpret
* the values in the column additional to the data type.
*/
......@@ -134,7 +133,7 @@ bool AbstractColumn::copy(const AbstractColumn *other) {
* \param source_start first row to copy in the column to copy
* \param destination_start first row to copy in
* \param num_rows the number of rows to copy
*/
*/
bool AbstractColumn::copy(const AbstractColumn *source, int source_start, int destination_start, int num_rows) {
Q_UNUSED(source)
Q_UNUSED(source_start)
......@@ -227,24 +226,24 @@ bool AbstractColumn::isValid(int row) const {
////////////////////////////////////////////////////////////////////////////////////////////////////
/**
* \brief Return whether a certain row is masked
* \brief Return whether a certain row is masked
*/
bool AbstractColumn::isMasked(int row) const {
return m_abstract_column_private->m_masking.isSet(row);
return m_abstract_column_private->m_masking.isSet(row);
}
/**
* \brief Return whether a certain interval of rows rows is fully masked
* \brief Return whether a certain interval of rows rows is fully masked
*/
bool AbstractColumn::isMasked(Interval<int> i) const {
return m_abstract_column_private->m_masking.isSet(i);
return m_abstract_column_private->m_masking.isSet(i);
}
/**
* \brief Return all intervals of masked rows
*/
QList< Interval<int> > AbstractColumn::maskedIntervals() const {
return m_abstract_column_private->m_masking.intervals();
return m_abstract_column_private->m_masking.intervals();
}
/**
......@@ -260,7 +259,7 @@ void AbstractColumn::clearMasks() {
*
* \param i the interval
* \param mask true: mask, false: unmask
*/
*/
void AbstractColumn::setMasked(Interval<int> i, bool mask) {
exec(new AbstractColumnSetMaskedCmd(m_abstract_column_private, i, mask),
"maskingAboutToChange", "maskingChanged", Q_ARG(const AbstractColumn*,this));
......@@ -351,11 +350,11 @@ QString AbstractColumn::textAt(int row) const {
* Use this only when columnMode() is Text
*/
void AbstractColumn::setTextAt(int row, const QString& new_value) {
Q_UNUSED(row) Q_UNUSED(new_value)
Q_UNUSED(row) Q_UNUSED(new_value)
}
/**
* \brief Replace a range of values
* \brief Replace a range of values
*
* Use this only when columnMode() is Text
*/
......@@ -421,7 +420,7 @@ void AbstractColumn::setDateTimeAt(int row, const QDateTime& new_value) {
};
/**
* \brief Replace a range of values
* \brief Replace a range of values
*
* Use this only when columnMode() is DateTime, Month or Day
*/
......@@ -449,7 +448,7 @@ void AbstractColumn::setValueAt(int row, double new_value) {
};
/**
* \brief Replace a range of values
* \brief Replace a range of values
*
* Use this only when columnMode() is Numeric
*/
......@@ -465,7 +464,7 @@ double AbstractColumn::minimum() const{
val = valueAt(row);
if (isnan(val))
continue;
if (val < min)
min = val;
}
......@@ -479,7 +478,7 @@ double AbstractColumn::maximum() const{
val = valueAt(row);
if (isnan(val))
continue;
if (val > max)
max = val;
}
......@@ -598,7 +597,7 @@ double AbstractColumn::maximum() const{
*
* \param source the object emitting this signal
*
* This is needed by AbstractFilter.
* This is needed by AbstractFilter.
*/
/**
......
/***************************************************************************
File : AbstractColumn.h
Project : AbstractColumn
Project : LabPlot
Description : Interface definition for data with column logic
--------------------------------------------------------------------
Copyright : (C) 2013 by Alexander Semke (alexander.semke*web.de)
Copyright : (C) 2007,2008 Tilman Benkert (thzs*gmx.net)
(replace * with @ in the email addresses)
Copyright : (C) 2013 by Alexander Semke (alexander.semke@web.de)
Copyright : (C) 2007,2008 Tilman Benkert (thzs@gmx.net)
***************************************************************************/
......@@ -66,7 +65,7 @@ class AbstractColumn : public AbstractAspect
DateTime = 6
// 2 and 3 are skipped to avoid problems with old obsolete values
};
class Private;
explicit AbstractColumn(const QString& name);
......@@ -118,19 +117,19 @@ class AbstractColumn : public AbstractAspect
virtual void setValueAt(int row, double new_value);
virtual void replaceValues(int first, const QVector<double>& new_values);
signals:
void plotDesignationAboutToChange(const AbstractColumn * source);
void plotDesignationChanged(const AbstractColumn * source);
void modeAboutToChange(const AbstractColumn * source);
void modeChanged(const AbstractColumn * source);
void dataAboutToChange(const AbstractColumn * source);
void dataChanged(const AbstractColumn * source);
void rowsAboutToBeInserted(const AbstractColumn * source, int before, int count);
void rowsInserted(const AbstractColumn * source, int before, int count);
void rowsAboutToBeRemoved(const AbstractColumn * source, int first, int count);
void rowsRemoved(const AbstractColumn * source, int first, int count);
void maskingAboutToChange(const AbstractColumn * source);
void maskingChanged(const AbstractColumn * source);
signals:
void plotDesignationAboutToChange(const AbstractColumn * source);
void plotDesignationChanged(const AbstractColumn * source);
void modeAboutToChange(const AbstractColumn * source);
void modeChanged(const AbstractColumn * source);
void dataAboutToChange(const AbstractColumn * source);
void dataChanged(const AbstractColumn * source);
void rowsAboutToBeInserted(const AbstractColumn * source, int before, int count);
void rowsInserted(const AbstractColumn * source, int before, int count);
void rowsAboutToBeRemoved(const AbstractColumn * source, int first, int count);
void rowsRemoved(const AbstractColumn * source, int first, int count);
void maskingAboutToChange(const AbstractColumn * source);
void maskingChanged(const AbstractColumn * source);
void aboutToBeDestroyed(const AbstractColumn * source);
protected:
......
/***************************************************************************
File : AbstractColumnPrivate.h
Project : SciDAVis/LabPlot
Project : LabPlot
Description : Private data class of AbstractColumn
--------------------------------------------------------------------
Copyright : (C) 2007-2009 Tilman Benkert (thzs*gmx.net),
Knut Franke (knut.franke*gmx.de)
(replace * with @ in the email addresses)
Copyright : (C) 2007-2009 Tilman Benkert (thzs@gmx.net),
Copyright : (C) 2007-2009 Knut Franke (knut.franke@gmx.de)
***************************************************************************/
......
/***************************************************************************
File : AbstractPart.cpp
Project : SciDAVis
Project : LabPlot
Description : Base class of Aspects with MDI windows as views.
--------------------------------------------------------------------
Copyright : (C) 2008 Knut Franke (knut.franke*gmx.de)
Copyright : (C) 2012 Alexander Semke (alexander.semke*web.de)
(replace * with @ in the email address)
Copyright : (C) 2008 Knut Franke (knut.franke@gmx.de)
Copyright : (C) 2012 Alexander Semke (alexander.semke@web.de)
***************************************************************************/
......@@ -93,7 +92,7 @@ void AbstractPart::deleteMdiSubWindow() {
}
/*!
* this function is called when PartMdiView, the mdi-subwindow-wrapper of the actual view,
* this function is called when PartMdiView, the mdi-subwindow-wrapper of the actual view,
* is closed (=deleted) in MainWindow. Makes sure that the view also gets deleted.
*/
//TODO: maybe this part needs to be redesigned. the view can be deleted in PartMdiView
......@@ -121,7 +120,7 @@ QMenu* AbstractPart::createContextMenu(){
#else
menu->addAction(i18n("Export"), this, SIGNAL(exportRequested()));
menu->addAction(i18n("Print"), this, SIGNAL(printRequested()));
menu->addAction(i18n("Print Preview"), this, SIGNAL(printPreviewRequested()));
menu->addAction(i18n("Print Preview"), this, SIGNAL(printPreviewRequested()));
#endif
menu->addSeparator();
......
/***************************************************************************
File : AbstractPart.h
Project : SciDAVis
Project : LabPlot
Description : Base class of Aspects with MDI windows as views.
--------------------------------------------------------------------
Copyright : (C) 2008 Knut Franke (knut.franke*gmx.de)
Copyright : (C) 2012-2013 Alexander Semke (alexander.semke*web.de)
(replace * with @ in the email address)
Copyright : (C) 2008 Knut Franke (knut.franke@gmx.de)
Copyright : (C) 2012-2013 Alexander Semke (alexander.semke@web.de)
***************************************************************************/
......@@ -41,14 +40,14 @@ class AbstractPart : public AbstractAspect {
public:
explicit AbstractPart(const QString &name);
virtual ~AbstractPart();
virtual QWidget* view() const = 0;
void deleteView() const;
PartMdiView* mdiSubWindow() const;
bool hasMdiSubWindow() const;
void deleteMdiSubWindow();
virtual QMenu* createContextMenu();
virtual bool fillProjectMenu(QMenu* menu);
......
......@@ -2,10 +2,9 @@
File : AbstractScript.cpp
Project : SciDAVis
--------------------------------------------------------------------
Copyright : (C) 2006 by Knut Franke
Email (use @ for *) : knut.franke*gmx.de
Copyright : (C) 2006 by Knut Franke (knut.franke@gmx.de)
Description : A chunk of scripting code.
***************************************************************************/
/***************************************************************************
......
/***************************************************************************
File : AspectPrivate.h
Project : SciDAVis
Project : LabPlot
--------------------------------------------------------------------
Copyright : (C) 2013 by Alexander Semke (alexander.semke*web.de)
Copyright : (C) 2007 by Knut Franke (knut.franke*gmx.de), Tilman Benkert (thzs*gmx.net)
(replace * with @ in the email addresses)
Copyright : (C) 2013 by Alexander Semke (alexander.semke@web.de)
Copyright : (C) 2007 by Knut Franke (knut.franke@gmx.de)
Copyright : (C) 2007 Tilman Benkert (thzs*gmx.net)
Description : Private data managed by AbstractAspect.
***************************************************************************/
......
/***************************************************************************
File : AspectTreeModel.h
Project : SciDAVis
Project : LabPlot
Description : Represents a tree of AbstractAspect objects as a Qt item model.
--------------------------------------------------------------------
Copyright : (C) 2007-2009 by Knut Franke (knut.franke@gmx.de)
Copyright : (C) 2007-2009 by Tilman Benkert (thzs@gmx.net)
Copyright : (C) 2011-2014 Alexander Semke (alexander.semke@web.de)
***************************************************************************/
/***************************************************************************
......
/***************************************************************************
File : AspectTreeModel.h
Project : SciDAVis
Description : Represents a tree of AbstractAspect objects as a
Qt item model.
File : AspectTreeModel.h
Project : LabPlot
Description : Represents a tree of AbstractAspect objects as a Qt item model.
--------------------------------------------------------------------
Copyright : (C) 2007-2009 by Knut Franke (knut.franke*gmx.de)
Copyright : (C) 2007-2009 by Tilman Benkert (thzs*gmx.net)
Copyright : (C) 2011 Alexander Semke (alexander.semke*web.de)
(replace * with @ in the email addresses)
Copyright : (C) 2007-2009 by Knut Franke (knut.franke@gmx.de)
Copyright : (C) 2007-2009 by Tilman Benkert (thzs@gmx.net)
Copyright : (C) 2011 Alexander Semke (alexander.semke@web.de)
***************************************************************************/
/***************************************************************************
......@@ -56,7 +55,7 @@ class AspectTreeModel : public QAbstractItemModel{
Qt::ItemFlags flags(const QModelIndex &index) const;
void setSelectableAspects(QList<const char*>);
QModelIndex modelIndexOfAspect(const AbstractAspect *aspect, int column=0) const;
void setFilterString(const QString&);
void setFilterCaseSensitivity(Qt::CaseSensitivity);
void setFilterMatchCompleteWord(bool);
......@@ -77,12 +76,12 @@ class AspectTreeModel : public QAbstractItemModel{
AbstractAspect* m_root;
bool m_folderSelectable;
QList<const char*> m_selectableAspects;
QString m_filterString;
Qt::CaseSensitivity m_filterCaseSensitivity;
bool m_matchCompleteWord;
bool containsFilterString(const AbstractAspect*) const;
signals:
void renameRequested(const QModelIndex&);
void indexSelected(const QModelIndex&);
......
......@@ -3,7 +3,7 @@
Project : LabPlot
Description : Represents a LabPlot project.
--------------------------------------------------------------------
Copyright : (C) 2011-2014 Alexander Semke (alexander.semke*web.de)
Copyright : (C) 2011-2014 Alexander Semke (alexander.semke@web.de)
Copyright : (C) 2007-2008 Tilman Benkert (thzs@gmx.net)
Copyright : (C) 2007 Knut Franke (knut.franke@gmx.de)
***************************************************************************/
......
/***************************************************************************
File : abstractcolumncommands.cpp
Project : SciDAVis/LabPlot
Project : LabPlot
Description : Commands to be called by AbstractColumn to modify AbstractColumn::Private
--------------------------------------------------------------------
Copyright : (C) 2007-2009 Tilman Benkert (thzs*gmx.net),
Knut Franke (knut.franke*gmx.de)
(C) 2010 by Knut Franke
(replace * with @ in the email addresses)
Copyright : (C) 2007-2009 Tilman Benkert (thzs@gmx.net)
Copyright : (C) 2010 Knut Franke (knut.franke@gmx.de)
***************************************************************************/
......
/***************************************************************************
File : abstractcolumncommands.h
Project : SciDAVis/LabPlot
Project : LabPlot
Description : Commands to be called by AbstractColumn to modify AbstractColumn::Private
--------------------------------------------------------------------
Copyright : (C) 2007-2009 Tilman Benkert (thzs*gmx.net),
Knut Franke (knut.franke*gmx.de)
(C) 2010 by Knut Franke
(replace * with @ in the email addresses)
Copyright : (C) 2007-2009 Tilman Benkert (thzs@gmx.net)
Copyright : (C) 2010 Knut Franke (knut.franke@gmx.de)
***************************************************************************/
......
/***************************************************************************
File : aspectcommands.h
Project : LabPlot/SciDAVis
Project : LabPlot
--------------------------------------------------------------------
Copyright : (C) 2007-2010 by Knut Franke (knut.franke*gmx.de),
Copyright : (C) 2007-2009 Tilman Benkert(thzs*gmx.net)
Copyright : (C) 2013 by Alexander Semke (alexander.semke*web.de)
(replace * with @ in the email addresses)
Copyright : (C) 2007-2010 by Knut Franke (knut.franke@gmx.de)
Copyright : (C) 2007-2009 Tilman Benkert(thzs@gmx.net)
Copyright : (C) 2013 by Alexander Semke (alexander.semke@web.de)
Description : Undo commands used by AbstractAspect.
Only meant to be used within AbstractAspect.cpp
......@@ -44,7 +43,7 @@ class AspectChildRemoveCmd : public QUndoCommand {
}
~AspectChildRemoveCmd() {
if (m_removed)
if (m_removed)
delete m_child;
}
......@@ -55,7 +54,7 @@ class AspectChildRemoveCmd : public QUndoCommand {
nextSibling = 0;
else
nextSibling = m_target->m_children.at(m_target->indexOfChild(m_child) + 1);
emit m_target->m_owner->aspectAboutToBeRemoved(m_child);
m_index = m_target->removeChild(m_child);
emit m_target->m_owner->aspectRemoved(m_target->m_owner, nextSibling, m_child);
......@@ -97,7 +96,7 @@ class AspectChildAddCmd : public AspectChildRemoveCmd {
class AspectChildReparentCmd : public QUndoCommand {
public:
AspectChildReparentCmd(AbstractAspect::Private * target, AbstractAspect::Private * new_parent,
AspectChildReparentCmd(AbstractAspect::Private * target, AbstractAspect::Private * new_parent,
AbstractAspect* child, int new_index)
: m_target(target), m_new_parent(new_parent), m_child(child), m_index(-1), m_new_index(new_index)
{
......@@ -106,16 +105,16 @@ class AspectChildReparentCmd : public QUndoCommand {
~AspectChildReparentCmd() {}
// calling redo transfers ownership of m_child to the new parent aspect
virtual void redo()
virtual void redo()
{
m_index = m_target->removeChild(m_child);
m_new_parent->insertChild(m_new_index, m_child);
}
// calling undo transfers ownership of m_child back to its previous parent aspect
virtual void undo()
virtual void undo()
{
Q_ASSERT(m_index != -1);
Q_ASSERT(m_index != -1);
m_new_parent->removeChild(m_child);
m_target->insertChild(m_index, m_child);
}
......
/***************************************************************************
File : Column.cpp
Project : AbstractColumn
Project : LabPlot
Description : Aspect that manages a column
--------------------------------------------------------------------
Copyright : (C) 2007-2009 Tilman Benkert (thzs*gmx.net)
Copyright : (C) 2013 by Alexander Semke (alexander.semke*web.de)
(replace * with @ in the email addresses)
Copyright : (C) 2007-2009 Tilman Benkert (thzs@gmx.net)
Copyright : (C) 2013 by Alexander Semke (alexander.semke@web.de)
***************************************************************************/
......
/***************************************************************************
File : Column.h
Project : AbstractColumn
Project : LabPlot
Description : Aspect that manages a column
--------------------------------------------------------------------
Copyright : (C) 2007-2009 Tilman Benkert (thzs*gmx.net)
Copyright : (C) 2013 by Alexander Semke (alexander.semke*web.de)
(replace * with @ in the email addresses)
Copyright : (C) 2007-2009 Tilman Benkert (thzs@gmx.net)
Copyright : (C) 2013 by Alexander Semke (alexander.semke@web.de)
***************************************************************************/
......
......@@ -4,7 +4,7 @@
Description : Commands to be called by Column to modify Column::Private
--------------------------------------------------------------------
Copyright : (C) 2007,2008 Tilman Benkert (thzs@gmx.net)
(C) 2010 by Knut Franke
(C) 2010 by Knut Franke (knut.franke@gmx.de)
(C) 2013-2014 by Alexander Semke (alexander.semke@web.de)
***************************************************************************/
......
/***************************************************************************
File : DateTime2DoubleFilter.h
Project : AbstractColumn
Project : LabPlot
--------------------------------------------------------------------
Copyright : (C) 2007 by Tilman Benkert,
Knut Franke
Email (use @ for *) : thzs*gmx.net, knut.franke*gmx.de
Copyright : (C) 2007 by Tilman Benkert (thzs@gmx.net)
Copyright : (C) 2007 by Knut Franke (knut.franke@gmx.de)
Description : Conversion filter QDateTime -> double (using Julian day).
***************************************************************************/
/***************************************************************************
......
/***************************************************************************
File : DateTime2StringFilter.cpp
Project : AbstractColumn
Project : LabPlot
--------------------------------------------------------------------
Copyright : (C) 2007 by Tilman Benkert,
Knut Franke
Email (use @ for *) : thzs*gmx.net, knut.franke*gmx.de
Copyright : (C) 2007 by Tilman Benkert (thzs@gmx.net)
Copyright : (C) 2007 by Knut Franke (knut.franke@gmx.de)
Description : Conversion filter QDateTime -> QString.
***************************************************************************/
/***************************************************************************
......@@ -49,8 +48,8 @@ class DateTime2StringFilterSetFormatCmd : public QUndoCommand
QString m_other_format;
};
void DateTime2StringFilter::setFormat(const QString& format)
{
void DateTime2StringFilter::setFormat(const QString& format)
{
exec(new DateTime2StringFilterSetFormatCmd(static_cast<DateTime2StringFilter*>(this), format));
}
......@@ -75,13 +74,13 @@ QString DateTime2StringFilter::textAt(int row) const {
}
bool DateTime2StringFilter::inputAcceptable(int, const AbstractColumn *source) {