update
This commit is contained in:
parent
357ed5642b
commit
5ca2632039
|
@ -5,6 +5,7 @@
|
||||||
#include "TranslateBasic.h"
|
#include "TranslateBasic.h"
|
||||||
|
|
||||||
using namespace extract;
|
using namespace extract;
|
||||||
|
using namespace unit_func;
|
||||||
|
|
||||||
IntDelegate::IntDelegate(int min, int max)
|
IntDelegate::IntDelegate(int min, int max)
|
||||||
: _min_value(min), _max_value(max) {
|
: _min_value(min), _max_value(max) {
|
||||||
|
|
|
@ -9,8 +9,7 @@
|
||||||
#include "TranslateBasic.h"
|
#include "TranslateBasic.h"
|
||||||
|
|
||||||
|
|
||||||
|
namespace unit_func {
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 整形修改代理
|
/// 整形修改代理
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
@ -51,6 +50,7 @@ public:
|
||||||
virtual void setModelData(QWidget* editor, QAbstractItemModel* model, const QModelIndex& index) const override;
|
virtual void setModelData(QWidget* editor, QAbstractItemModel* model, const QModelIndex& index) const override;
|
||||||
virtual void updateEditorGeometry(QWidget* editor, const QStyleOptionViewItem& option, const QModelIndex& index) const override;
|
virtual void updateEditorGeometry(QWidget* editor, const QStyleOptionViewItem& option, const QModelIndex& index) const override;
|
||||||
};
|
};
|
||||||
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 序列化规则视图
|
/// 序列化规则视图
|
||||||
|
|
|
@ -8,6 +8,10 @@
|
||||||
#include <QTabWidget>
|
#include <QTabWidget>
|
||||||
#include "TranslateBasic.h"
|
#include "TranslateBasic.h"
|
||||||
|
|
||||||
|
using namespace configuration_panel;
|
||||||
|
using namespace size_provider;
|
||||||
|
|
||||||
|
|
||||||
StructuralRuleView::StructuralRuleView(
|
StructuralRuleView::StructuralRuleView(
|
||||||
std::shared_ptr<TranslateBasic> base,
|
std::shared_ptr<TranslateBasic> base,
|
||||||
std::shared_ptr<extract::BytesAsRuleSet> inst_r, QWidget* p /*= nullptr*/)
|
std::shared_ptr<extract::BytesAsRuleSet> inst_r, QWidget* p /*= nullptr*/)
|
||||||
|
|
|
@ -9,6 +9,7 @@
|
||||||
#include <QCheckBox>
|
#include <QCheckBox>
|
||||||
#include "SequenceView.h"
|
#include "SequenceView.h"
|
||||||
|
|
||||||
|
namespace configuration_panel {
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// ¿Õ°×ÅäÖÃÃæ°å
|
/// ¿Õ°×ÅäÖÃÃæ°å
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
@ -112,6 +113,7 @@ public:
|
||||||
signals:
|
signals:
|
||||||
void currentRuleChanged(const QModelIndex& idx);
|
void currentRuleChanged(const QModelIndex& idx);
|
||||||
};
|
};
|
||||||
|
}
|
||||||
|
|
||||||
class StructuralRuleView : public QWidget
|
class StructuralRuleView : public QWidget
|
||||||
{
|
{
|
||||||
|
@ -126,6 +128,6 @@ public:
|
||||||
StructuralRuleView(std::shared_ptr<TranslateBasic> base,
|
StructuralRuleView(std::shared_ptr<TranslateBasic> base,
|
||||||
std::shared_ptr<extract::BytesAsRuleSet> inst_r, QWidget* p = nullptr);
|
std::shared_ptr<extract::BytesAsRuleSet> inst_r, QWidget* p = nullptr);
|
||||||
|
|
||||||
void cacheRefresh(const QModelIndex& curr, ListUnitConfiguration* t);
|
void cacheRefresh(const QModelIndex& curr, configuration_panel::ListUnitConfiguration* t);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
#include "TranslateBasic.h"
|
#include "TranslateBasic.h"
|
||||||
|
|
||||||
using namespace extract;
|
using namespace extract;
|
||||||
|
using namespace size_provider;
|
||||||
|
|
||||||
TranslateBasic::TranslateBasic()
|
TranslateBasic::TranslateBasic()
|
||||||
{
|
{
|
||||||
|
|
|
@ -131,6 +131,7 @@ public:
|
||||||
QHash<QString, std::shared_ptr<extract::BytesAsRuleSet>> customRules() const;
|
QHash<QString, std::shared_ptr<extract::BytesAsRuleSet>> customRules() const;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
namespace size_provider {
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 常量数字提供
|
/// 常量数字提供
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
@ -140,7 +141,6 @@ public:
|
||||||
QString _value_string;
|
QString _value_string;
|
||||||
} _number;
|
} _number;
|
||||||
|
|
||||||
|
|
||||||
public:
|
public:
|
||||||
QString name() const override;
|
QString name() const override;
|
||||||
|
|
||||||
|
@ -156,6 +156,7 @@ public:
|
||||||
std::shared_ptr<Serializable> newDefault() const override;
|
std::shared_ptr<Serializable> newDefault() const override;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 解释期数字提供器
|
/// 解释期数字提供器
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
@ -181,6 +182,7 @@ public:
|
||||||
|
|
||||||
std::shared_ptr<Serializable> newDefault() const override;
|
std::shared_ptr<Serializable> newDefault() const override;
|
||||||
};
|
};
|
||||||
|
}
|
||||||
|
|
||||||
class ValueAccess : public DataAccessContext,
|
class ValueAccess : public DataAccessContext,
|
||||||
std::enable_shared_from_this<ValueAccess> {
|
std::enable_shared_from_this<ValueAccess> {
|
||||||
|
|
Loading…
Reference in New Issue