]> git.sur5r.net Git - bacula/bacula/commitdiff
Update
authorKern Sibbald <kern@sibbald.com>
Sun, 28 Jan 2007 16:59:39 +0000 (16:59 +0000)
committerKern Sibbald <kern@sibbald.com>
Sun, 28 Jan 2007 16:59:39 +0000 (16:59 +0000)
git-svn-id: https://bacula.svn.sourceforge.net/svnroot/bacula/trunk@4068 91ce42f0-d328-0410-95d8-f526ca767f89

bacula/src/qt-console/Makefile
bacula/src/qt-console/bat_conf.h
bacula/src/qt-console/console/console.cpp
bacula/src/qt-console/main.ui

index e59111f8c6ef9753c51a64155d8e013c076e4ad1..f7d9b78f1a8560297a95914d57898c2d57d05e2b 100644 (file)
@@ -1,6 +1,6 @@
 #############################################################################
 # Makefile for building: bat
-# Generated by qmake (2.01a) (Qt 4.2.1) on: Sun Jan 28 16:40:37 2007
+# Generated by qmake (2.01a) (Qt 4.2.1) on: Sun Jan 28 17:49:20 2007
 # Project:  bat.pro
 # Template: app
 # Command: /usr/bin/qmake -unix -o Makefile bat.pro
@@ -192,11 +192,17 @@ compiler_rcc_clean:
 qrc_main.cpp: main.qrc \
                /usr/bin/rcc \
                images/new.png \
+               images/label.png \
+               images/server.png \
+               images/restore.png \
                images/copy.png \
                images/cut.png \
+               images/connect.png \
+               images/big-server.png \
                images/save.png \
                images/bat.png \
                images/paste.png \
+               images/run.png \
                images/open.png
        /usr/bin/rcc -name main main.qrc -o qrc_main.cpp
 
index ec4c9431b9118b703c9f64ded04b417d81a67f89..5a583d465fe1570d03ae36ca8b476ef149860144 100644 (file)
@@ -74,8 +74,13 @@ struct DIRRES {
    char *tls_keyfile;                 /* TLS Client Key File */
 
    TLS_CONTEXT *tls_ctx;              /* Shared TLS Context */
+
+   /* Methods */
+   char *name() const;
 };
 
+inline char *DIRRES::name() const { return hdr.name; }
+
 struct CONFONTRES {
    RES   hdr;
    char *fontface;                    /* Console Font specification */
index 46fff3c01e968e10c86f7c203cd7f90268db5b29..eeff11fc95ca6ffbe5f4084b01d1bf991f970e6b 100644 (file)
@@ -43,12 +43,17 @@ Console::Console()
 
    m_textEdit = mainWin->textEdit;   /* our console screen */
 
+   /* Just take the first Director */
+   LockRes();
+   m_dir = (DIRRES *)GetNextRes(R_DIRECTOR, NULL);
+   UnlockRes();
+
    /* Dummy setup of treeWidget */
    treeWidget->clear();
    treeWidget->setColumnCount(1);
    treeWidget->setHeaderLabel("Selection");
    topItem = new QTreeWidgetItem(treeWidget);
-   topItem->setText(0, "Rufus");
+   topItem->setText(0, m_dir->name());
    item = new QTreeWidgetItem(topItem);
    item->setText(0, "Console");
    item->setText(1, "0");
@@ -68,10 +73,6 @@ bool Console::connect()
 
    m_textEdit = mainWin->textEdit;   /* our console screen */
 
-   /* Just take the first Director */
-   LockRes();
-   m_dir = (DIRRES *)GetNextRes(R_DIRECTOR, NULL);
-   UnlockRes();
 
    if (!m_dir) {
       return false;
index 180c51f1f6a4df1e81ff6a2682b4a126bb78a6bd..a071dfc00b0905f00c92881c57ebf72c41c83aa8 100644 (file)
    <attribute name="toolBarArea" >
     <number>4</number>
    </attribute>
+   <addaction name="actionConnect" />
    <addaction name="actionSave" />
    <addaction name="actionPrint" />
+   <addaction name="actionLabel" />
+   <addaction name="actionRestore" />
   </widget>
   <action name="actionExit" >
    <property name="text" >
     <string>Save</string>
    </property>
   </action>
+  <action name="actionConnect" >
+   <property name="icon" >
+    <iconset>images/connect.png</iconset>
+   </property>
+   <property name="text" >
+    <string>Connect</string>
+   </property>
+  </action>
+  <action name="actionLabel" >
+   <property name="icon" >
+    <iconset>images/label.png</iconset>
+   </property>
+   <property name="text" >
+    <string>Label</string>
+   </property>
+  </action>
+  <action name="actionRestore" >
+   <property name="icon" >
+    <iconset>images/restore.png</iconset>
+   </property>
+   <property name="text" >
+    <string>Restore</string>
+   </property>
+  </action>
  </widget>
  <resources>
   <include location="main.qrc" />