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