From: Kern Sibbald Date: Sun, 29 Apr 2007 17:15:14 +0000 (+0000) Subject: Move .png files into binary X-Git-Tag: Release-7.0.0~6471 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=163f3bbbcc06ac3d7d867aef643800369c8594d6;p=bacula%2Fbacula Move .png files into binary git-svn-id: https://bacula.svn.sourceforge.net/svnroot/bacula/trunk@4658 91ce42f0-d328-0410-95d8-f526ca767f89 --- diff --git a/bacula/src/qt-console/bat.pro.in b/bacula/src/qt-console/bat.pro.in index f781f18f3f..64a1e93795 100644 --- a/bacula/src/qt-console/bat.pro.in +++ b/bacula/src/qt-console/bat.pro.in @@ -29,7 +29,8 @@ UI_DIR = ui # 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 diff --git a/bacula/src/qt-console/clients/clients.ui b/bacula/src/qt-console/clients/clients.ui index bb08890e65..d8bb76a20f 100644 --- a/bacula/src/qt-console/clients/clients.ui +++ b/bacula/src/qt-console/clients/clients.ui @@ -25,7 +25,7 @@ - ../images/run.png + :images/run.png Refresh Client List @@ -36,7 +36,7 @@ - ../images/unmark.png + :images/unmark.png List Jobs of Client @@ -44,7 +44,7 @@ - ../images/status.png + :images/status.png Status Client In Console diff --git a/bacula/src/qt-console/console/console.cpp b/bacula/src/qt-console/console/console.cpp index 474c626a4c..fffc2c9472 100644 --- a/bacula/src/qt-console/console/console.cpp +++ b/bacula/src/qt-console/console/console.cpp @@ -51,7 +51,7 @@ Console::Console(QStackedWidget *parent) 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); @@ -127,7 +127,7 @@ void Console::connect() 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); @@ -369,7 +369,7 @@ const QFont Console::get_font() void Console::status_dir() { QString cmd("status dir"); - consoleCommand(cmd); + consoleCommand(cmd); } /* @@ -427,7 +427,7 @@ void Console::write_dir(const char *msg) 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); @@ -582,7 +582,7 @@ int Console::read() 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); diff --git a/bacula/src/qt-console/fileset/fileset.ui b/bacula/src/qt-console/fileset/fileset.ui index 863a370533..ecb51a803d 100644 --- a/bacula/src/qt-console/fileset/fileset.ui +++ b/bacula/src/qt-console/fileset/fileset.ui @@ -25,7 +25,7 @@ - ../images/run.png + :images/run.png Refresh FileSet List @@ -36,7 +36,7 @@ - ../images/status.png + :images/status.png Status FileSet In Console diff --git a/bacula/src/qt-console/joblist/joblist.ui b/bacula/src/qt-console/joblist/joblist.ui index b19baa9931..f9b94fd417 100644 --- a/bacula/src/qt-console/joblist/joblist.ui +++ b/bacula/src/qt-console/joblist/joblist.ui @@ -25,7 +25,7 @@ - ../images/run.png + :images/run.png Refresh Job List @@ -36,7 +36,7 @@ - ../images/unmark.png + :images/unmark.png ListJobid @@ -44,7 +44,7 @@ - ../images/unmark.png + :images/unmark.png List Files On Job @@ -52,7 +52,7 @@ - ../images/unmark.png + :images/unmark.png ListJobMedia @@ -60,7 +60,7 @@ - ../images/unmark.png + :images/unmark.png ListVolumes @@ -68,7 +68,7 @@ - ../images/unmark.png + :images/unmark.png LongListJob @@ -76,7 +76,7 @@ - ../images/unmark.png + :images/unmark.png DeleteJob @@ -84,7 +84,7 @@ - ../images/unmark.png + :images/unmark.png PurgeFiles diff --git a/bacula/src/qt-console/medialist/medialist.ui b/bacula/src/qt-console/medialist/medialist.ui index df0b106bd9..77ff35c27a 100644 --- a/bacula/src/qt-console/medialist/medialist.ui +++ b/bacula/src/qt-console/medialist/medialist.ui @@ -25,7 +25,7 @@ - ../images/run.png + :images/run.png Refresh Media List @@ -36,7 +36,7 @@ - ../images/status.png + :images/status.png Edit Volume @@ -44,7 +44,7 @@ - ../images/unmark.png + :images/unmark.png List Jobs On Volume @@ -52,7 +52,7 @@ - ../images/unmark.png + :images/unmark.png Delete Volume @@ -60,7 +60,7 @@ - ../images/unmark.png + :images/unmark.png Purge Volume diff --git a/bacula/src/qt-console/restore/restore.ui b/bacula/src/qt-console/restore/restore.ui index f98c8d2338..4353f2f61f 100644 --- a/bacula/src/qt-console/restore/restore.ui +++ b/bacula/src/qt-console/restore/restore.ui @@ -179,7 +179,7 @@ Up - ../images/up.png + :images/up.png @@ -213,7 +213,7 @@ Mark - ../images/mark.png + :images/mark.png @@ -247,7 +247,7 @@ Unmark - ../images/unmark.png + :images/unmark.png @@ -490,7 +490,7 @@ - ../images/up.png + :images/up.png Up @@ -498,7 +498,7 @@ - ../images/mark.png + :images/mark.png Mark @@ -506,7 +506,7 @@ - ../images/unmark.png + :images/unmark.png Unmark diff --git a/bacula/src/qt-console/storage/storage.cpp b/bacula/src/qt-console/storage/storage.cpp index b08b53db56..6b8549cbed 100644 --- a/bacula/src/qt-console/storage/storage.cpp +++ b/bacula/src/qt-console/storage/storage.cpp @@ -38,8 +38,8 @@ #include #include #include "bat.h" -#include "storage/storage.h" -#include "mount/mount.h" +#include "storage.h" +#include "../mount/mount.h" Storage::Storage() { diff --git a/bacula/src/qt-console/storage/storage.ui b/bacula/src/qt-console/storage/storage.ui index f359e634e7..a5182dae2d 100644 --- a/bacula/src/qt-console/storage/storage.ui +++ b/bacula/src/qt-console/storage/storage.ui @@ -25,7 +25,7 @@ - ../images/run.png + :images/run.png Refresh Storage List @@ -36,7 +36,7 @@ - ../images/status.png + :images/status.png Status Storage In Console @@ -44,7 +44,7 @@ - ../images/unmark.png + :images/unmark.png Label Storage @@ -52,7 +52,7 @@ - ../images/unmark.png + :images/unmark.png MountStorage @@ -60,7 +60,7 @@ - ../images/unmark.png + :images/unmark.png UnMount Storage