File indexing completed on 2024-05-12 15:26:39
0001 /*************************************************************************** 0002 File : AspectPrivate.h 0003 Project : LabPlot 0004 Description : Private data managed by AbstractAspect. 0005 -------------------------------------------------------------------- 0006 Copyright : (C) 2013 by Alexander Semke (alexander.semke@web.de) 0007 Copyright : (C) 2007 by Knut Franke (knut.franke@gmx.de) 0008 Copyright : (C) 2007 Tilman Benkert (thzs@gmx.net) 0009 0010 ***************************************************************************/ 0011 0012 /*************************************************************************** 0013 * * 0014 * This program is free software; you can redistribute it and/or modify * 0015 * it under the terms of the GNU General Public License as published by * 0016 * the Free Software Foundation; either version 2 of the License, or * 0017 * (at your option) any later version. * 0018 * * 0019 * This program is distributed in the hope that it will be useful, * 0020 * but WITHOUT ANY WARRANTY; without even the implied warranty of * 0021 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * 0022 * GNU General Public License for more details. * 0023 * * 0024 * You should have received a copy of the GNU General Public License * 0025 * along with this program; if not, write to the Free Software * 0026 * Foundation, Inc., 51 Franklin Street, Fifth Floor, * 0027 * Boston, MA 02110-1301 USA * 0028 * * 0029 ***************************************************************************/ 0030 #ifndef ASPECT_PRIVATE_H 0031 #define ASPECT_PRIVATE_H 0032 0033 #include <QDateTime> 0034 #include <QList> 0035 0036 class AbstractAspect; 0037 0038 class AbstractAspectPrivate { 0039 public: 0040 explicit AbstractAspectPrivate(AbstractAspect* owner, const QString& name); 0041 ~AbstractAspectPrivate(); 0042 0043 void insertChild(int index, AbstractAspect*); 0044 int indexOfChild(const AbstractAspect*) const; 0045 int removeChild(AbstractAspect*); 0046 0047 public: 0048 QVector<AbstractAspect*> m_children; 0049 QString m_name; 0050 QString m_comment; 0051 QDateTime m_creation_time; 0052 bool m_hidden{false}; 0053 AbstractAspect* const q; 0054 AbstractAspect* m_parent{nullptr}; 0055 bool m_undoAware{true}; 0056 bool m_isLoading{false}; 0057 }; 0058 0059 #endif // ifndef ASPECT_PRIVATE_H