00001 /* 00002 * This file is part of the KDE project 00003 * 00004 * Copyright (c) 2005-2006 Cyrille Berger <cberger@cberger.net> 00005 * This program is free software; you can redistribute it and/or modify 00006 * it under the terms of the GNU Library General Public License as published by 00007 * the Free Software Foundation; either version 2 of the License, or 00008 * (at your option) any later version. 00009 * 00010 * This program is distributed in the hope that it will be useful, 00011 * but WITHOUT ANY WARRANTY; without even the implied warranty of 00012 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00013 * GNU General Public License for more details. 00014 * 00015 * You should have received a copy of the GNU General Public License 00016 * along with this program; if not, write to the Free Software 00017 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 00018 */ 00019 #ifndef WDGSCRIPTSMANAGER_H 00020 #define WDGSCRIPTSMANAGER_H 00021 00022 #include "main/scriptaction.h" 00023 #include "main/wdgscriptsmanagerbase.h" 00024 00025 class Scripting; 00026 00027 namespace Kross { namespace Api { 00028 00029 class ScriptGUIClient; 00030 class WdgScriptsManagerPrivate; 00031 00032 /** 00033 @author Cyrille Berger 00034 */ 00035 class WdgScriptsManager : public WdgScriptsManagerBase 00036 { 00037 Q_OBJECT 00038 public: 00039 WdgScriptsManager(ScriptGUIClient* scr, QWidget* parent = 0, const char* name = 0, WFlags fl = 0); 00040 ~WdgScriptsManager(); 00041 public slots: 00042 void slotLoadScript(); 00043 void slotInstallScript(); 00044 void slotUninstallScript(); 00045 void slotExecuteScript(); 00046 void slotUnloadScript(); 00047 void slotGetNewScript(); 00048 void slotSelectionChanged(QListViewItem*); 00049 private slots: 00050 void slotFillScriptsList(); 00051 void slotResourceInstalled(); 00052 private: 00053 WdgScriptsManagerPrivate* d; 00054 void addItem(ScriptActionCollection* collection); 00055 QListViewItem* addItem(ScriptAction::Ptr, QListViewItem* parentitem, QListViewItem* afteritem); 00056 }; 00057 00058 }} 00059 00060 #endif
1.4.6