LOW priority items:
-Get rid of "Warning: name layoutWidget is already used" when make uic's resture.ui
+Get rid of "Warning: name layoutWidget is already used" when make uic's restore.ui
move behavior of:
MainWin::setContextMenuDockText
============================================================
DONE:
============================================================
+Set Window titles to reflect what director it is.
+
Must:: get page selector to follow undocked windows. Otherwise
current console won't be current.
Clients::Clients()
{
setupUi(this);
+ m_name = "Clients";
pgInitialize();
/* mp_treeWidget, Storage Tree Tree Widget inherited from ui_client.h */
m_populated = false;
m_checkcurwidget = true;
m_closeable = false;
+ setTitle();
}
Clients::~Clients()
m_populated=true;
}
}
-
-/*
- * Virtual Function to return the name for the medialist tree widget
- */
-void Clients::treeWidgetName(QString &name)
-{
- name = "Clients";
-}
-
~Clients();
virtual void PgSeltreeWidgetClicked();
virtual void currentStackItem();
- virtual void treeWidgetName(QString &);
public slots:
void treeItemChanged(QTreeWidgetItem *, QTreeWidgetItem *);
{
m_dir = dir;
}
+
+/*
+ * To have the ability to get the name of the director resource.
+ */
+void Console::getDirResName(QString &name_returned)
+{
+ name_returned = m_dir->name();
+}
void setDirectorTreeItem(QTreeWidgetItem *);
void setDirRes(DIRRES *dir);
QTreeWidgetItem *directorTreeItem() { return m_directorTreeItem; };
- DIRRES *getDirRes() { return m_dir; };
+ void getDirResName(QString &);
QStringList job_list;
QStringList client_list;
FileSet::FileSet()
{
setupUi(this);
+ m_name = "FileSets";
pgInitialize();
/* mp_treeWidget, FileSet Tree Tree Widget inherited from ui_fileset.h */
m_populated = false;
m_checkcurwidget = true;
m_closeable = false;
+ setTitle();
}
FileSet::~FileSet()
m_populated=true;
}
}
-
-/*
- * Virtual Function to return the name for the medialist tree widget
- */
-void FileSet::treeWidgetName(QString &name)
-{
- name = "FileSet";
-}
-
~FileSet();
virtual void PgSeltreeWidgetClicked();
virtual void currentStackItem();
- void treeWidgetName(QString &);
public slots:
void treeItemChanged(QTreeWidgetItem *, QTreeWidgetItem *);
QTreeWidgetItem *parentTreeWidgetItem)
{
setupUi(this);
+ m_name = "Clients";
m_medianame = medianame;
m_clientname = clientname;
pgInitialize(parentTreeWidgetItem);
/* connect to the action specific to this pages class */
connect(actionRefreshJobList, SIGNAL(triggered()), this,
SLOT(populateTable()));
+ setTitle();
}
/*
}
m_currentConsole = (Console*)getFromHash(m_firstItem);
treeWidget->setCurrentItem(getFromHash(m_currentConsole));
- /*
+ /* FIXME
* I'd like to turn this into a debug item
* DIRRES* dirres = m_currentConsole->getDirRes();
* printf("Setting initial window to %s\n", dirres->name());
MediaList::MediaList()
{
setupUi(this);
+ m_name = "Media";
pgInitialize();
/* mp_treeWidget, Storage Tree Tree Widget inherited from ui_medialist.h */
m_populated = false;
m_checkcurwidget = true;
m_closeable = false;
+ setTitle();
}
MediaList::~MediaList()
m_populated=true;
}
}
-
-/*
- * Virtual Function to return the name for the medialist tree widget
- */
-void MediaList::treeWidgetName(QString &name)
-{
- name = "Media";
-}
~MediaList();
virtual void PgSeltreeWidgetClicked();
virtual void currentStackItem();
- virtual void treeWidgetName(QString &);
public slots:
void treeItemChanged(QTreeWidgetItem *, QTreeWidgetItem *);
*/
void Pages::treeWidgetName(QString &name)
{
- name = "Default Page Name";
+ name = m_name;
}
/*
/*
* Function for handling undocked windows becoming active.
* Change the currently selected item in the page selector window to the now
- * active undocked window.
+ * active undocked window. This will also make the console for the undocked
+ * window m_currentConsole.
*/
void Pages::changeEvent(QEvent *event)
{
mainWin->treeWidget->setCurrentItem(mainWin->getFromHash(this));
}
}
+
+/*
+ * Function to simplify getting the name of the class and the director into
+ * the caption or title of the window
+ */
+void Pages::setTitle()
+{
+ QString title, director;
+ treeWidgetName(title);
+ m_console->getDirResName(director);
+ title += " of Director ";
+ title += director;
+ setWindowTitle(title);
+}
void consoleCommand(QString &);
virtual void treeWidgetName(QString &);
virtual void changeEvent(QEvent *event);
+ void setTitle();
bool m_closeable;
bool m_docked;
Console *m_console;
+ QString m_name;
};
#endif /* _PAGES_H_ */
bRestore::bRestore()
{
+ m_name = "bRestore";
setupUi(this);
pgInitialize();
m_closeable = true;
bRestore::~bRestore()
{
}
-
-/*
- * Virtual Function to return the name for the medialist tree widget
- */
-void bRestore::treeWidgetName(QString &name)
-{
- name = "bRestore";
-}
public:
bRestore();
~bRestore();
- virtual void treeWidgetName(QString &);
public slots:
Storage::Storage()
{
setupUi(this);
+ m_name = "Storage";
pgInitialize();
/* mp_treeWidget, Storage Tree Tree Widget inherited from ui_storage.h */
m_populated = false;
m_checkcurwidget = true;
m_closeable = false;
+ setTitle();
}
Storage::~Storage()
m_populated=true;
}
}
-
-/*
- * Virtual Function to return the name for the medialist tree widget
- */
-void Storage::treeWidgetName(QString &name)
-{
- name = "Storage";
-}
-
~Storage();
virtual void PgSeltreeWidgetClicked();
virtual void currentStackItem();
- virtual void treeWidgetName(QString &);
public slots:
void treeItemChanged(QTreeWidgetItem *, QTreeWidgetItem *);