Results 1 to 7 of 7

Thread: API

  1. #1
    Join Date
    Sep 2003
    Location
    reading / bournemouth UK
    Posts
    1,106

    Default API

    is the API likely to change (ie is it worth updating plugins) or should we wait until the final release

  2. #2
    Join Date
    Jan 1998
    Location
    Jupiter, FL
    Posts
    13,550

    Default

    The API is pretty much set, unless one of the developers has a suggestion on how to do something better. I am happy with most of it. One area that will see some more development is the GUI. Right now plugins can display their gui through the DUI, however this has limited functionality so we are developing a ActiveX/Com based gui for the more advanced plugins. This however should not break existing plugins.

    Let me know if you have any troubles with the porting effort.
    Ron
    No support through PM

  3. #3
    Join Date
    Sep 2003
    Location
    reading / bournemouth UK
    Posts
    1,106

    Default

    im not sure how command selection is supposed to be implemented in G4 (is it still using gir_command_gui ?)

  4. #4
    Join Date
    Jan 1998
    Location
    Jupiter, FL
    Posts
    13,550

    Default

    I am really sorry for the documentation not being in place yet. G4 is a big project. We are no longer using gir_command_ui.

    If your plugin only has some simple input that it needs to handle you can use the DUI. I will be releasing a plugin demonstrating this. What plugin are you working on?

    The DUI (Dynamic User Interface) is an XML file that describes what widget to use, where to display them and in what field (sValue1, iValue1 etc) to store the info. Your plugin doesn't have to do any UI stuff.
    Ron
    No support through PM

  5. #5
    Join Date
    Jan 1998
    Location
    Jupiter, FL
    Posts
    13,550

    Default

    Here is the source code to the sendmessage plugin. It demonstrates the DUI stuff. I forgot to include the sendmessage.xml file, but you have that yourself in the Girder directory.
    Attached Files Attached Files
    Ron
    No support through PM

  6. #6
    Join Date
    Sep 2003
    Location
    reading / bournemouth UK
    Posts
    1,106

    Default

    the plugin im working on is my media player plugin
    is there an easy way to compare two TGUID values in delphi?

  7. #7
    Join Date
    Jan 1998
    Location
    Jupiter, FL
    Posts
    13,550

    Default

    IsEqualGUID

    Code:
    function IsEqualGUID(const guid1, guid2: TGUID): Boolean;
    Unit: ActiveX
    Ron
    No support through PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •