commit f3aae0c8117dd4cdb6b33add2bdbc701f489ad82
parent 4346e44c6bd7936c57d5700a6f3e87193af27e81
Author: cfillion <cfillion@users.noreply.github.com>
Date: Sat, 22 Feb 2020 11:37:33 -0500
rename richedit-gtk.cpp to richedit-generic.cpp
Diffstat:
4 files changed, 49 insertions(+), 48 deletions(-)
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
@@ -93,7 +93,7 @@ add_library(reapack OBJECT
remote.cpp
report.cpp
resource.rc
- richedit$<IF:$<BOOL:${APPLE}>,.mm,$<IF:$<BOOL:${WIN32}>,-win32,-gtk>.cpp>
+ richedit$<IF:$<BOOL:${APPLE}>,.mm,$<IF:$<BOOL:${WIN32}>,-win32,-generic>.cpp>
serializer.cpp
source.cpp
string.cpp
diff --git a/src/richedit-generic.cpp b/src/richedit-generic.cpp
@@ -0,0 +1,47 @@
+/* ReaPack: Package manager for REAPER
+ * Copyright (C) 2015-2020 Christian Fillion
+ *
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU Lesser General Public License as published by
+ * the Free Software Foundation, either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public License
+ * along with this program. If not, see <http://www.gnu.org/licenses/>.
+ */
+
+#include "richedit.hpp"
+
+// This is the Linux implementation of RichEdit
+// See also richedit.mm and richedit-win32.cpp
+
+void RichEdit::Init()
+{
+}
+
+RichEdit::RichEdit(HWND handle)
+ : Control(handle)
+{
+}
+
+RichEdit::~RichEdit() = default;
+
+void RichEdit::onNotify(LPNMHDR, LPARAM)
+{
+}
+
+void RichEdit::setPlainText(const std::string &text)
+{
+ SetWindowText(handle(), text.c_str());
+}
+
+bool RichEdit::setRichText(const std::string &rtf)
+{
+ (void)rtf;
+ return false;
+}
diff --git a/src/richedit-gtk.cpp b/src/richedit-gtk.cpp
@@ -1,46 +0,0 @@
-/* ReaPack: Package manager for REAPER
- * Copyright (C) 2015-2020 Christian Fillion
- *
- * This program is free software: you can redistribute it and/or modify
- * it under the terms of the GNU Lesser General Public License as published by
- * the Free Software Foundation, either version 3 of the License, or
- * (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public License
- * along with this program. If not, see <http://www.gnu.org/licenses/>.
- */
-
-#include "richedit.hpp"
-
-// This is the Linux implementation of RichEdit
-// See also richedit.mm and richedit-win32.cpp
-
-void RichEdit::Init()
-{
-}
-
-RichEdit::RichEdit(HWND handle)
- : Control(handle)
-{
-}
-
-RichEdit::~RichEdit() = default;
-
-void RichEdit::onNotify(LPNMHDR, LPARAM)
-{
-}
-
-void RichEdit::setPlainText(const std::string &text)
-{
- SetWindowText(handle(), text.c_str());
-}
-
-bool RichEdit::setRichText(const std::string &)
-{
- return false;
-}
diff --git a/src/richedit-win32.cpp b/src/richedit-win32.cpp
@@ -18,7 +18,7 @@
#include "richedit.hpp"
// This is the Win32 implementation of RichEdit
-// The macOS implementation is in richedit.mm, Linux is in richedit-gtk.cpp
+// The macOS implementation is in richedit.mm, Linux is in richedit-generic.cpp
#include "win32.hpp"