-
Notifications
You must be signed in to change notification settings - Fork 4
Home
Andrea-Tabbles edited this page Jul 19, 2018
·
7 revisions
What is this? As implemented an API system in Tabbles 4 and 5 (that works also in Confidential 1.x), we coded a simple plugin to help you develop your own. Our apps are written in .net and the APIs have to be called in C#. We used WPF for the GUI but that's not a requirement.
- Unzip the files and copy into tabbles-testPlugin-ApiV4-master\lib the 3 dlls (they are in the Tabbles or Confidential install folder):
- FSharp.Core.dll
- TaggerLibCSharp.dll
- TaggerLogic.dll
- Open the solution and build it in Visual Studio
- Put the output "testplugin.dll" in %appdata%\Tabbles\Plugins (or %appdata%\Confidential\Plugins )
- Run Tabbles (or Confidential) and check in the Plugins menu
As of (16-Oct-17) we implemented 3x API functions (in plugin.cs), to be called with await:
- Api.createTagWithDefaultColor(tagName); = we kept it as basic as possible, using this you can create only grey tags. We'll look into implementing creating colored tags at a later point.
- Api.tagFiles(tags: tags, files: filesToTag);
- Api.untagFiles(tags: tags, files: filesToTag);
As of (16-Oct-17) 4x events (in pluginWindow.xaml.cs) that you can listen by implemnting the interface TaggerApi.IEventListener :
- onFilesTagged(IEnumerable files, IEnumerable tags);
- onFilesUntagged(IEnumerable files, IEnumerable tags);
- onTagCreated(tag tag);
- onTagsDeleted(IEnumerable tags);
If you have requests or comments, please send them to [email protected]
Thanks 👍 Andrea & Maurizio