|
|
|
@ -69,13 +69,13 @@ ScriptTreeView::ScriptTreeView(TQWidget *parent, const char *name )
|
|
|
|
|
url.setPath(qConfig.globalDataDir + resourceDir + "scripts/");
|
|
|
|
|
|
|
|
|
|
BaseTreeBranch *m_globalDir;
|
|
|
|
|
m_globalDir = new BaseTreeBranch(this, url, i18n("Global Scripts"), SmallIcon("run"), true);
|
|
|
|
|
m_globalDir = new BaseTreeBranch(this, url, i18n("Global Scripts"), SmallIcon("system-run"), true);
|
|
|
|
|
addBranch(m_globalDir);
|
|
|
|
|
|
|
|
|
|
url.setPath(locateLocal("data", resourceDir + "scripts/"));
|
|
|
|
|
|
|
|
|
|
BaseTreeBranch *m_localDir;
|
|
|
|
|
m_localDir = new BaseTreeBranch(this, url, i18n("Local Scripts"), SmallIcon("run"), true);
|
|
|
|
|
m_localDir = new BaseTreeBranch(this, url, i18n("Local Scripts"), SmallIcon("system-run"), true);
|
|
|
|
|
addBranch(m_localDir);
|
|
|
|
|
|
|
|
|
|
// here you define which files should not be visible for the users
|
|
|
|
@ -85,7 +85,7 @@ ScriptTreeView::ScriptTreeView(TQWidget *parent, const char *name )
|
|
|
|
|
|
|
|
|
|
m_fileMenu = new TDEPopupMenu(this);
|
|
|
|
|
m_fileMenu->insertItem(SmallIcon("info"), i18n("&Description"), this, TQT_SLOT(slotProperties()));
|
|
|
|
|
m_fileMenu->insertItem(SmallIcon("run"), i18n("&Run Script"), this, TQT_SLOT(slotRun()));
|
|
|
|
|
m_fileMenu->insertItem(SmallIcon("system-run"), i18n("&Run Script"), this, TQT_SLOT(slotRun()));
|
|
|
|
|
m_fileMenu->insertSeparator();
|
|
|
|
|
m_fileMenu->insertItem(i18n("&Edit Script"), this, TQT_SLOT(slotEditScript()));
|
|
|
|
|
m_fileMenu->insertItem(i18n("Edit in &Quanta"), this, TQT_SLOT(slotEditInQuanta()));
|
|
|
|
|