Job::Job(QString &jobId, QTreeWidgetItem *parentTreeWidgetItem)
{
setupUi(this);
- m_closeable = true;
pgInitialize(tr("Job"), parentTreeWidgetItem);
QTreeWidgetItem* thisitem = mainWin->getFromHash(this);
thisitem->setIcon(0,QIcon(QString::fromUtf8(":images/joblog.png")));
/* this invokes the pass values = operator function */
m_pass = passVals;
- m_closeable = true;
dockPage();
/* If the values of the controls are predetermined (from joblist), then set
* this class as current window at the front of the stack */
JobLog::JobLog(QString &jobId, QTreeWidgetItem *parentTreeWidgetItem)
{
setupUi(this);
- m_closeable = true;
pgInitialize(tr("JobLog"), parentTreeWidgetItem);
QTreeWidgetItem* thisitem = mainWin->getFromHash(this);
thisitem->setIcon(0,QIcon(QString::fromUtf8(":images/joblog.png")));
*/
labelPage::labelPage(QString &defString)
{
- m_closeable = true;
showPage(defString);
}
console->connect_dir();
}
m_currentConsole = (Console*)getFromHash(m_firstItem);
- QTimer::singleShot(5000, this, SLOT(popLists()));
+ QTimer::singleShot(2000, this, SLOT(popLists()));
if (m_miscDebug) {
QString directoryResourceName;
m_currentConsole->getDirResName(directoryResourceName);
/* insert the cosole and tree widget item into the hashes */
hashInsert(item, m_currentConsole);
+ m_currentConsole->dockPage();
/* Set Color of treeWidgetItem for the console
* It will be set to green in the console class if the connection is made.
treeWidget->expandItem(topItem);
tabWidget->setCurrentWidget(m_currentConsole);
- m_currentConsole->undockPage();
- m_currentConsole->dockPage();
}
UnlockRes();
}
pgInitialize(tr("Media Edit"), parentWidget);
QTreeWidgetItem* thisitem = mainWin->getFromHash(this);
thisitem->setIcon(0,QIcon(QString::fromUtf8(":images/cartridge-edit.png")));
- m_closeable = true;
dockPage();
setCurrent();
connect(pbEdit, SIGNAL(clicked()), this, SLOT(editVol()));
connect(tableJob, SIGNAL(itemDoubleClicked(QTableWidgetItem*)), this, SLOT(showInfoForJob(QTableWidgetItem *)));
- m_closeable = true;
dockPage();
setCurrent();
populateForm();
return toret;
}
+/* Need to initialize variables here */
+Pages::Pages()
+{
+ m_docked = false;
+ m_onceDocked = false;
+ m_closeable = true;
+}
+
/*
* dockPage
* This function is intended to be called from within the Pages class to pull
class Pages : public QWidget
{
public:
+ Pages();
void dockPage();
void undockPage();
void togglePageDocking();
m_name = "bRestore";
setupUi(this);
pgInitialize();
- m_closeable = true;
dockPage();
}
setupUi(this);
pgInitialize();
m_conn = m_console->notifyOff();
- m_closeable = true;
QTreeWidgetItem* thisitem = mainWin->getFromHash(this);
thisitem->setIcon(0,QIcon(QString::fromUtf8(":images/restore.png")));
thisitem->setIcon(0,QIcon(QString::fromUtf8(":images/restore.png")));
m_console->notify(m_conn, false); /* this should already be off */
- m_closeable = true;
connect(fileWidget, SIGNAL(itemDoubleClicked(QTreeWidgetItem*, int)),
this, SLOT(fileDoubleClicked(QTreeWidgetItem *, int)));
QTreeWidgetItem* thisitem = mainWin->getFromHash(this);
thisitem->setIcon(0, QIcon(QString::fromUtf8(":images/browse.png")));
- m_closeable = true;
m_populated = false;
m_debugCnt = 0;
{
m_client = client;
setupUi(this);
- m_closeable = true;
pgInitialize(tr("Client Status %1").arg(m_client), parentTreeWidgetItem);
QTreeWidgetItem* thisitem = mainWin->getFromHash(this);
thisitem->setIcon(0,QIcon(QString::fromUtf8(":images/status.png")));
{
setupUi(this);
m_name = tr("Director Status");
- m_closeable = true;
pgInitialize();
QTreeWidgetItem* thisitem = mainWin->getFromHash(this);
thisitem->setIcon(0,QIcon(QString::fromUtf8(":images/status.png")));
{
m_storage = storage;
setupUi(this);
- m_closeable = true;
pgInitialize(tr("Storage Status %1").arg(m_storage), parentTreeWidgetItem);
QTreeWidgetItem* thisitem = mainWin->getFromHash(this);
thisitem->setIcon(0,QIcon(QString::fromUtf8(":images/status.png")));
m_populated = false;
m_firstpopulation = true;
m_checkcurwidget = true;
- m_closeable = true;
m_currentStorage = storage;
connect(pbUpdate, SIGNAL(clicked()), this,