1 // Created on: 2017-06-16
2 // Created by: Natalia ERMOLAEVA
3 // Copyright (c) 2017 OPEN CASCADE SAS
5 // This file is part of Open CASCADE Technology software library.
7 // This library is free software; you can redistribute it and/or modify it under
8 // the terms of the GNU Lesser General Public License version 2.1 as published
9 // by the Free Software Foundation, with special exception defined in the file
10 // OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT
11 // distribution for complete text of the license and disclaimer of any warranty.
13 // Alternatively, this file may be used under the terms of Open CASCADE
14 // commercial license or contractual agreement.
16 #ifndef VInspector_ItemHistoryTypeInfo_H
17 #define VInspector_ItemHistoryTypeInfo_H
19 #include <inspector/VInspector_CallBackMode.hxx>
21 //! \class VInspector_ItemHistoryTypeInfo
22 //! History info for a type item. It contains container of information for the element
23 struct VInspector_ItemHistoryTypeInfo
27 VInspector_ItemHistoryTypeInfo() : myMode(VInspector_CallBackMode_None) {}
30 VInspector_ItemHistoryTypeInfo (const VInspector_CallBackMode& theMode, const QList<QVariant>& theInfo)
31 : myMode(theMode) { AddElement(theInfo); }
33 //! Append new element
34 //! \param theInfo an information element
35 void AddElement (const QList<QVariant>& theInfo) { myElements.append (theInfo); }
37 VInspector_CallBackMode myMode; //!< history element mode
38 QList<QList<QVariant>> myElements; //!< container of elements information