# Main window
FORMS += main.ui
-FORMS += label/label.ui mount/mount.ui
+FORMS += label/label.ui
+FORMS += mount/mount.ui
FORMS += console/console.ui
FORMS += restore/restore.ui restore/prerestore.ui restore/brestore.ui
FORMS += run/run.ui run/runcmd.ui
</layout>
<action name="actionRefreshClients" >
<property name="icon" >
- <iconset>../images/run.png</iconset>
+ <iconset>:images/run.png</iconset>
</property>
<property name="text" >
<string>Refresh Client List</string>
</action>
<action name="actionListJobsofClient" >
<property name="icon" >
- <iconset>../images/unmark.png</iconset>
+ <iconset>:images/unmark.png</iconset>
</property>
<property name="text" >
<string>List Jobs of Client</string>
</action>
<action name="actionStatusClientInConsole" >
<property name="icon" >
- <iconset>../images/status.png</iconset>
+ <iconset>:images/status.png</iconset>
</property>
<property name="text" >
<string>Status Client In Console</string>
m_at_prompt = false;
m_textEdit = textEdit; /* our console screen */
m_cursor = new QTextCursor(m_textEdit->document());
- mainWin->actionConnect->setIcon(QIcon(QString::fromUtf8("images/disconnected.png")));
+ mainWin->actionConnect->setIcon(QIcon(":images/disconnected.png"));
/* Check for messages every 5 seconds */
// m_timer = new QTimer(this);
return;
} else {
/* Update page selector to green to indicate that Console is connected */
- mainWin->actionConnect->setIcon(QIcon(QString::fromUtf8("images/connected.png")));
+ mainWin->actionConnect->setIcon(QIcon(":images/connected.png"));
QBrush greenBrush(Qt::green);
QTreeWidgetItem *item = mainWin->getFromHash(this);
item->setForeground(0, greenBrush);
void Console::status_dir()
{
QString cmd("status dir");
- consoleCommand(cmd);
+ consoleCommand(cmd);
}
/*
write(msg);
} else {
mainWin->set_status(" Director not connected. Click on connect button.");
- mainWin->actionConnect->setIcon(QIcon(QString::fromUtf8("images/disconnected.png")));
+ mainWin->actionConnect->setIcon(QIcon(":images/disconnected.png"));
QBrush redBrush(Qt::red);
QTreeWidgetItem *item = mainWin->getFromHash(this);
item->setForeground(0, redBrush);
if (is_bnet_stop(m_sock)) { /* error or term request */
m_sock->close();
m_sock = NULL;
- mainWin->actionConnect->setIcon(QIcon(QString::fromUtf8("images/disconnected.png")));
+ mainWin->actionConnect->setIcon(QIcon(":images/disconnected.png"));
QBrush redBrush(Qt::red);
QTreeWidgetItem *item = mainWin->getFromHash(this);
item->setForeground(0, redBrush);
</layout>
<action name="actionRefreshFileSet" >
<property name="icon" >
- <iconset>../images/run.png</iconset>
+ <iconset>:images/run.png</iconset>
</property>
<property name="text" >
<string>Refresh FileSet List</string>
</action>
<action name="actionStatusFileSetInConsole" >
<property name="icon" >
- <iconset>../images/status.png</iconset>
+ <iconset>:images/status.png</iconset>
</property>
<property name="text" >
<string>Status FileSet In Console</string>
</layout>
<action name="actionRefreshJobList" >
<property name="icon" >
- <iconset>../images/run.png</iconset>
+ <iconset>:images/run.png</iconset>
</property>
<property name="text" >
<string>Refresh Job List</string>
</action>
<action name="actionListJobid" >
<property name="icon" >
- <iconset>../images/unmark.png</iconset>
+ <iconset>:images/unmark.png</iconset>
</property>
<property name="text" >
<string>ListJobid</string>
</action>
<action name="actionListFilesOnJob" >
<property name="icon" >
- <iconset>../images/unmark.png</iconset>
+ <iconset>:images/unmark.png</iconset>
</property>
<property name="text" >
<string>List Files On Job</string>
</action>
<action name="actionListJobMedia" >
<property name="icon" >
- <iconset>../images/unmark.png</iconset>
+ <iconset>:images/unmark.png</iconset>
</property>
<property name="text" >
<string>ListJobMedia</string>
</action>
<action name="actionListVolumes" >
<property name="icon" >
- <iconset>../images/unmark.png</iconset>
+ <iconset>:images/unmark.png</iconset>
</property>
<property name="text" >
<string>ListVolumes</string>
</action>
<action name="actionLongListJob" >
<property name="icon" >
- <iconset>../images/unmark.png</iconset>
+ <iconset>:images/unmark.png</iconset>
</property>
<property name="text" >
<string>LongListJob</string>
</action>
<action name="actionDeleteJob" >
<property name="icon" >
- <iconset>../images/unmark.png</iconset>
+ <iconset>:images/unmark.png</iconset>
</property>
<property name="text" >
<string>DeleteJob</string>
</action>
<action name="actionPurgeFiles" >
<property name="icon" >
- <iconset>../images/unmark.png</iconset>
+ <iconset>:images/unmark.png</iconset>
</property>
<property name="text" >
<string>PurgeFiles</string>
</layout>
<action name="actionRefreshMediaList" >
<property name="icon" >
- <iconset>../images/run.png</iconset>
+ <iconset>:images/run.png</iconset>
</property>
<property name="text" >
<string>Refresh Media List</string>
</action>
<action name="actionEditVolume" >
<property name="icon" >
- <iconset>../images/status.png</iconset>
+ <iconset>:images/status.png</iconset>
</property>
<property name="text" >
<string>Edit Volume</string>
</action>
<action name="actionListJobsOnVolume" >
<property name="icon" >
- <iconset>../images/unmark.png</iconset>
+ <iconset>:images/unmark.png</iconset>
</property>
<property name="text" >
<string>List Jobs On Volume</string>
</action>
<action name="actionDeleteVolume" >
<property name="icon" >
- <iconset>../images/unmark.png</iconset>
+ <iconset>:images/unmark.png</iconset>
</property>
<property name="text" >
<string>Delete Volume</string>
</action>
<action name="actionPurgeVolume" >
<property name="icon" >
- <iconset>../images/unmark.png</iconset>
+ <iconset>:images/unmark.png</iconset>
</property>
<property name="text" >
<string>Purge Volume</string>
<string>Up</string>
</property>
<property name="icon" >
- <iconset>../images/up.png</iconset>
+ <iconset>:images/up.png</iconset>
</property>
</widget>
</item>
<string>Mark</string>
</property>
<property name="icon" >
- <iconset>../images/mark.png</iconset>
+ <iconset>:images/mark.png</iconset>
</property>
</widget>
</item>
<string>Unmark</string>
</property>
<property name="icon" >
- <iconset>../images/unmark.png</iconset>
+ <iconset>:images/unmark.png</iconset>
</property>
</widget>
</item>
</layout>
<action name="actionUp" >
<property name="icon" >
- <iconset>../images/up.png</iconset>
+ <iconset>:images/up.png</iconset>
</property>
<property name="text" >
<string>Up</string>
</action>
<action name="actionMark" >
<property name="icon" >
- <iconset>../images/mark.png</iconset>
+ <iconset>:images/mark.png</iconset>
</property>
<property name="text" >
<string>Mark</string>
</action>
<action name="actionUnmark" >
<property name="icon" >
- <iconset>../images/unmark.png</iconset>
+ <iconset>:images/unmark.png</iconset>
</property>
<property name="text" >
<string>Unmark</string>
#include <QAbstractEventDispatcher>
#include <QMenu>
#include "bat.h"
-#include "storage/storage.h"
-#include "mount/mount.h"
+#include "storage.h"
+#include "../mount/mount.h"
Storage::Storage()
{
</layout>
<action name="actionRefreshStorage" >
<property name="icon" >
- <iconset>../images/run.png</iconset>
+ <iconset>:images/run.png</iconset>
</property>
<property name="text" >
<string>Refresh Storage List</string>
</action>
<action name="actionStatusStorageInConsole" >
<property name="icon" >
- <iconset>../images/status.png</iconset>
+ <iconset>:images/status.png</iconset>
</property>
<property name="text" >
<string>Status Storage In Console</string>
</action>
<action name="actionLabelStorage" >
<property name="icon" >
- <iconset>../images/unmark.png</iconset>
+ <iconset>:images/unmark.png</iconset>
</property>
<property name="text" >
<string>Label Storage</string>
</action>
<action name="actionMountStorage" >
<property name="icon" >
- <iconset>../images/unmark.png</iconset>
+ <iconset>:images/unmark.png</iconset>
</property>
<property name="text" >
<string>MountStorage</string>
</action>
<action name="actionUnMountStorage" >
<property name="icon" >
- <iconset>../images/unmark.png</iconset>
+ <iconset>:images/unmark.png</iconset>
</property>
<property name="text" >
<string>UnMount Storage</string>