mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
AppFwk : Rename to cafPdmuiTableRowEditor
This commit is contained in:
parent
e862ef873a
commit
ddf9a6a2d8
@ -100,8 +100,8 @@ set( PROJECT_FILES
|
||||
cafPdmUiListView.h
|
||||
cafPdmUiListViewEditor.cpp
|
||||
cafPdmUiListViewEditor.h
|
||||
cafPdmUiTableItemEditor.cpp
|
||||
cafPdmUiTableItemEditor.h
|
||||
cafPdmUiTableRowEditor.cpp
|
||||
cafPdmUiTableRowEditor.h
|
||||
cafPdmUiTableView.cpp
|
||||
cafPdmUiTableView.h
|
||||
cafPdmUiTableViewDelegate.cpp
|
||||
|
@ -35,7 +35,7 @@
|
||||
//##################################################################################################
|
||||
|
||||
|
||||
#include "cafPdmUiTableItemEditor.h"
|
||||
#include "cafPdmUiTableRowEditor.h"
|
||||
|
||||
#include "cafPdmField.h"
|
||||
#include "cafPdmObject.h"
|
||||
@ -50,7 +50,7 @@ namespace caf
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
PdmUiTableItemEditor::PdmUiTableItemEditor(PdmUiTableViewQModel* model, caf::PdmObjectHandle* pdmObject, int row)
|
||||
PdmUiTableRowEditor::PdmUiTableRowEditor(PdmUiTableViewQModel* model, caf::PdmObjectHandle* pdmObject, int row)
|
||||
{
|
||||
m_model = model;
|
||||
m_row = row;
|
||||
@ -62,14 +62,14 @@ PdmUiTableItemEditor::PdmUiTableItemEditor(PdmUiTableViewQModel* model, caf::Pdm
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
PdmUiTableItemEditor::~PdmUiTableItemEditor()
|
||||
PdmUiTableRowEditor::~PdmUiTableRowEditor()
|
||||
{
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
void PdmUiTableItemEditor::configureAndUpdateUi(const QString& uiConfigName)
|
||||
void PdmUiTableRowEditor::configureAndUpdateUi(const QString& uiConfigName)
|
||||
{
|
||||
caf::PdmUiObjectHandle* uiObject = dynamic_cast<caf::PdmUiObjectHandle*>(this->pdmItem());
|
||||
if (uiObject)
|
@ -45,24 +45,21 @@ namespace caf
|
||||
class PdmUiTableViewQModel;
|
||||
class PdmObjectHandle;
|
||||
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
/// This class is used to update a row in the model when a field value changes
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
class PdmUiTableItemEditor : public PdmUiEditorHandle
|
||||
class PdmUiTableRowEditor : public PdmUiEditorHandle
|
||||
{
|
||||
public:
|
||||
PdmUiTableItemEditor(PdmUiTableViewQModel* model, caf::PdmObjectHandle* pdmObject, int row);
|
||||
virtual ~PdmUiTableItemEditor();
|
||||
PdmUiTableRowEditor(PdmUiTableViewQModel* model, caf::PdmObjectHandle* pdmObject, int row);
|
||||
virtual ~PdmUiTableRowEditor();
|
||||
|
||||
protected: // Interface to override:
|
||||
virtual void configureAndUpdateUi(const QString& uiConfigName);
|
||||
void configureAndUpdateUi(const QString& uiConfigName) override;
|
||||
|
||||
private:
|
||||
QPointer<PdmUiTableViewQModel> m_model;
|
||||
int m_row;
|
||||
QPointer<PdmUiTableViewQModel> m_model;
|
||||
int m_row;
|
||||
};
|
||||
|
||||
|
||||
|
||||
} // End of namespace caf
|
@ -45,7 +45,7 @@
|
||||
#include "cafPdmUiDateEditor.h"
|
||||
#include "cafPdmUiFieldEditorHelper.h"
|
||||
#include "cafPdmUiLineEditor.h"
|
||||
#include "cafPdmUiTableItemEditor.h"
|
||||
#include "cafPdmUiTableRowEditor.h"
|
||||
#include "cafPdmUiTableView.h"
|
||||
#include "cafSelectionManager.h"
|
||||
|
||||
@ -561,7 +561,7 @@ void PdmUiTableViewQModel::recreateTableItemEditors()
|
||||
for (size_t i = 0; i < childArrayField->size(); i++)
|
||||
{
|
||||
PdmObjectHandle* pdmObject = childArrayField->at(i);
|
||||
m_tableRowEditors.push_back(new PdmUiTableItemEditor(this, pdmObject, static_cast<int>(i)));
|
||||
m_tableRowEditors.push_back(new PdmUiTableRowEditor(this, pdmObject, static_cast<int>(i)));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -52,7 +52,7 @@ class PdmChildArrayFieldHandle;
|
||||
class PdmObjectHandle;
|
||||
class PdmUiFieldEditorHandle;
|
||||
class PdmUiItem;
|
||||
class PdmUiTableItemEditor;
|
||||
class PdmUiTableRowEditor;
|
||||
class PdmUiTreeOrdering;
|
||||
class PdmUiTreeViewEditor;
|
||||
|
||||
@ -124,7 +124,7 @@ private:
|
||||
std::map<QString, PdmUiFieldEditorHandle*> m_fieldEditors;
|
||||
std::vector<int> m_modelColumnIndexToFieldIndex;
|
||||
|
||||
std::vector<PdmUiTableItemEditor*> m_tableRowEditors;
|
||||
std::vector<PdmUiTableRowEditor*> m_tableRowEditors;
|
||||
|
||||
PdmUiTableViewPushButtonEditorAttribute m_pushButtonEditorAttributes;
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user