lib

wdgscriptsmanager.h
1/*
2 * This file is part of the KDE project
3 *
4 * Copyright (c) 2005-2006 Cyrille Berger <cberger@cberger.net>
5 * This program is free software; you can redistribute it and/or modify
6 * it under the terms of the GNU Library General Public License as published by
7 * the Free Software Foundation; either version 2 of the License, or
8 * (at your option) any later version.
9 *
10 * This program is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 * GNU General Public License for more details.
14 *
15 * You should have received a copy of the GNU General Public License
16 * along with this program; if not, write to the Free Software
17 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
18 */
19#ifndef WDGSCRIPTSMANAGER_H
20#define WDGSCRIPTSMANAGER_H
21
22#include <tqlistview.h>
23
24#include "main/scriptaction.h"
25#include "main/wdgscriptsmanagerbase.h"
26
27class Scripting;
28
29namespace Kross { namespace Api {
30
31class ScriptGUIClient;
32class WdgScriptsManagerPrivate;
33
37class WdgScriptsManager : public WdgScriptsManagerBase
38{
39 TQ_OBJECT
40
41 public:
42 WdgScriptsManager(ScriptGUIClient* scr, TQWidget* parent = 0, const char* name = 0, WFlags fl = 0);
43 ~WdgScriptsManager();
44 public slots:
45 void slotLoadScript();
46 void slotInstallScript();
47 void slotUninstallScript();
48 void slotExecuteScript();
49 void slotUnloadScript();
50 void slotGetNewScript();
51 void slotSelectionChanged(TQListViewItem*);
52 private slots:
53 void slotFillScriptsList();
54 void slotResourceInstalled();
55 private:
56 WdgScriptsManagerPrivate* d;
57 void addItem(ScriptActionCollection* collection);
58 TQListViewItem* addItem(ScriptAction::Ptr, TQListViewItem* parentitem, TQListViewItem* afteritem);
59};
60
61}}
62
63#endif
A collection to store ScriptAction shared pointers.
TDESharedPtr< ScriptAction > Ptr
The name of the interpreter used to execute the scripting code.
The ScriptGUIClient class provides abstract access to scripting code used to extend an applications f...
The common Kross API used as common codebase.
Definition callable.h:31
The Kross scripting bridge to embed scripting functionality into an application.
Definition callable.h:31