• Skip to content
  • Skip to link menu
Trinity API Reference
  • Trinity API Reference
  • KDevelop Utility Library
 

KDevelop Utility Library

Signals | Public Member Functions | List of all members
KScriptActionManager Class Reference

#include <tdescriptactionmanager.h>

Inherits TQObject.

Signals

void scriptError (const TQString &msg)
 
void scriptWarning (const TQString &msg)
 
void scriptOutput (const TQString &msg)
 
void scriptProgress (int percent)
 
void scriptDone (KScriptClientInterface::Result result, const TQVariant &returned)
 

Public Member Functions

 KScriptActionManager (TQObject *parent, TDEActionCollection *ac)
 
TQPtrList< TDEAction > scripts (TQObject *interface, const TQStringList &dirs=TQStringList()) const
 

Detailed Description

Provides an actionlist of scripts that are currently available.

Scripts are not actually loaded until they are actually executed.

Author
ian geiser geise.nosp@m.ri@s.nosp@m.ource.nosp@m.xtre.nosp@m.me.co.nosp@m.m

Definition at line 94 of file tdescriptactionmanager.h.

Constructor & Destructor Documentation

◆ KScriptActionManager()

KScriptActionManager::KScriptActionManager ( TQObject *  parent,
TDEActionCollection *  ac 
)

Create a script manager that is attached to an action collection.

Definition at line 122 of file tdescriptactionmanager.cpp.

Member Function Documentation

◆ scriptDone

void KScriptActionManager::scriptDone ( KScriptClientInterface::Result  result,
const TQVariant &  returned 
)
signal

Notifies that the script has finished.

◆ scriptError

void KScriptActionManager::scriptError ( const TQString &  msg)
signal

Returns an error message from a script.

◆ scriptOutput

void KScriptActionManager::scriptOutput ( const TQString &  msg)
signal

Returns a standard out message from a script.

◆ scriptProgress

void KScriptActionManager::scriptProgress ( int  percent)
signal

Returns the percentage complete of an operation in the script.

◆ scripts()

TQPtrList< TDEAction > KScriptActionManager::scripts ( TQObject *  interface,
const TQStringList &  dirs = TQStringList() 
) const

Return all currently loaded scripts in a direcotry and attaches them to a TQObject interface.

If the dirs are empty the current applications scripts directory is used. The dirs are actual directories to search in the $KDEPATH/data/ direcories. So if you add "coolapp/data" then the manager will search in $KDEPATH/data/coolapp/data for all desktop files that are scripts.

Definition at line 132 of file tdescriptactionmanager.cpp.

◆ scriptWarning

void KScriptActionManager::scriptWarning ( const TQString &  msg)
signal

Returns a warning message from a script.


The documentation for this class was generated from the following files:
  • tdescriptactionmanager.h
  • tdescriptactionmanager.cpp

KDevelop Utility Library

Skip menu "KDevelop Utility Library"
  • Main Page
  • Namespace List
  • Class Hierarchy
  • Alphabetical List
  • Class List
  • File List
  • Namespace Members
  • Class Members

KDevelop Utility Library

Skip menu "KDevelop Utility Library"
  • buildtools
  •   lib
  •     base
  •     parsers
  •       autotools
  •       qmake
  •     widgets
  •   api
  • languages
  •   lib
  •     debugger
  •     designer_integration
  •     interfaces
  • lib
  •   catalog
  •   interfaces
  •     extensions
  •     external
  •     extras
  •   util
  •   widgets
  •     propeditor
  • parts
  •   documentation
  •     interfaces
  • src
  •   profileengine
  •     lib
Generated for KDevelop Utility Library by doxygen 1.8.13
This website is maintained by Timothy Pearson.