Files
ResInsight/Fwk/AppFwk/cafUserInterface/cafPdmUiTableRowEditor.h
T

66 lines
2.5 KiB
C++
Raw Normal View History

2012-06-26 16:10:41 +02:00
//##################################################################################################
//
// Custom Visualization Core library
2015-07-29 14:19:43 +02:00
// Copyright (C) 2014 Ceetron Solutions AS
//
// This library may be used under the terms of either the GNU General Public License or
// the GNU Lesser General Public License as follows:
//
// GNU General Public License Usage
// This library 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.
//
// This library 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>>
// for more details.
//
// GNU Lesser General Public License Usage
// This library is free software; you can redistribute it and/or modify
// it under the terms of the GNU Lesser General Public License as published by
// the Free Software Foundation; either version 2.1 of the License, or
// (at your option) any later version.
//
// This library 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 Lesser General Public License at <<http://www.gnu.org/licenses/lgpl-2.1.html>>
// for more details.
2012-06-26 16:10:41 +02:00
//
//##################################################################################################
2015-07-29 14:19:43 +02:00
#pragma once
2012-06-26 16:10:41 +02:00
#include "cafPdmUiEditorHandle.h"
2018-06-11 14:21:24 +02:00
#include <QPointer>
2012-06-26 16:10:41 +02:00
namespace caf
{
class PdmUiTableViewQModel;
2015-07-29 14:19:43 +02:00
class PdmObjectHandle;
2012-06-26 16:10:41 +02:00
//--------------------------------------------------------------------------------------------------
2015-07-29 14:19:43 +02:00
/// This class is used to update a row in the model when a field value changes
2012-06-26 16:10:41 +02:00
//--------------------------------------------------------------------------------------------------
2018-08-16 13:52:36 +02:00
class PdmUiTableRowEditor : public PdmUiEditorHandle
2012-06-26 16:10:41 +02:00
{
2015-07-29 14:19:43 +02:00
public:
2018-08-16 13:52:36 +02:00
PdmUiTableRowEditor(PdmUiTableViewQModel* model, caf::PdmObjectHandle* pdmObject, int row);
~PdmUiTableRowEditor() override;
2015-07-29 14:19:43 +02:00
2018-08-16 13:59:28 +02:00
protected:
2018-08-16 13:52:36 +02:00
void configureAndUpdateUi(const QString& uiConfigName) override;
2015-07-29 14:19:43 +02:00
private:
2018-08-16 13:52:36 +02:00
QPointer<PdmUiTableViewQModel> m_model;
int m_row;
2015-07-29 14:19:43 +02:00
};
} // End of namespace caf