a-ilin / tcqtface

Qt API for Total Commander (c) WLX extensions
MIT License
7 stars 1 forks source link
qt total-commander

tcqtface

Qt API for Total Commander (c) WLX extensions

This plugin is designed for plugin writers who interested in development of TC plugins based on Qt framework.

Currently this plugin supports TC WLX (Lister) integration. Other plugin types are not supported.

How to use

  1. Build the core plugin module listerqt:

    cd listerqt
    qmake INSTALL_PATH=c:\SomeDirectory
    nmake
    nmake install
  2. Include the shipped listerqt.pri into your plugin's .pro file: include(C:\SomeDirectory\listerqt.pri)

  3. Implement interfaces specified into wlx_interfaces.h. To specify which functions to export from the plugin use CONFIG variable in your plugin's .pro file. Supported values:

Value Exported WLX Functions Description
PLUG_LIST_LOAD ListLoad, ListLoadNext, ListCloseWindow, ListSendCommand Plugin can create new windows and load files
PLUG_LIST_SEARCH_TEXT ListSearchText Plugin window can search a text
PLUG_LIST_SEARCH_DIALOG ListSearchDialog Plugin window has it's own search dialog
PLUG_LIST_PRINT ListPrint Plugin window can print it's contents
PLUG_LIST_PREVIEW_BITMAP ListGetPreviewBitmap Plugin can generate previews for TC

Examples

There is an example plugin that renders Qt .ui files: qtuiviewer. It's highly recommended to have a quick view over the code!

Screenshot

Binaries

Some of precompiled binaries can be found at releases.

Known Issues

Static linkage with Qt is preferred because of dynamic linkage has a set of issues:

License

MIT