16 #include <QFileDialog>
21 #include "TInterpreter.h"
22 #include "TObjArray.h"
27 setObjectName(
"Go4LoadedLibraries");
35 QFileDialog fd(
this,
"Load Shared Library ", QString(),
"Library (*.so)");
36 fd.setFileMode( QFileDialog::ExistingFiles);
38 if ( fd.exec() != QDialog::Accepted )
return;
40 QStringList list = fd.selectedFiles();
41 QStringList::Iterator it = list.begin();
42 while( it != list.end() ) {
43 gSystem->Load((*it).toLatin1().constData());
52 QTreeWidgetItemIterator it(LoadedLibsD);
54 if ( (*it)->isSelected() )
55 gSystem->Unload((*it)->text(0).toLatin1().constData());
66 TObjArray* libs = TString(gInterpreter->GetSharedLibs()).Tokenize(
" ,\t\n");
69 for (
int n=0; n<=libs->GetLast(); n++) {
70 QFileInfo fi(libs->At(n)->GetName());
74 columns << fi.fileName() << QString::number(fi.size()) << fi.lastModified().toString() << fi.owner() << fi.group();
76 LoadedLibsD->addTopLevelItem(
new QTreeWidgetItem(columns));
83 libs = TString(gSystem->GetLinkedLibs()).Tokenize(
" ,\t\n");
86 for (
int n=0; n<=libs->GetLast(); n++) {
88 columns << libs->At(n)->GetName();
89 LoadedLibsS->addTopLevelItem(
new QTreeWidgetItem(columns));
TGo4LoadedLibraries(QWidget *parent=0)
virtual void RefreshLibs()
virtual void LoadNewLibrary()
virtual void UnloadLibrary()