/* tableWidget, Storage Tree Tree Widget inherited from ui_client.h */
m_populated = false;
- m_populating = false;
m_checkcurwidget = true;
m_closeable = false;
/* add context sensitive menu items specific to this classto the page
*/
void Clients::populateTable()
{
- if (m_populating)
- return;
- m_populating = true;
-
if (!m_console->preventInUseConnect())
return;
+ m_populated = true;
QBrush blackBrush(Qt::black);
/* Resize rows and columns */
tableWidget->resizeColumnsToContents();
tableWidget->resizeRowsToContents();
- m_populating = false;
}
/*
{
if(!m_populated) {
populateTable();
- m_populated=true;
}
}
if(!m_populated) {
populateTable();
/* Create the context menu for the client table */
- m_populated=true;
}
}
void createContextMenu();
QString m_currentlyselected;
bool m_populated;
- bool m_populating;
bool m_checkcurwidget;
};
/* tableWidget, FileSet Tree Tree Widget inherited from ui_fileset.h */
m_populated = false;
- m_populating = false;
m_checkcurwidget = true;
m_closeable = false;
readSettings();
*/
void FileSet::populateTable()
{
- if (m_populating)
- return;
- m_populating = true;
-
if (!m_console->preventInUseConnect())
return;
+ m_populated = true;
QBrush blackBrush(Qt::black);
/* Resize rows and columns */
tableWidget->resizeColumnsToContents();
tableWidget->resizeRowsToContents();
- m_populating = false;
}
/*
if (!m_populated) {
populateTable();
createContextMenu();
- m_populated = true;
}
}
populateTable();
/* Create the context menu for the fileset table */
createContextMenu();
- m_populated=true;
}
}
void createContextMenu();
QString m_currentlyselected;
bool m_populated;
- bool m_populating;
bool m_checkcurwidget;
};
m_resultCount = 0;
m_populated = false;
- m_populating = false;
m_closeable = false;
if ((m_mediaName != "") || (m_clientName != "") || (m_jobName != "") || (m_filesetName != ""))
m_closeable=true;
*/
void JobList::populateTable()
{
- if (m_populating)
- return;
- m_populating = true;
if (!m_console->preventInUseConnect())
return;
/* Can't do this in constructor because not neccesarily conected in constructor */
prepareFilterWidgets();
+ m_populated = true;
/* Set up query */
QString query;
tr("The Jobs query returned no results.\n"
"Press OK to continue?"), QMessageBox::Ok );
}
- m_populating = false;
}
void JobList::prepareFilterWidgets()
{
if (!m_populated) {
populateTable();
- m_populated=true;
}
}
*/
void JobList::currentStackItem()
{
- populateTable();
- if (!m_populated) {
- m_populated=true;
- }
+/* if (!m_populated) populate every time user comes back to this object */
+ populateTable();
}
/*
QString m_filesetName;
QString m_currentJob;
bool m_populated;
- bool m_populating;
bool m_checkCurrentWidget;
int m_jobIdIndex;
int m_purgedIndex;
/* tableWidget, Storage Tree Tree Widget inherited from ui_client.h */
m_populated = false;
- m_populating = false;
m_checkcurwidget = true;
m_closeable = false;
/* add context sensitive menu items specific to this classto the page
*/
void Jobs::populateTable()
{
- if (m_populating)
- return;
- m_populating = true;
if (!m_console->preventInUseConnect())
return;
+ m_populated = true;
QBrush blackBrush(Qt::black);
m_checkcurwidget = false;
tableWidget->clear();
/* Resize rows and columns */
tableWidget->resizeColumnsToContents();
tableWidget->resizeRowsToContents();
- m_populating = true;
}
/*
{
if(!m_populated) {
populateTable();
- m_populated=true;
}
}
*/
void Jobs::currentStackItem()
{
- populateTable();
if(!m_populated) {
/* Create the context menu for the client table */
- m_populated=true;
+ populateTable();
}
}
void createContextMenu();
QString m_currentlyselected;
bool m_populated;
- bool m_populating;
bool m_checkcurwidget;
int m_typeIndex;
};
/* mp_treeWidget, Storage Tree Tree Widget inherited from ui_medialist.h */
m_populated = false;
- m_populating = false;
m_checkcurwidget = true;
m_closeable = false;
/* add context sensitive menu items specific to this classto the page
*/
void MediaList::populateTree()
{
- if (m_populating)
- return;
- m_populating = true;
+ if (m_populated)
+ writeExpandedSettings();
+ m_populated = true;
+
QTreeWidgetItem *pooltreeitem;
if (!m_console->preventInUseConnect())
<< tr("RecyclePool") << tr("Last Written"));
m_checkcurwidget = false;
- if (m_populated)
- writeExpandedSettings();
mp_treeWidget->clear();
m_checkcurwidget = true;
mp_treeWidget->setColumnCount(headerlist.count());
for(int cnter=0; cnter<headerlist.count(); cnter++) {
mp_treeWidget->resizeColumnToContents(cnter);
}
- m_populating = false;
}
/*
if (!m_populated) {
populateTree();
createContextMenu();
- m_populated=true;
}
}
populateTree();
/* Create the context menu for the medialist tree */
createContextMenu();
- m_populated=true;
}
}
QString m_currentVolumeName;
QString m_currentVolumeId;
bool m_populated;
- bool m_populating;
bool m_checkcurwidget;
QTreeWidgetItem *m_topItem;
};
/* mp_treeWidget, Storage Tree Tree Widget inherited from ui_storage.h */
m_populated = false;
- m_populating = false;
m_checkcurwidget = true;
m_closeable = false;
m_currentStorage = "";
*/
void Storage::populateTree()
{
- if (m_populating)
- return;
- m_populating = true;
if (!m_console->preventInUseConnect())
return;
if (m_populated)
writeExpandedSettings();
+ m_populated = true;
m_checkcurwidget = false;
mp_treeWidget->clear();
for(int cnter=0; cnter<headerlist.size(); cnter++) {
mp_treeWidget->resizeColumnToContents(cnter);
}
- m_populating = false;
}
void Storage::mediaList(QTreeWidgetItem *parent, const QString &storageID)
{
if(!m_populated) {
populateTree();
createContextMenu();
- m_populated = true;
}
}
populateTree();
/* Create the context menu for the storage tree */
createContextMenu();
- m_populated = true;
}
}
QString m_currentStorage;
bool m_currentAutoChanger;
bool m_populated;
- bool m_populating;
bool m_checkcurwidget;
void writeExpandedSettings();
QTreeWidgetItem *m_topItem;