Référence du fichier F:/KPlato/koffice/libs/kross/test/main.cpp

#include "testobject.h"
#include "testwindow.h"
#include "../core/action.h"
#include "../core/interpreter.h"
#include "../core/manager.h"
#include <QString>
#include <QFile>
#include <QMetaObject>
#include <QMetaMethod>
#include <kdebug.h>
#include <kinstance.h>
#include <kapplication.h>
#include <kcmdlineargs.h>
#include <kaboutdata.h>
#include <ksharedptr.h>
#include <string>
#include <iostream>

Graphe des dépendances par inclusion de main.cpp:

Aller au code source de ce fichier.

Macros

#define ERROR_OK   0
#define ERROR_HELP   -1
#define ERROR_NOSUCHFILE   -2
#define ERROR_OPENFAILED   -3
#define ERROR_NOINTERPRETER   -4
#define ERROR_EXCEPTION   -6

Fonctions

QString getInterpreterName (const QString &scriptfile)
int readFile (const QString &scriptfile, QString &content)
void finishTestEnvironment ()
void initTestEnvironment ()
int runScriptFile (const QString &scriptfile)
int main (int argc, char **argv)

Variables

KApplication * app = 0
static KCmdLineOptions options []
static TestObjecttestobj1 = 0
static TestObjecttestobj2 = 0


Documentation des macros

#define ERROR_EXCEPTION   -6

Définition à la ligne 51 du fichier main.cpp.

#define ERROR_HELP   -1

Définition à la ligne 47 du fichier main.cpp.

#define ERROR_NOINTERPRETER   -4

Définition à la ligne 50 du fichier main.cpp.

#define ERROR_NOSUCHFILE   -2

Définition à la ligne 48 du fichier main.cpp.

#define ERROR_OK   0

Définition à la ligne 46 du fichier main.cpp.

#define ERROR_OPENFAILED   -3

Définition à la ligne 49 du fichier main.cpp.


Documentation des fonctions

void finishTestEnvironment (  ) 

Définition à la ligne 90 du fichier main.cpp.

Références testobj1, et testobj2.

Référencé par main().

Voici le graphe d'appel pour cette fonction :

QString getInterpreterName ( const QString &  scriptfile  ) 

Définition à la ligne 65 du fichier main.cpp.

Références Kross::InterpreterInfo::interpreterName(), et Kross::Manager::self().

Référencé par main(), et runScriptFile().

Voici le graphe d'appel pour cette fonction :

Voici le graphe d'appel pour cette fonction :

void initTestEnvironment (  ) 

Définition à la ligne 96 du fichier main.cpp.

Références Kross::Manager::self(), testobj1, et testobj2.

Référencé par main().

Voici le graphe d'appel pour cette fonction :

Voici le graphe d'appel pour cette fonction :

int main ( int  argc,
char **  argv 
)

Définition à la ligne 153 du fichier main.cpp.

Références app, ERROR_NOSUCHFILE, ERROR_OK, finishTestEnvironment(), getInterpreterName(), initTestEnvironment(), options, readFile(), testguiform::result, et runScriptFile().

Voici le graphe d'appel pour cette fonction :

int readFile ( const QString &  scriptfile,
QString &  content 
)

Définition à la ligne 71 du fichier main.cpp.

Références ERROR_NOSUCHFILE, ERROR_OK, ERROR_OPENFAILED, et gensymbolfontmap::f.

Référencé par main(), et runScriptFile().

Voici le graphe d'appel pour cette fonction :

int runScriptFile ( const QString &  scriptfile  ) 

Définition à la ligne 107 du fichier main.cpp.

Références Kross::ChildrenInterface::addObject(), ERROR_OK, getInterpreterName(), readFile(), testguiform::result, Kross::Action::setCode(), et Kross::Action::setInterpreter().

Voici le graphe d'appel pour cette fonction :


Documentation des variables

KApplication* app = 0

Définition à la ligne 53 du fichier main.cpp.

KCmdLineOptions options[] [static]

Valeur initiale :

{
    { "gui", "Start the GUI; otherwise the command line application is used.", 0 },
    { "+file", "Scriptfile", 0 },

    
    
    { 0, 0, 0 }
}

Définition à la ligne 55 du fichier main.cpp.

TestObject* testobj1 = 0 [static]

Définition à la ligne 87 du fichier main.cpp.

Référencé par finishTestEnvironment(), et initTestEnvironment().

TestObject* testobj2 = 0 [static]

Définition à la ligne 88 du fichier main.cpp.

Référencé par finishTestEnvironment(), et initTestEnvironment().


Généré le Wed Nov 22 23:42:25 2006 pour KPlato par  doxygen 1.5.1-p1