[aseprite] 70/250: Rename ui::Entry::EntryChange to ui::Entry::Change

Tobias Hansen thansen at moszumanska.debian.org
Sun Dec 20 15:27:13 UTC 2015


This is an automated email from the git hooks/post-receive script.

thansen pushed a commit to branch master
in repository aseprite.

commit a06e01ff7ea691e28bb4dd28c9dd03f83f97b03f
Author: David Capello <davidcapello at gmail.com>
Date:   Tue Sep 22 16:22:47 2015 -0300

    Rename ui::Entry::EntryChange to ui::Entry::Change
---
 src/app/commands/cmd_canvas_size.cpp         | 12 ++++++------
 src/app/commands/cmd_export_sprite_sheet.cpp |  8 ++++----
 src/app/commands/cmd_import_sprite_sheet.cpp |  8 ++++----
 src/app/commands/cmd_layer_properties.cpp    |  2 +-
 src/app/commands/cmd_sprite_size.cpp         |  8 ++++----
 src/app/commands/filters/cmd_despeckle.cpp   |  4 ++--
 src/app/ui/color_sliders.cpp                 |  2 +-
 src/app/ui/file_selector.cpp                 |  2 +-
 src/app/ui/hex_color_entry.cpp               |  2 +-
 src/ui/entry.cpp                             |  6 +++---
 src/ui/entry.h                               |  4 ++--
 src/ui/int_entry.cpp                         |  4 ++--
 src/ui/int_entry.h                           |  2 +-
 13 files changed, 32 insertions(+), 32 deletions(-)

diff --git a/src/app/commands/cmd_canvas_size.cpp b/src/app/commands/cmd_canvas_size.cpp
index 7a22cb6..ee4bac6 100644
--- a/src/app/commands/cmd_canvas_size.cpp
+++ b/src/app/commands/cmd_canvas_size.cpp
@@ -61,13 +61,13 @@ public:
     setTop(0);
     setBottom(0);
 
-    width() ->EntryChange.connect(Bind<void>(&CanvasSizeWindow::onSizeChange, this));
-    height()->EntryChange.connect(Bind<void>(&CanvasSizeWindow::onSizeChange, this));
+    width() ->Change.connect(Bind<void>(&CanvasSizeWindow::onSizeChange, this));
+    height()->Change.connect(Bind<void>(&CanvasSizeWindow::onSizeChange, this));
     dir()   ->ItemChange.connect(Bind<void>(&CanvasSizeWindow::onDirChange, this));;
-    left()  ->EntryChange.connect(Bind<void>(&CanvasSizeWindow::onBorderChange, this));
-    right() ->EntryChange.connect(Bind<void>(&CanvasSizeWindow::onBorderChange, this));
-    top()   ->EntryChange.connect(Bind<void>(&CanvasSizeWindow::onBorderChange, this));
-    bottom()->EntryChange.connect(Bind<void>(&CanvasSizeWindow::onBorderChange, this));
+    left()  ->Change.connect(Bind<void>(&CanvasSizeWindow::onBorderChange, this));
+    right() ->Change.connect(Bind<void>(&CanvasSizeWindow::onBorderChange, this));
+    top()   ->Change.connect(Bind<void>(&CanvasSizeWindow::onBorderChange, this));
+    bottom()->Change.connect(Bind<void>(&CanvasSizeWindow::onBorderChange, this));
 
     m_editor->setState(m_selectBoxState);
 
diff --git a/src/app/commands/cmd_export_sprite_sheet.cpp b/src/app/commands/cmd_export_sprite_sheet.cpp
index e9e3417..79223eb 100644
--- a/src/app/commands/cmd_export_sprite_sheet.cpp
+++ b/src/app/commands/cmd_export_sprite_sheet.cpp
@@ -355,13 +355,13 @@ public:
 
     exportButton()->Click.connect(Bind<void>(&ExportSpriteSheetWindow::onExport, this));
     sheetType()->Change.connect(&ExportSpriteSheetWindow::onSheetTypeChange, this);
-    columns()->EntryChange.connect(Bind<void>(&ExportSpriteSheetWindow::onColumnsChange, this));
+    columns()->Change.connect(Bind<void>(&ExportSpriteSheetWindow::onColumnsChange, this));
     fitWidth()->Change.connect(Bind<void>(&ExportSpriteSheetWindow::onSizeChange, this));
     fitHeight()->Change.connect(Bind<void>(&ExportSpriteSheetWindow::onSizeChange, this));
     bestFit()->Click.connect(Bind<void>(&ExportSpriteSheetWindow::onBestFit, this));
-    borderPadding()->EntryChange.connect(Bind<void>(&ExportSpriteSheetWindow::onPaddingChange, this));
-    shapePadding()->EntryChange.connect(Bind<void>(&ExportSpriteSheetWindow::onPaddingChange, this));
-    innerPadding()->EntryChange.connect(Bind<void>(&ExportSpriteSheetWindow::onPaddingChange, this));
+    borderPadding()->Change.connect(Bind<void>(&ExportSpriteSheetWindow::onPaddingChange, this));
+    shapePadding()->Change.connect(Bind<void>(&ExportSpriteSheetWindow::onPaddingChange, this));
+    innerPadding()->Change.connect(Bind<void>(&ExportSpriteSheetWindow::onPaddingChange, this));
     imageFilename()->Click.connect(Bind<void>(&ExportSpriteSheetWindow::onImageFilename, this));
     dataEnabled()->Click.connect(Bind<void>(&ExportSpriteSheetWindow::onDataEnabledChange, this));
     dataFilename()->Click.connect(Bind<void>(&ExportSpriteSheetWindow::onDataFilename, this));
diff --git a/src/app/commands/cmd_import_sprite_sheet.cpp b/src/app/commands/cmd_import_sprite_sheet.cpp
index beba77d..2c6ece3 100644
--- a/src/app/commands/cmd_import_sprite_sheet.cpp
+++ b/src/app/commands/cmd_import_sprite_sheet.cpp
@@ -54,10 +54,10 @@ public:
     , m_docPref(nullptr) {
     import()->setEnabled(false);
 
-    x()->EntryChange.connect(Bind<void>(&ImportSpriteSheetWindow::onEntriesChange, this));
-    y()->EntryChange.connect(Bind<void>(&ImportSpriteSheetWindow::onEntriesChange, this));
-    width()->EntryChange.connect(Bind<void>(&ImportSpriteSheetWindow::onEntriesChange, this));
-    height()->EntryChange.connect(Bind<void>(&ImportSpriteSheetWindow::onEntriesChange, this));
+    x()->Change.connect(Bind<void>(&ImportSpriteSheetWindow::onEntriesChange, this));
+    y()->Change.connect(Bind<void>(&ImportSpriteSheetWindow::onEntriesChange, this));
+    width()->Change.connect(Bind<void>(&ImportSpriteSheetWindow::onEntriesChange, this));
+    height()->Change.connect(Bind<void>(&ImportSpriteSheetWindow::onEntriesChange, this));
     selectFile()->Click.connect(Bind<void>(&ImportSpriteSheetWindow::onSelectFile, this));
 
     remapWindow();
diff --git a/src/app/commands/cmd_layer_properties.cpp b/src/app/commands/cmd_layer_properties.cpp
index 919bf79..7f82e35 100644
--- a/src/app/commands/cmd_layer_properties.cpp
+++ b/src/app/commands/cmd_layer_properties.cpp
@@ -75,7 +75,7 @@ public:
     mode()->addItem("Color");
     mode()->addItem("Luminosity");
 
-    name()->EntryChange.connect(Bind<void>(&LayerPropertiesWindow::onStartTimer, this));
+    name()->Change.connect(Bind<void>(&LayerPropertiesWindow::onStartTimer, this));
     mode()->Change.connect(Bind<void>(&LayerPropertiesWindow::onStartTimer, this));
     opacity()->Change.connect(Bind<void>(&LayerPropertiesWindow::onStartTimer, this));
     m_timer.Tick.connect(Bind<void>(&LayerPropertiesWindow::onCommitChange, this));
diff --git a/src/app/commands/cmd_sprite_size.cpp b/src/app/commands/cmd_sprite_size.cpp
index 37a2f48..bf01d29 100644
--- a/src/app/commands/cmd_sprite_size.cpp
+++ b/src/app/commands/cmd_sprite_size.cpp
@@ -232,10 +232,10 @@ void SpriteSizeCommand::onExecute(Context* context)
     m_heightPx->setTextf("%d", new_height);
 
     m_lockRatio->Click.connect(Bind<void>(&SpriteSizeCommand::onLockRatioClick, this));
-    m_widthPx->EntryChange.connect(Bind<void>(&SpriteSizeCommand::onWidthPxChange, this));
-    m_heightPx->EntryChange.connect(Bind<void>(&SpriteSizeCommand::onHeightPxChange, this));
-    m_widthPerc->EntryChange.connect(Bind<void>(&SpriteSizeCommand::onWidthPercChange, this));
-    m_heightPerc->EntryChange.connect(Bind<void>(&SpriteSizeCommand::onHeightPercChange, this));
+    m_widthPx->Change.connect(Bind<void>(&SpriteSizeCommand::onWidthPxChange, this));
+    m_heightPx->Change.connect(Bind<void>(&SpriteSizeCommand::onHeightPxChange, this));
+    m_widthPerc->Change.connect(Bind<void>(&SpriteSizeCommand::onWidthPercChange, this));
+    m_heightPerc->Change.connect(Bind<void>(&SpriteSizeCommand::onHeightPercChange, this));
 
     method->addItem("Nearest-neighbor");
     method->addItem("Bilinear");
diff --git a/src/app/commands/filters/cmd_despeckle.cpp b/src/app/commands/filters/cmd_despeckle.cpp
index 608cbea..4bfc579 100644
--- a/src/app/commands/filters/cmd_despeckle.cpp
+++ b/src/app/commands/filters/cmd_despeckle.cpp
@@ -54,8 +54,8 @@ public:
     m_widthEntry->setTextf("%d", m_filter.getWidth());
     m_heightEntry->setTextf("%d", m_filter.getHeight());
 
-    m_widthEntry->EntryChange.connect(&DespeckleWindow::onSizeChange, this);
-    m_heightEntry->EntryChange.connect(&DespeckleWindow::onSizeChange, this);
+    m_widthEntry->Change.connect(&DespeckleWindow::onSizeChange, this);
+    m_heightEntry->Change.connect(&DespeckleWindow::onSizeChange, this);
   }
 
 private:
diff --git a/src/app/ui/color_sliders.cpp b/src/app/ui/color_sliders.cpp
index 220acef..1d8c074 100644
--- a/src/app/ui/color_sliders.cpp
+++ b/src/app/ui/color_sliders.cpp
@@ -148,7 +148,7 @@ void ColorSliders::addSlider(Channel channel, const char* labelText, int min, in
 
   absSlider->Change.connect(Bind<void>(&ColorSliders::onSliderChange, this, m_absSlider.size()-1));
   relSlider->Change.connect(Bind<void>(&ColorSliders::onSliderChange, this, m_relSlider.size()-1));
-  entry->EntryChange.connect(Bind<void>(&ColorSliders::onEntryChange, this, m_entry.size()-1));
+  entry->Change.connect(Bind<void>(&ColorSliders::onEntryChange, this, m_entry.size()-1));
 
   HBox* box = new HBox();
   box->addChild(absSlider);
diff --git a/src/app/ui/file_selector.cpp b/src/app/ui/file_selector.cpp
index 55f4c20..05387c7 100644
--- a/src/app/ui/file_selector.cpp
+++ b/src/app/ui/file_selector.cpp
@@ -101,7 +101,7 @@ public:
   CustomFileNameEntry()
     : m_fileList(nullptr) {
     setEditable(true);
-    getEntryWidget()->EntryChange.connect(&CustomFileNameEntry::onEntryChange, this);
+    getEntryWidget()->Change.connect(&CustomFileNameEntry::onEntryChange, this);
   }
 
   void setAssociatedFileList(FileList* fileList) {
diff --git a/src/app/ui/hex_color_entry.cpp b/src/app/ui/hex_color_entry.cpp
index 4aee02b..494c329 100644
--- a/src/app/ui/hex_color_entry.cpp
+++ b/src/app/ui/hex_color_entry.cpp
@@ -35,7 +35,7 @@ HexColorEntry::HexColorEntry()
   addChild(&m_label);
   addChild(&m_entry);
 
-  m_entry.EntryChange.connect(&HexColorEntry::onEntryChange, this);
+  m_entry.Change.connect(&HexColorEntry::onEntryChange, this);
 
   initTheme();
 
diff --git a/src/ui/entry.cpp b/src/ui/entry.cpp
index 6d89529..bac0784 100644
--- a/src/ui/entry.cpp
+++ b/src/ui/entry.cpp
@@ -449,9 +449,9 @@ void Entry::onSetText()
     m_caret = (int)getTextLength();
 }
 
-void Entry::onEntryChange()
+void Entry::onChange()
 {
-  EntryChange();
+  Change();
 }
 
 int Entry::getCaretFromMouse(MouseMessage* mousemsg)
@@ -682,7 +682,7 @@ void Entry::executeCmd(EntryCmd cmd, int unicodeChar, bool shift_pressed)
   std::string newText = base::to_utf8(text);
   if (newText != getText()) {
     setText(newText.c_str());
-    onEntryChange();
+    onChange();
   }
 
   setCaretPos(m_caret);
diff --git a/src/ui/entry.h b/src/ui/entry.h
index 921593b..5cbd8e7 100644
--- a/src/ui/entry.h
+++ b/src/ui/entry.h
@@ -42,7 +42,7 @@ namespace ui {
                            int* selbeg, int* selend);
 
     // Signals
-    Signal0<void> EntryChange;
+    Signal0<void> Change;
 
   protected:
     // Events
@@ -52,7 +52,7 @@ namespace ui {
     void onSetText() override;
 
     // New Events
-    virtual void onEntryChange();
+    virtual void onChange();
 
   private:
     enum class EntryCmd {
diff --git a/src/ui/int_entry.cpp b/src/ui/int_entry.cpp
index 9a7b30a..b7ede23 100644
--- a/src/ui/int_entry.cpp
+++ b/src/ui/int_entry.cpp
@@ -140,9 +140,9 @@ void IntEntry::onPreferredSize(PreferredSizeEvent& ev)
   ev.setPreferredSize(w, h);
 }
 
-void IntEntry::onEntryChange()
+void IntEntry::onChange()
 {
-  Entry::onEntryChange();
+  Entry::onChange();
   onValueChange();
 }
 
diff --git a/src/ui/int_entry.h b/src/ui/int_entry.h
index 2eb8c71..01abfe4 100644
--- a/src/ui/int_entry.h
+++ b/src/ui/int_entry.h
@@ -27,7 +27,7 @@ namespace ui {
   protected:
     bool onProcessMessage(Message* msg) override;
     void onPreferredSize(PreferredSizeEvent& ev) override;
-    void onEntryChange() override;
+    void onChange() override;
 
     // New events
     virtual void onValueChange();

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-games/aseprite.git



More information about the Pkg-games-commits mailing list