OT: CLCL Documentation translated

Discuss and announce Total Commander plugins, addons and other useful tools here, both their usage and their development.

Moderators: Hacker, petermad, Stefan2, white

Post Reply
rolandd
Senior Member
Senior Member
Posts: 313
Joined: 2003-06-26, 09:02 UTC
Location: Indonesia
Contact:

OT: CLCL Documentation translated

Post by *rolandd »

Hello developers,

Via via I managed to find someone to translate the documentation that comes with CLCL. Majki told me which file was most needed so here it is. Hopefully we can see some new plugins come to life :P Please note that mistakes might be present.

Code: Select all

----[General]----------------------------

WM_GET_VERSION
  wParam - 0
  lParam - 0
  Returned value - (int)version
  Function:
    Acquire the CLCL version.

WM_GET_WORKPATH
  wParam - 0
  lParam - (TCHAR *) Working directory path (OUT)
  Returned value - 0
  Function:
    Acquire the working directory path. 
The initial path is a username directory within the directory that has the CLCL.exe file.

WM_GET_CLIPBOARD_WATCH
  wParam - 0
  lParam - 0
  Returned value - (int)0 – No monitoring?1 - Monitoring
  Function:
    Acquire the monitoring state of the clipboard.

WM_SET_CLIPBOARD_WATCH
  wParam - (int)0 - Cancel?1 - Monitor
  lParam - 0
  Returned value - 0
  Function:
    Switch the clipboard monitor on or off.

WM_GET_FORMAT_ICON
  wParam - (int)Icon size
  lParam - (TCHAR *)Format name
  Returned value - (HICON)Icon handle
  Function:
    Acquire format icon.
    Please cancel after using the icon handle.
 
WM_ENABLE_ACCELERATOR
  wParam - (BOOL)TRUE - Enable?FALSE - Disable
  lParam - 0
  Returned value - 0
  Function:
    Enables or disables the accelerator.

WM_REGIST_HOTKEY
  wParam - 0
  lParam - 0
  Returned value - 0
  Function:
    Registers hotkey(s).

WM_UNREGIST_HOTKEY
  wParam - 0
  lParam - 0
  Returned value - 0
  Function:
    Un-registers hotkey(s).


----[Option]----------------------------

WM_OPTION_SHOW
  wParam - 0
  lParam - (TCHAR *)Display tab
  Returned value - 0
  Function:
    Displays the option screen.

WM_OPTION_GET
  wParam - 0
  lParam - 0
  Returned value - (OPTION_INFO *)Option information
  Function:
    Acquires options.

WM_OPTION_LOAD
  wParam - 0
  lParam - 0
  Returned value - 0
  Function:
    Reload options.

WM_OPTION_SAVE
  wParam - 0
  lParam - 0
  Returned value - 0
  Function:
    Save options.


----[history & regist]----------------------------

WM_HISTORY_CHANGED
  wParam - 0
  lParam - 0
  Returned value - 0
  Function:
    Notifies of any history item changes.
    Sending this updates the display using the viewer.

WM_HISTORY_GET_ROOT
  wParam - 0
  lParam - 0
  Returned value - (DATA_INFO *)Root history items
  Function:
    Acquire history items.

WM_HISTORY_LOAD
  wParam - (int)0 – Follow option(s)?1 – Force a re-read
  lParam - 0
  Returned value - (BOOL)TRUE - Success?FALSE - Failure
  Function:
    Clear the current history and re-read.

WM_HISTORY_SAVE
  wParam - (int)0 - Follow option(s)?1 – Forced save
  lParam - 0
  Returned value - (BOOL)TRUE - Success?FALSE - Failure
  Function:
    Save the history.

WM_REGIST_CHANGED
  wParam - 0
  lParam - 0
  Returned value - 0
  Function:
    Registered item change notification.
    Sending this updates the display using the viewer.

WM_REGIST_GET_ROOT
  wParam - 0
  lParam - 0
  Returned value - (DATA_INFO *)Root registered items
  Function:
    Acquire registered items.

WM_REGIST_LOAD
  wParam - 0
  lParam - 0
  Returned value - (BOOL)TRUE - Success?FALSE - Failure
  Function:
    Clear current registered items and re-read.

WM_REGIST_SAVE
  wParam - 0
  lParam - 0
  Returned value - (BOOL)TRUE - Success?FALSE - Failure
  Function:
    Save registered item(s).


----[Item]----------------------------

WM_ITEM_TO_CLIPBOARD
  wParam - 0
  lParam - (DATA_INFO *)Item
  Returned value - (BOOL)TRUE - Success?FALSE - Failure
  Function:
    Send item to clipboard.

WM_ITEM_CREATE
  wParam - (int)Type created (TYPE_DATA or TYPE_ITEM or TYPE_FOLDER)
  lParam – Changes depending on the wParam
               TYPE_DATA - (TCHAR *)Format name
               TYPE_ITEM - (TCHAR *)Title
               TYPE_FOLDER - (TCHAR *)Title
  Returned value - (DATA_INFO *)Created item
  Function:
    Create item.

WM_ITEM_COPY
  wParam - 0
  lParam - (DATA_INFO *)Original item copy
  Returned value - (DATA_INFO *)Copied item
  Function:
    Create an item copy.

WM_ITEM_FREE
  wParam - 0
  lParam - (DATA_INFO *)Release item
  Returned value - 0
  Function:
    Releases an item.
    
In the event only one list item is released due to items set to ‘next’and ‘child’being released , please invoke this message after deleting the item(s) from the list.
next?child??????????????????????1?????????
??????????????????????????????????????

WM_ITEM_FREE_DATA
  wParam - (TCHAR *)Format name
  lParam - (HANDLE)Release data
  Returned value - 0
  Function:
    Release data.
    Is invoked when the di->data included in the item is released. 

WM_ITEM_CHECK
  wParam - 0
  lParam - (DATA_INFO *)The item that checks.
  Returned value - (int)-1 – doesn’t exist?0 – exists in history?1 - exists in recorded item.
  Function:
    Checks item existence.

WM_ITEM_TO_BYTES
  wParam - (DWORD *)size after change (OUT)
  lParam - (DATA_INFO *)item to change
  Returned value - (BYTE *)bytes after change
  Function:
    Changes the item to bytes.

WM_ITEM_FROM_BYTES
  wParam - (BYTE *)Bytes to be changed
  lParam - (DATA_INFO *)The set item
  Returned value - 0
  Function:
    Creates data from the bytes and establishes the item.

WM_ITEM_TO_FILE
  wParam - (TCHAR *)File name
  lParam - (DATA_INFO *)Saved item
  Returned value - (BOOL)TRUE - Success?FALSE - Failure
  Function:
    Saves the item to a file.

WM_ITEM_FROM_FILE
  wParam - (TCHAR *)File name
  lParam - (DATA_INFO *)The set item
  Returned value - (BOOL)TRUE - Success?FALSE - Failure
  Function:
    Creates data from the file and sets the item.

WM_ITEM_GET_PARENT
  wParam - 0
  lParam - (DATA_INFO *)Item to get parent item
  Returned value - (DATA_INFO *)If the parent item can’t be found return NULL.
  Function:
    Acquire the item’s parent item.

WM_ITEM_GET_FORMAT_TO_ITEM
  wParam - (TCHAR *)Format name
  lParam - (DATA_INFO *)Item information
  Returned value - (DATA_INFO *)TYPE_DATA item
  Function:
   Search the item for the assigned format name. 

WM_ITEM_GET_PRIORITY_HIGHEST
  wParam - 0
  lParam - (DATA_INFO *)TYPE_ITEM item
  Returned value - (DATA_INFO *)TYPE_DATA item
  Function:
    Acquire the item with the highest priority format.

WM_ITEM_GET_TITLE
  wParam - (TCHAR *)Title (OUT)
  lParam - (DATA_INFO *)Item to get title
  Returned value - 0
  Function:
    Acquire the title of the item.

WM_ITEM_GET_OPEN_INFO
  wParam - (OPENFILENAME *)File information (OUT)
  lParam - (TCHAR *)Format name
  Returned value - (int)-1 – don’t display common dialogue?0 - unset?1 – set format
  Function:
    Acquire the information to open the file of each format.

WM_ITEM_GET_SAVE_INFO
  wParam - (OPENFILENAME *)File information (OUT)
  lParam - (DATA_INFO )Item to get saved information
  Returned value - (int)-1 - don’t display common dialogue?0 - unset?1 - set format
  Function:
    Acquire the item’s saved file information.


----[Viewer]----------------------------

WM_VIEWER_SHOW
  wParam - 0
  lParam - 0
  Returned value - none
  Function:
    Shows the viewer.

WM_VIEWER_GET_HWND
  wParam - 0
  lParam - 0
  Returned value - 
(HWND)If the viewer’s window handle isn’t shown then return NULL
  Function:
    Acquire the viewer’s window handle.

WM_VIEWER_GET_MAIN_HWND
  wParam - 0
  lParam - 0
  Returned value - (HWND)Main window handle
  Function:
   Acquire the main window handle.

WM_VIEWER_GET_SELECTION
  wParam - 0
  lParam - 0
  Returned value - (DATA_INFO *)Selected item information from the viewer
  Function:
    Acquire the selected item information from the viewer.
    
If the viewer isn’t displayed or a previously stored item isn’t selected then return NULL.

WM_VIEWER_SELECT_ITEM
  wParam - 0
  lParam - (DATA_INFO *)Select item information
  Returned value - (BOOL)TRUE - Selected?FALSE – Couldn’t select
  Function:
    Make the item a selected condition using the viewer.
Regards,

RolandD
Registered user #92105
User avatar
SanskritFritz
Power Member
Power Member
Posts: 3693
Joined: 2003-07-24, 09:25 UTC
Location: Budapest, Hungary

Post by *SanskritFritz »

A BIG THANK YOU!!!
I switched to Linux, bye and thanks for all the fish!
User avatar
majkinetor !
Power Member
Power Member
Posts: 1580
Joined: 2006-01-18, 07:56 UTC
Contact:

Post by *majkinetor ! »

Roland, you didn't dissapoint me.

Excellente! :D :D

One thing though. Only 1 file in plugin SDK is translated.

Can you manage to trasnlate also

CLCLPlugin\CLCLPlugin.h
CLCLPlugin\format_template.c
CLCLPlugin\tool_template.c

Templates are very needed as those are most basic plugin's.
Habemus majkam!
rolandd
Senior Member
Senior Member
Posts: 313
Joined: 2003-06-26, 09:02 UTC
Location: Indonesia
Contact:

Post by *rolandd »

2majkinetor !
Well, this was mentioned as the most needed file. Will see if I can pull those strings again. At least we have a start :-D
Registered user #92105
User avatar
majkinetor !
Power Member
Power Member
Posts: 1580
Joined: 2006-01-18, 07:56 UTC
Contact:

Post by *majkinetor ! »

Excellent start.
Habemus majkam!
User avatar
solid
Power Member
Power Member
Posts: 747
Joined: 2004-08-09, 11:20 UTC

Post by *solid »

2majkinetor !

Can we expect something from you soon? :)
User avatar
majkinetor !
Power Member
Power Member
Posts: 1580
Joined: 2006-01-18, 07:56 UTC
Contact:

Post by *majkinetor ! »

I plan to do Reg Exp chain search and replace plugin:
Scenario:

You have text in your editor:
  • <TAG1> My name is majkinetor </TAG1>
    <TAG2> And my name is solid</TAG2>
You have defined RE chain as:

Code: Select all

1. Search: <(.+?)>(.+?)</$1>		   	  Replace: $2
2. Search: (.+?)(solid|majkinetor)(.+?)   Replace: $2 said: "\U$0"

- You press hotkey to activate plugin. Default RE chain is used to process text ( you have saved list of your chains)

- You copy text from the editor and paste it in Outlook Express.

- In outlook you see:
Majkinetor said: "My name is majkinetor"
Solid said: "And my name is solid"


So, when you need this, you start the plugin, when you don't need it any more, you set it of (or set RE that doesn't change the input)

I can't do this until complete plugin api is translated. CLCL is very complex (it is done over almost 10 years). The worst of all is that I have 0 free time. I will probably do this in AHK in the meantime, but I prefer it to be CLCL one day.
Habemus majkam!
Post Reply