Files
ResInsight/ApplicationLibCode/ProjectDataModel/RimScriptCollection.h
T

58 lines
1.7 KiB
C++
Raw Normal View History

2012-05-18 09:45:23 +02:00
/////////////////////////////////////////////////////////////////////////////////
//
2014-09-23 15:04:57 +02:00
// Copyright (C) 2011- Statoil ASA
// Copyright (C) 2013- Ceetron Solutions AS
// Copyright (C) 2011-2012 Ceetron AS
//
2012-05-18 09:45:23 +02:00
// ResInsight is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
2012-05-18 09:45:23 +02:00
// ResInsight is distributed in the hope that it will be useful, but WITHOUT ANY
// WARRANTY; without even the implied warranty of MERCHANTABILITY or
// FITNESS FOR A PARTICULAR PURPOSE.
//
// See the GNU General Public License at <http://www.gnu.org/licenses/gpl.html>
2012-05-18 09:45:23 +02:00
// for more details.
//
/////////////////////////////////////////////////////////////////////////////////
#pragma once
2015-07-31 18:58:23 +02:00
#include "cafPdmChildArrayField.h"
2012-05-18 09:45:23 +02:00
#include "cafPdmField.h"
#include "cafPdmObject.h"
2014-07-24 10:11:43 +02:00
class RimCalcScript;
2012-05-18 09:45:23 +02:00
2012-06-26 16:10:41 +02:00
namespace caf
{
class PdmUiEditorAttribute;
2012-06-26 16:10:41 +02:00
}
2012-05-18 09:45:23 +02:00
//==================================================================================================
///
///
2012-05-18 09:45:23 +02:00
//==================================================================================================
class RimScriptCollection : public caf::PdmObject
{
CAF_PDM_HEADER_INIT;
2012-05-18 09:45:23 +02:00
public:
RimScriptCollection();
~RimScriptCollection() override;
2012-05-18 09:45:23 +02:00
public:
caf::PdmField<QString> directory;
caf::PdmChildArrayField<RimCalcScript*> calcScripts;
2012-05-18 09:45:23 +02:00
2015-07-31 18:58:23 +02:00
caf::PdmChildArrayField<RimScriptCollection*> subDirectories;
2012-05-18 09:45:23 +02:00
public:
void readContentFromDisc( int folderLevelsLeft );
2012-05-18 09:45:23 +02:00
2012-06-26 16:10:41 +02:00
protected:
2023-02-26 10:48:40 +01:00
void defineEditorAttribute( const caf::PdmFieldHandle* field, QString uiConfigName, caf::PdmUiEditorAttribute* attribute ) override;
2012-05-18 09:45:23 +02:00
};