[DEV] update new property interface

This commit is contained in:
Edouard DUPIN 2016-03-02 21:51:44 +01:00
parent 499dfcffe6
commit badb11d80d
7 changed files with 21 additions and 30 deletions

View File

@ -115,10 +115,10 @@ appl::Buffer::Iterator appl::Buffer::selectStop() {
}
appl::Buffer::Buffer() :
signalIsModify(*this, "is-modify"),
signalIsSave(*this, "is-save"),
signalSelectChange(*this, "select-change"),
signalChangeName(*this, "change-name"),
signalIsModify(this, "is-modify", ""),
signalIsSave(this, "is-save", ""),
signalSelectChange(this, "select-change", ""),
signalChangeName(this, "change-name", ""),
m_hasFileName(false),
m_fileName(""),
m_isModify(false),

View File

@ -20,10 +20,10 @@
#define __class__ "BufferManager"
appl::BufferManager::BufferManager() :
signalNewBuffer(*this, "new-buffer"),
signalSelectFile(*this, "select-buffer"),
signalTextSelectionChange(*this, "text-selection-change"),
signalRemoveBuffer(*this, "remove-buffer") {
signalNewBuffer(this, "new-buffer", ""),
signalSelectFile(this, "select-buffer", ""),
signalTextSelectionChange(this, "text-selection-change", ""),
signalRemoveBuffer(this, "remove-buffer", "") {
addObjectType("appl::BufferManager");
}

View File

@ -13,9 +13,9 @@
#define __class__ "TagFileList"
appl::TagFileList::TagFileList() :
signalSelect(*this, "select"),
signalValidate(*this, "validate"),
signalUnSelect(*this, "unselect") {
signalSelect(this, "select", ""),
signalValidate(this, "validate", ""),
signalUnSelect(this, "unselect", "") {
addObjectType("appl::TagFileList");
m_selectedLine = -1;
setMouseLimit(1);

View File

@ -25,18 +25,9 @@
#undef __class__
#define __class__ "TagFileSelection"
static const char * const applEventctagsSelection = "appl-event-ctags-validate";
static const char * const applEventctagsCancel = "appl-event-ctags-cancel";
static const char * const applEventCtagsListValidate = "appl-event-ctags-list-validate";
static const char * const applEventCtagsListSelect = "appl-event-ctags-list-selected";
static const char * const applEventCtagsListUnSelect = "appl-event-ctags-list-un-selected";
appl::TagFileSelection::TagFileSelection() :
signalSelect(*this, "select"),
signalCancel(*this, "cancel") {
signalSelect(this, "select", ""),
signalCancel(this, "cancel", "") {
addObjectType("appl::TagFileSelection");
}

View File

@ -15,8 +15,8 @@
#define __class__ "WorkerCloseFile"
appl::WorkerCloseFile::WorkerCloseFile() :
signalCloseDone(*this, "close-file-done"),
signalAbort(*this, "close-file-abort"),
signalCloseDone(this, "close-file-done", ""),
signalAbort(this, "close-file-abort", ""),
m_buffer(nullptr),
m_worker(nullptr),
m_bufferManager(nullptr) {

View File

@ -15,8 +15,8 @@
appl::WorkerSaveFile::WorkerSaveFile() :
signalSaveDone(*this, "save-file-done"),
signalAbort(*this, "save-file-abort") {
signalSaveDone(this, "save-file-done", ""),
signalAbort(this, "save-file-abort", "") {
addObjectType("appl::WorkerSaveFile");
// load buffer manager:
m_bufferManager = appl::BufferManager::create();

View File

@ -24,10 +24,10 @@ class myParamGlobal : public ewol::Object {
eproperty::Value<bool> m_displaySpaceChar;
public :
myParamGlobal() :
m_displayEOL(*this, "eol", false, "Display end of line character"),
m_AutoIndent(*this, "auto-indent", true, "Auto indent when create new line"),
m_displayTabChar(*this, "display-tab", true, "Display the Tab char"),
m_displaySpaceChar(*this, "display-space", true, "Display the space char") {
m_displayEOL(this, "eol", false, "Display end of line character"),
m_AutoIndent(this, "auto-indent", true, "Auto indent when create new line"),
m_displayTabChar(this, "display-tab", true, "Display the Tab char"),
m_displaySpaceChar(this, "display-space", true, "Display the space char") {
m_static = true; // Note : set the object static notification( Must be set or assert at the end of process)
propertyName.set("edn_global_param");
}