diff foosdk/sdk/foobar2000/helpers/inplace_edit.cpp @ 1:20d02a178406 default tip

*: check in everything else yay
author Paper <paper@tflc.us>
date Mon, 05 Jan 2026 02:15:46 -0500
parents
children
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/foosdk/sdk/foobar2000/helpers/inplace_edit.cpp	Mon Jan 05 02:15:46 2026 -0500
@@ -0,0 +1,25 @@
+#include "stdafx.h"
+#include "inplace_edit.h"
+
+// Functionality moved to libPPUI
+
+namespace InPlaceEdit {
+	static reply_t wrapCN( completion_notify::ptr cn ) {
+		return [cn](unsigned code) { cn->on_completion(code); };
+	}
+	HWND Start(HWND p_parentwnd, const RECT & p_rect, bool p_multiline, pfc::rcptr_t<pfc::string_base> p_content, completion_notify_ptr p_notify) {
+		return Start(p_parentwnd, p_rect, p_multiline, p_content, wrapCN(p_notify) );
+	}
+
+	HWND StartEx(HWND p_parentwnd, const RECT & p_rect, unsigned p_flags, pfc::rcptr_t<pfc::string_base> p_content, completion_notify_ptr p_notify, IUnknown * ACData, DWORD ACOpts ) {
+		return StartEx(p_parentwnd, p_rect, p_flags, p_content, wrapCN(p_notify), ACData, ACOpts );
+	}
+
+	void Start_FromListView(HWND p_listview, unsigned p_item, unsigned p_subitem, unsigned p_linecount, pfc::rcptr_t<pfc::string_base> p_content, completion_notify_ptr p_notify) {
+		Start_FromListView(p_listview,p_item, p_subitem, p_linecount, p_content, wrapCN(p_notify) );
+	}
+	void Start_FromListViewEx(HWND p_listview, unsigned p_item, unsigned p_subitem, unsigned p_linecount, unsigned p_flags, pfc::rcptr_t<pfc::string_base> p_content, completion_notify_ptr p_notify) {
+		Start_FromListViewEx(p_listview, p_item, p_subitem, p_linecount, p_flags, p_content, wrapCN(p_notify) );
+	}
+
+}
\ No newline at end of file