dhb
====================================================
-Must:: get page selector to follow undocked windows. Otherwise
-current console won't be current.
-
Figure out how to get tables like Joblist to do the equivalent of double clicking
on the separating lines between each of the headings.
============================================================
DONE:
============================================================
+Must:: get page selector to follow undocked windows. Otherwise
+current console won't be current.
Re-add class for storage, I accidentally reverted because I left
it on my laptop. This is why I like committing often.
Add class for FileSets
-
Another idea for what you have implemented:
- I think that the dynamic pages that you create on the fly
should be nested under the item that creates them more like a
~Clients();
virtual void PgSeltreeWidgetClicked();
virtual void currentStackItem();
- void treeWidgetName(QString &);
+ virtual void treeWidgetName(QString &);
public slots:
void treeItemChanged(QTreeWidgetItem *, QTreeWidgetItem *);
pgInitialize();
/* mp_treeWidget, Storage Tree Tree Widget inherited from ui_medialist.h */
- createConnections();
m_populated = false;
m_checkcurwidget = true;
m_closeable = false;
}
}
-/*
- * Not being used currently, Should this be kept for possible future use.
- */
-void MediaList::createConnections()
-{
- connect(mp_treeWidget, SIGNAL(itemPressed(QTreeWidgetItem *, int)), this,
- SLOT(treeItemClicked(QTreeWidgetItem *, int)));
-}
-
-/*
- * Not being used currently, Should this be kept for possible future use.
- */
-void MediaList::treeItemClicked(QTreeWidgetItem * /*item*/, int /*column*/)
-{
-}
-
/*
* Called from the signal of the context sensitive menu!
*/
void MediaList::createContextMenu()
{
mp_treeWidget->setContextMenuPolicy(Qt::ActionsContextMenu);
- /*mp_treeWidget->setContextMenuPolicy(Qt::NoContextMenu);*/
mp_treeWidget->addAction(actionRefreshMediaList);
connect(actionEditVolume, SIGNAL(triggered()), this, SLOT(editMedia()));
connect(actionListJobsOnVolume, SIGNAL(triggered()), this, SLOT(showJobs()));
- mp_treeWidget->setContextMenuPolicy(Qt::ActionsContextMenu);
connect(mp_treeWidget, SIGNAL(
currentItemChanged(QTreeWidgetItem *, QTreeWidgetItem *)),
this, SLOT(treeItemChanged(QTreeWidgetItem *, QTreeWidgetItem *)));
~MediaList();
virtual void PgSeltreeWidgetClicked();
virtual void currentStackItem();
+ virtual void treeWidgetName(QString &);
public slots:
- void treeItemClicked(QTreeWidgetItem *item, int column);
void treeItemChanged(QTreeWidgetItem *, QTreeWidgetItem *);
- void editMedia();
- void showJobs();
- virtual void treeWidgetName(QString &);
private slots:
void populateTree();
+ void showJobs();
+ void editMedia();
private:
- void createConnections();
void createContextMenu();
-
-private:
QString m_currentlyselected;
bool m_populated;
bool m_checkcurwidget;
/* Bring this directors console to the front of the stack */
mainWin->treeWidget->setCurrentItem(mainWin->getFromHash(m_console));
}
+
+/*
+ * Function for handling undocked windows becoming active.
+ * Change the currently selected item in the page selector window to the now
+ * active undocked window.
+ */
+void Pages::changeEvent(QEvent *event)
+{
+ if ((event->type() == QEvent::ActivationChange) && (isActiveWindow())) {
+ mainWin->treeWidget->setCurrentItem(mainWin->getFromHash(this));
+ }
+}
void pgInitialize();
void pgInitialize(QTreeWidgetItem *);
void consoleCommand(QString &);
+ virtual void treeWidgetName(QString &);
+ virtual void changeEvent(QEvent *event);
bool m_closeable;
bool m_docked;
- virtual void treeWidgetName(QString &);
Console *m_console;
};
~Storage();
virtual void PgSeltreeWidgetClicked();
virtual void currentStackItem();
- void treeWidgetName(QString &);
+ virtual void treeWidgetName(QString &);
public slots:
void treeItemChanged(QTreeWidgetItem *, QTreeWidgetItem *);