#############################################################################
# Makefile for building: bat
-# Generated by qmake (2.01a) (Qt 4.2.1) on: Sun Feb 11 21:06:09 2007
+# Generated by qmake (2.01a) (Qt 4.2.1) on: Sun Feb 11 21:47:13 2007
# Project: bat.pro
# Template: app
# Command: /usr/bin/qmake -unix -o Makefile bat.pro
qstd.cpp \
console/authenticate.cpp \
console/console.cpp \
+ restore/restore.cpp \
restore/brestore.cpp \
label/label.cpp \
run/run.cpp moc/moc_mainwin.cpp \
obj/qstd.o \
obj/authenticate.o \
obj/console.o \
+ obj/restore.o \
obj/brestore.o \
obj/label.o \
obj/run.o \
all: Makefile $(TARGET)
-$(TARGET): ui_main.h ui_label.h ui_console.h ui_brestore.h ui_restore.h ui_restore-select.h ui_run.h $(OBJECTS)
+$(TARGET): ui_main.h ui_label.h ui_console.h ui_restore.h ui_prerestore.h ui_brestore.h ui_run.h $(OBJECTS)
$(LINK) $(LFLAGS) -o $(TARGET) $(OBJECTS) $(OBJCOMP) $(LIBS)
Makefile: bat.pro /usr/share/qt4/mkspecs/default/qmake.conf /usr/share/qt4/mkspecs/common/unix.conf \
dist:
@$(CHK_DIR_EXISTS) obj/bat1.0.0 || $(MKDIR) obj/bat1.0.0
- $(COPY_FILE) --parents $(SOURCES) $(DIST) obj/bat1.0.0/ && $(COPY_FILE) --parents mainwin.h bat.h bat_conf.h qstd.h console/console.h restore/restore.h label/label.h run/run.h obj/bat1.0.0/ && $(COPY_FILE) --parents main.qrc obj/bat1.0.0/ && $(COPY_FILE) --parents main.cpp bat_conf.cpp mainwin.cpp qstd.cpp console/authenticate.cpp console/console.cpp restore/brestore.cpp label/label.cpp run/run.cpp obj/bat1.0.0/ && $(COPY_FILE) --parents main.ui label/label.ui console/console.ui restore/brestore.ui restore/restore.ui restore/restore-select.ui run/run.ui obj/bat1.0.0/ && (cd `dirname obj/bat1.0.0` && $(TAR) bat1.0.0.tar bat1.0.0 && $(COMPRESS) bat1.0.0.tar) && $(MOVE) `dirname obj/bat1.0.0`/bat1.0.0.tar.gz . && $(DEL_FILE) -r obj/bat1.0.0
+ $(COPY_FILE) --parents $(SOURCES) $(DIST) obj/bat1.0.0/ && $(COPY_FILE) --parents mainwin.h bat.h bat_conf.h qstd.h console/console.h restore/restore.h label/label.h run/run.h obj/bat1.0.0/ && $(COPY_FILE) --parents main.qrc obj/bat1.0.0/ && $(COPY_FILE) --parents main.cpp bat_conf.cpp mainwin.cpp qstd.cpp console/authenticate.cpp console/console.cpp restore/restore.cpp restore/brestore.cpp label/label.cpp run/run.cpp obj/bat1.0.0/ && $(COPY_FILE) --parents main.ui label/label.ui console/console.ui restore/restore.ui restore/prerestore.ui restore/brestore.ui run/run.ui obj/bat1.0.0/ && (cd `dirname obj/bat1.0.0` && $(TAR) bat1.0.0.tar bat1.0.0 && $(COMPRESS) bat1.0.0.tar) && $(MOVE) `dirname obj/bat1.0.0`/bat1.0.0.tar.gz . && $(DEL_FILE) -r obj/bat1.0.0
yaccclean:
/usr/bin/moc $(DEFINES) $(INCPATH) console/console.h -o moc/moc_console.cpp
moc/moc_restore.cpp: ui_brestore.h \
+ ui_restore.h \
+ ui_prerestore.h \
restore/restore.h \
/usr/bin/moc
/usr/bin/moc $(DEFINES) $(INCPATH) restore/restore.h -o moc/moc_restore.cpp
-$(DEL_FILE) qmake_image_collection.cpp
compiler_moc_source_make_all:
compiler_moc_source_clean:
-compiler_uic_make_all: ui_main.h ui_label.h ui_console.h ui_brestore.h ui_restore.h ui_restore-select.h ui_run.h
+compiler_uic_make_all: ui_main.h ui_label.h ui_console.h ui_restore.h ui_prerestore.h ui_brestore.h ui_run.h
compiler_uic_clean:
- -$(DEL_FILE) ui_main.h ui_label.h ui_console.h ui_brestore.h ui_restore.h ui_restore-select.h ui_run.h
+ -$(DEL_FILE) ui_main.h ui_label.h ui_console.h ui_restore.h ui_prerestore.h ui_brestore.h ui_run.h
ui_main.h: main.ui
/usr/bin/uic main.ui -o ui_main.h
ui_console.h: console/console.ui
/usr/bin/uic console/console.ui -o ui_console.h
-ui_brestore.h: restore/brestore.ui
- /usr/bin/uic restore/brestore.ui -o ui_brestore.h
-
ui_restore.h: restore/restore.ui
/usr/bin/uic restore/restore.ui -o ui_restore.h
-ui_restore-select.h: restore/restore-select.ui
- /usr/bin/uic restore/restore-select.ui -o ui_restore-select.h
+ui_prerestore.h: restore/prerestore.ui
+ /usr/bin/uic restore/prerestore.ui -o ui_prerestore.h
+
+ui_brestore.h: restore/brestore.ui
+ /usr/bin/uic restore/brestore.ui -o ui_brestore.h
ui_run.h: run/run.ui
/usr/bin/uic run/run.ui -o ui_run.h
ui_console.h
$(CXX) -c $(CXXFLAGS) $(INCPATH) -o obj/console.o console/console.cpp
+obj/restore.o: restore/restore.cpp bat.h \
+ mainwin.h \
+ ui_main.h \
+ label/label.h \
+ ui_label.h \
+ run/run.h \
+ ui_run.h \
+ bat_conf.h \
+ qstd.h \
+ restore/restore.h \
+ ui_brestore.h \
+ ui_restore.h \
+ ui_prerestore.h
+ $(CXX) -c $(CXXFLAGS) $(INCPATH) -o obj/restore.o restore/restore.cpp
+
obj/brestore.o: restore/brestore.cpp bat.h \
mainwin.h \
ui_main.h \
bat_conf.h \
qstd.h \
restore/restore.h \
- ui_brestore.h
+ ui_brestore.h \
+ ui_restore.h \
+ ui_prerestore.h
$(CXX) -c $(CXXFLAGS) $(INCPATH) -o obj/brestore.o restore/brestore.cpp
obj/label.o: label/label.cpp bat.h \
-
#ifndef _BAT_H_
#define _BAT_H_
+/*
+ Bacula® - The Network Backup Solution
+
+ Copyright (C) 2000-2007 Free Software Foundation Europe e.V.
+
+ The main author of Bacula is Kern Sibbald, with contributions from
+ many others, a complete list can be found in the file AUTHORS.
+ This program is Free Software; you can redistribute it and/or
+ modify it under the terms of version two of the GNU General Public
+ License as published by the Free Software Foundation plus additions
+ that are listed in the file LICENSE.
+
+ This program is distributed in the hope that it will be useful, but
+ WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ General Public License for more details.
+
+ You should have received a copy of the GNU General Public License
+ along with this program; if not, write to the Free Software
+ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
+ 02110-1301, USA.
+
+ Bacula® is a registered trademark of John Walker.
+ The licensor of Bacula is the Free Software Foundation Europe
+ (FSFE), Fiduciary Program, Sumatrastrasse 25, 8006 Zürich,
+ Switzerland, email:ftf@fsfeurope.org.
+*/
+/*
+ * Version $Id$
+ *
+ * Kern Sibbald, January 2007
+ */
+
#include "mainwin.h"
#include "config.h"
#include "bacula.h"
FORMS += main.ui
FORMS += label/label.ui
FORMS += console/console.ui
-FORMS += restore/brestore.ui
-FORMS += restore/restore.ui restore/restore-select.ui
+FORMS += restore/restore.ui restore/prerestore.ui restore/brestore.ui
FORMS += run/run.ui
# Restore
HEADERS += restore/restore.h
-SOURCES += restore/brestore.cpp
+SOURCES += restore/restore.cpp restore/brestore.cpp
# Label dialog
HEADERS += label/label.h
-/*
- * Main configuration file parser for Bacula User Agent
- * some parts may be split into separate files such as
- * the schedule configuration (sch_config.c).
- *
- * Note, the configuration file parser consists of three parts
- *
- * 1. The generic lexical scanner in lib/lex.c and lib/lex.h
- *
- * 2. The generic config scanner in lib/parse_config.c and
- * lib/parse_config.h.
- * These files contain the parser code, some utility
- * routines, and the common store routines (name, int,
- * string).
- *
- * 3. The daemon specific file, which contains the Resource
- * definitions as well as any specific store routines
- * for the resource records.
- *
- * Kern Sibbald, January MM, September MM
- *
- * Version $Id$
- */
/*
Bacula® - The Network Backup Solution
(FSFE), Fiduciary Program, Sumatrastrasse 25, 8006 Zürich,
Switzerland, email:ftf@fsfeurope.org.
*/
+/*
+ * Main configuration file parser for Bacula User Agent
+ * some parts may be split into separate files such as
+ * the schedule configuration (sch_config.c).
+ *
+ * Note, the configuration file parser consists of three parts
+ *
+ * 1. The generic lexical scanner in lib/lex.c and lib/lex.h
+ *
+ * 2. The generic config scanner in lib/parse_config.c and
+ * lib/parse_config.h.
+ * These files contain the parser code, some utility
+ * routines, and the common store routines (name, int,
+ * string).
+ *
+ * 3. The daemon specific file, which contains the Resource
+ * definitions as well as any specific store routines
+ * for the resource records.
+ *
+ * Kern Sibbald, January MM, September MM
+ *
+ * Version $Id$
+ */
#include "bacula.h"
#include "bat_conf.h"
*/
/*
+ * Version $Id$
+ *
* Console Class
*
* Kern Sibbald, January MMVI
#include <QAbstractEventDispatcher>
#include "bat.h"
#include "console.h"
-#include "restore.h"
Console::Console(QStackedWidget *parent)
{
m_cursor = new QTextCursor(m_textEdit->document());
mainWin->actionConnect->setIcon(QIcon(QString::fromUtf8("images/disconnected.png")));
- bRestore *restore = new bRestore(parent);
- restore->setupUi(restore);
- parent->addWidget(restore);
+ bRestore *brestore = new bRestore(parent);
+ brestore->setupUi(brestore);
+ parent->addWidget(brestore);
/* Just take the first Director */
LockRes();
QBrush redBrush(Qt::red);
item->setForeground(0, redBrush);
item = new QTreeWidgetItem(topItem);
- item->setText(0, "Restore");
+ item->setText(0, "brestore");
item->setText(1, "1");
treeWidget->expandItem(topItem);
return list;
}
-
+/*
+ * Save user settings
+ */
void Console::writeSettings()
{
QFont font = get_font();
settings.endGroup();
}
+/*
+ * Read and restore user settings
+ */
void Console::readSettings()
{
QFont font = get_font();
m_textEdit->setFont(font);
}
+/*
+ * Set the console textEdit font
+ */
void Console::set_font()
{
bool ok;
}
}
+/*
+ * Get the console text edit font
+ */
const QFont Console::get_font()
{
return m_textEdit->font();
write_dir("status dir\n");
}
+/*
+ * Put text into the console window
+ */
void Console::set_textf(const char *fmt, ...)
{
va_list arg_ptr;
m_textEdit->ensureCursorVisible();
}
+/*
+ * This should be moved into a bSocket class
+ */
char *Console::msg()
{
if (m_sock) {
#include <QtGui>
#include "ui_console.h"
+#include "restore.h"
class DIRRES;
class BSOCK;
<set>Qt::AllDockWidgetAreas</set>
</property>
<widget class="QWidget" name="dockWidgetContents" >
+ <property name="focusPolicy" >
+ <enum>Qt::StrongFocus</enum>
+ </property>
<layout class="QGridLayout" >
<property name="margin" >
<number>9</number>
(FSFE), Fiduciary Program, Sumatrastrasse 25, 8006 Zürich,
Switzerland, email:ftf@fsfeurope.org.
*/
-
/*
+ * Version $Id$
+ *
* Main program for bat (qt-console)
*
* Kern Sibbald, January MMVI
*/
/*
+ * Version $Id$
+ *
* Main Window control for bat (qt-console)
*
* Kern Sibbald, January MMVI
connect(actionSelectFont, SIGNAL(triggered()), m_console, SLOT(set_font()));
connect(actionLabel, SIGNAL(triggered()), this, SLOT(labelDialogClicked()));
connect(actionRun, SIGNAL(triggered()), this, SLOT(runDialogClicked()));
+ connect(actionRestore, SIGNAL(triggered()), this, SLOT(restoreDialogClicked()));
}
/*
{
(void)column;
int index = item->text(1).toInt();
- if (index >= 0 && index < 2) {
+ if (index >= 0 && index < 4) {
stackedWidget->setCurrentIndex(index);
}
}
(void)column;
int index = item->text(1).toInt();
/* ***FIXME**** make this automatic */
- if (index >= 0 && index < 2) {
+ if (index >= 0 && index < 4) {
stackedWidget->setCurrentIndex(index);
}
}
new runDialog(m_console);
}
+void MainWin::restoreDialogClicked()
+{
+ new prerestoreDialog(m_console);
+}
+
+
/*
* The user just finished typing a line in the command line edit box
*/
/*
+ * Version $Id$
+ *
* qt-console main window class definition.
*
* Written by Kern Sibbald, January MMVI
#include "ui_main.h"
#include "label/label.h"
#include "run/run.h"
+#include "restore/restore.h"
class Console;
void treeItemDoubleClicked(QTreeWidgetItem *item, int column);
void labelDialogClicked();
void runDialogClicked();
+ void restoreDialogClicked();
protected:
void closeEvent(QCloseEvent *event);
*/
/*
+ * Version $Id$
+ *
* bRestore Class (Eric's brestore)
*
* Kern Sibbald, January MMVI
*
*/
-#include <QAbstractEventDispatcher>
#include "bat.h"
#include "restore.h"
--- /dev/null
+<ui version="4.0" >
+ <class>prerestoreForm</class>
+ <widget class="QDialog" name="prerestoreForm" >
+ <property name="geometry" >
+ <rect>
+ <x>0</x>
+ <y>0</y>
+ <width>366</width>
+ <height>299</height>
+ </rect>
+ </property>
+ <property name="maximumSize" >
+ <size>
+ <width>500</width>
+ <height>500</height>
+ </size>
+ </property>
+ <property name="focusPolicy" >
+ <enum>Qt::StrongFocus</enum>
+ </property>
+ <property name="windowTitle" >
+ <string>Restore Files</string>
+ </property>
+ <layout class="QVBoxLayout" >
+ <property name="margin" >
+ <number>9</number>
+ </property>
+ <property name="spacing" >
+ <number>6</number>
+ </property>
+ <item>
+ <layout class="QGridLayout" >
+ <property name="margin" >
+ <number>8</number>
+ </property>
+ <property name="spacing" >
+ <number>6</number>
+ </property>
+ <item row="3" column="0" >
+ <widget class="QLabel" name="label_4" >
+ <property name="text" >
+ <string>Pool:</string>
+ </property>
+ <property name="buddy" >
+ <cstring>poolCombo</cstring>
+ </property>
+ </widget>
+ </item>
+ <item row="1" column="0" >
+ <widget class="QLabel" name="label_2" >
+ <property name="text" >
+ <string>Client:</string>
+ </property>
+ <property name="buddy" >
+ <cstring>clientCombo</cstring>
+ </property>
+ </widget>
+ </item>
+ <item row="2" column="1" >
+ <widget class="QComboBox" name="filesetCombo" />
+ </item>
+ <item row="1" column="1" >
+ <widget class="QComboBox" name="clientCombo" />
+ </item>
+ <item row="4" column="1" >
+ <widget class="QComboBox" name="storageCombo" />
+ </item>
+ <item row="3" column="1" >
+ <widget class="QComboBox" name="poolCombo" />
+ </item>
+ <item row="5" column="1" >
+ <widget class="QDateTimeEdit" name="beforeDateTime" >
+ <property name="minimumDate" >
+ <date>
+ <year>2000</year>
+ <month>1</month>
+ <day>1</day>
+ </date>
+ </property>
+ <property name="displayFormat" >
+ <string>yyyy-mm-dd h:mm:ss</string>
+ </property>
+ <property name="calendarPopup" >
+ <bool>true</bool>
+ </property>
+ </widget>
+ </item>
+ <item row="2" column="0" >
+ <widget class="QLabel" name="label_3" >
+ <property name="text" >
+ <string>File Set:</string>
+ </property>
+ <property name="buddy" >
+ <cstring>filesetCombo</cstring>
+ </property>
+ </widget>
+ </item>
+ <item row="0" column="0" >
+ <widget class="QLabel" name="label" >
+ <property name="text" >
+ <string>Job:</string>
+ </property>
+ <property name="buddy" >
+ <cstring>jobCombo</cstring>
+ </property>
+ </widget>
+ </item>
+ <item row="4" column="0" >
+ <widget class="QLabel" name="label_5" >
+ <property name="text" >
+ <string>Storage:</string>
+ </property>
+ <property name="buddy" >
+ <cstring>storageCombo</cstring>
+ </property>
+ </widget>
+ </item>
+ <item row="5" column="0" >
+ <widget class="QLabel" name="label_6" >
+ <property name="text" >
+ <string>Before:</string>
+ </property>
+ <property name="buddy" >
+ <cstring>beforeDateTime</cstring>
+ </property>
+ </widget>
+ </item>
+ <item row="0" column="1" >
+ <widget class="QComboBox" name="jobCombo" >
+ <property name="sizePolicy" >
+ <sizepolicy>
+ <hsizetype>7</hsizetype>
+ <vsizetype>0</vsizetype>
+ <horstretch>0</horstretch>
+ <verstretch>0</verstretch>
+ </sizepolicy>
+ </property>
+ <property name="maximumSize" >
+ <size>
+ <width>600</width>
+ <height>600</height>
+ </size>
+ </property>
+ </widget>
+ </item>
+ </layout>
+ </item>
+ <item>
+ <widget class="QDialogButtonBox" name="buttonBox" >
+ <property name="orientation" >
+ <enum>Qt::Horizontal</enum>
+ </property>
+ <property name="standardButtons" >
+ <set>QDialogButtonBox::Cancel|QDialogButtonBox::NoButton|QDialogButtonBox::Ok</set>
+ </property>
+ </widget>
+ </item>
+ </layout>
+ </widget>
+ <resources/>
+ <connections>
+ <connection>
+ <sender>buttonBox</sender>
+ <signal>accepted()</signal>
+ <receiver>prerestoreForm</receiver>
+ <slot>accept()</slot>
+ <hints>
+ <hint type="sourcelabel" >
+ <x>248</x>
+ <y>254</y>
+ </hint>
+ <hint type="destinationlabel" >
+ <x>157</x>
+ <y>274</y>
+ </hint>
+ </hints>
+ </connection>
+ <connection>
+ <sender>buttonBox</sender>
+ <signal>rejected()</signal>
+ <receiver>prerestoreForm</receiver>
+ <slot>reject()</slot>
+ <hints>
+ <hint type="sourcelabel" >
+ <x>316</x>
+ <y>260</y>
+ </hint>
+ <hint type="destinationlabel" >
+ <x>286</x>
+ <y>274</y>
+ </hint>
+ </hints>
+ </connection>
+ </connections>
+</ui>
+++ /dev/null
-<ui version="4.0" >
- <class>restoreFileForm</class>
- <widget class="QWidget" name="restoreFileForm" >
- <property name="geometry" >
- <rect>
- <x>0</x>
- <y>0</y>
- <width>400</width>
- <height>300</height>
- </rect>
- </property>
- <property name="windowTitle" >
- <string>Restore Files Dialog</string>
- </property>
- <layout class="QVBoxLayout" >
- <property name="margin" >
- <number>9</number>
- </property>
- <property name="spacing" >
- <number>6</number>
- </property>
- <item>
- <layout class="QGridLayout" >
- <property name="margin" >
- <number>8</number>
- </property>
- <property name="spacing" >
- <number>6</number>
- </property>
- <item row="2" column="0" >
- <widget class="QLabel" name="label_3" >
- <property name="text" >
- <string>File Set:</string>
- </property>
- <property name="buddy" >
- <cstring>filesetCombo</cstring>
- </property>
- </widget>
- </item>
- <item row="3" column="1" >
- <widget class="QComboBox" name="poolCombo" />
- </item>
- <item row="0" column="1" >
- <widget class="QComboBox" name="jobCombo" >
- <property name="sizePolicy" >
- <sizepolicy>
- <hsizetype>7</hsizetype>
- <vsizetype>0</vsizetype>
- <horstretch>0</horstretch>
- <verstretch>0</verstretch>
- </sizepolicy>
- </property>
- </widget>
- </item>
- <item row="1" column="0" >
- <widget class="QLabel" name="label_2" >
- <property name="text" >
- <string>Client:</string>
- </property>
- <property name="buddy" >
- <cstring>clientCombo</cstring>
- </property>
- </widget>
- </item>
- <item row="5" column="0" >
- <widget class="QLabel" name="label_6" >
- <property name="text" >
- <string>Before:</string>
- </property>
- <property name="buddy" >
- <cstring>dateTimeEdit</cstring>
- </property>
- </widget>
- </item>
- <item row="4" column="0" >
- <widget class="QLabel" name="label_5" >
- <property name="text" >
- <string>Storage:</string>
- </property>
- <property name="buddy" >
- <cstring>storageCombo</cstring>
- </property>
- </widget>
- </item>
- <item row="4" column="1" >
- <widget class="QComboBox" name="storageCombo" />
- </item>
- <item row="3" column="0" >
- <widget class="QLabel" name="label_4" >
- <property name="text" >
- <string>Pool:</string>
- </property>
- <property name="buddy" >
- <cstring>poolCombo</cstring>
- </property>
- </widget>
- </item>
- <item row="1" column="1" >
- <widget class="QComboBox" name="clientCombo" />
- </item>
- <item row="5" column="1" >
- <widget class="QDateTimeEdit" name="dateTimeEdit" >
- <property name="minimumDate" >
- <date>
- <year>2000</year>
- <month>1</month>
- <day>1</day>
- </date>
- </property>
- <property name="displayFormat" >
- <string>yyyy-mm-dd h:mm:ss</string>
- </property>
- <property name="calendarPopup" >
- <bool>true</bool>
- </property>
- </widget>
- </item>
- <item row="0" column="0" >
- <widget class="QLabel" name="label" >
- <property name="text" >
- <string>Job:</string>
- </property>
- <property name="buddy" >
- <cstring>jobCombo</cstring>
- </property>
- </widget>
- </item>
- <item row="2" column="1" >
- <widget class="QComboBox" name="filesetCombo" />
- </item>
- </layout>
- </item>
- <item>
- <layout class="QHBoxLayout" >
- <property name="margin" >
- <number>8</number>
- </property>
- <property name="spacing" >
- <number>6</number>
- </property>
- <item>
- <spacer>
- <property name="orientation" >
- <enum>Qt::Horizontal</enum>
- </property>
- <property name="sizeHint" >
- <size>
- <width>40</width>
- <height>20</height>
- </size>
- </property>
- </spacer>
- </item>
- <item>
- <widget class="QPushButton" name="nextButton" >
- <property name="text" >
- <string>Next</string>
- </property>
- </widget>
- </item>
- <item>
- <spacer>
- <property name="orientation" >
- <enum>Qt::Horizontal</enum>
- </property>
- <property name="sizeType" >
- <enum>QSizePolicy::Fixed</enum>
- </property>
- <property name="sizeHint" >
- <size>
- <width>16</width>
- <height>21</height>
- </size>
- </property>
- </spacer>
- </item>
- <item>
- <widget class="QPushButton" name="cancelButton" >
- <property name="text" >
- <string>Cancel</string>
- </property>
- </widget>
- </item>
- </layout>
- </item>
- </layout>
- </widget>
- <resources/>
- <connections/>
-</ui>
--- /dev/null
+/*
+ Bacula® - The Network Backup Solution
+
+ Copyright (C) 2000-2007 Free Software Foundation Europe e.V.
+
+ The main author of Bacula is Kern Sibbald, with contributions from
+ many others, a complete list can be found in the file AUTHORS.
+ This program is Free Software; you can redistribute it and/or
+ modify it under the terms of version two of the GNU General Public
+ License as published by the Free Software Foundation plus additions
+ that are listed in the file LICENSE.
+
+ This program is distributed in the hope that it will be useful, but
+ WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ General Public License for more details.
+
+ You should have received a copy of the GNU General Public License
+ along with this program; if not, write to the Free Software
+ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
+ 02110-1301, USA.
+
+ Bacula® is a registered trademark of John Walker.
+ The licensor of Bacula is the Free Software Foundation Europe
+ (FSFE), Fiduciary Program, Sumatrastrasse 25, 8006 Zürich,
+ Switzerland, email:ftf@fsfeurope.org.
+*/
+
+/*
+ * Version $Id: $
+ *
+ * Restore Class (Eric's brestore)
+ *
+ * Kern Sibbald, February MMVI
+ *
+ */
+
+#include "bat.h"
+#include "restore.h"
+
+restoreDialog::restoreDialog(Console *parent)
+{
+ setupUi(this);
+ this->show();
+}
+
+prerestoreDialog::prerestoreDialog(Console *parent)
+{
+ setupUi(this);
+ this->show();
+}
-
#ifndef _RESTORE_H_
#define _RESTORE_H_
+/*
+ Bacula® - The Network Backup Solution
+
+ Copyright (C) 2000-2007 Free Software Foundation Europe e.V.
+
+ The main author of Bacula is Kern Sibbald, with contributions from
+ many others, a complete list can be found in the file AUTHORS.
+ This program is Free Software; you can redistribute it and/or
+ modify it under the terms of version two of the GNU General Public
+ License as published by the Free Software Foundation plus additions
+ that are listed in the file LICENSE.
+
+ This program is distributed in the hope that it will be useful, but
+ WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ General Public License for more details.
+
+ You should have received a copy of the GNU General Public License
+ along with this program; if not, write to the Free Software
+ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
+ 02110-1301, USA.
+
+ Bacula® is a registered trademark of John Walker.
+ The licensor of Bacula is the Free Software Foundation Europe
+ (FSFE), Fiduciary Program, Sumatrastrasse 25, 8006 Zürich,
+ Switzerland, email:ftf@fsfeurope.org.
+*/
+/*
+ * Version $Id$
+ *
+ * Kern Sibbald, February 2007
+ */
+
#include <QtGui>
#include "ui_brestore.h"
+#include "ui_restore.h"
+#include "ui_prerestore.h"
+
+class Console;
+
+class prerestoreDialog : public QDialog, public Ui::prerestoreForm
+{
+ Q_OBJECT
+
+public:
+ prerestoreDialog(Console *parent);
+
+public slots:
+
+private:
+
+};
+
+class restoreDialog : public QDialog, public Ui::restoreForm
+{
+ Q_OBJECT
+
+public:
+ restoreDialog(Console *parent);
+
+public slots:
+
+private:
+
+};
+
class bRestore : public QWidget, public Ui::bRestoreForm
{
};
+
+
#endif /* _RESTORE_H_ */
<ui version="4.0" >
<class>restoreForm</class>
- <widget class="QWidget" name="restoreForm" >
+ <widget class="QDialog" name="restoreForm" >
<property name="geometry" >
<rect>
<x>0</x>
<y>0</y>
- <width>693</width>
- <height>366</height>
+ <width>1047</width>
+ <height>764</height>
</rect>
</property>
<property name="windowTitle" >
<property name="orientation" >
<enum>Qt::Horizontal</enum>
</property>
- <widget class="QTreeWidget" name="treeWidget" />
- <widget class="QTreeWidget" name="fileWidget" />
+ <widget class="QTreeWidget" name="treeWidget" >
+ <property name="sizePolicy" >
+ <sizepolicy>
+ <hsizetype>5</hsizetype>
+ <vsizetype>7</vsizetype>
+ <horstretch>0</horstretch>
+ <verstretch>0</verstretch>
+ </sizepolicy>
+ </property>
+ <property name="minimumSize" >
+ <size>
+ <width>0</width>
+ <height>0</height>
+ </size>
+ </property>
+ <property name="maximumSize" >
+ <size>
+ <width>16777215</width>
+ <height>16777215</height>
+ </size>
+ </property>
+ <property name="sizeIncrement" >
+ <size>
+ <width>0</width>
+ <height>0</height>
+ </size>
+ </property>
+ <property name="alternatingRowColors" >
+ <bool>true</bool>
+ </property>
+ <property name="columnCount" >
+ <number>1</number>
+ </property>
+ <column>
+ <property name="text" >
+ <string>1</string>
+ </property>
+ </column>
+ </widget>
+ <widget class="QTreeWidget" name="fileWidget" >
+ <property name="sizePolicy" >
+ <sizepolicy>
+ <hsizetype>7</hsizetype>
+ <vsizetype>5</vsizetype>
+ <horstretch>188</horstretch>
+ <verstretch>1</verstretch>
+ </sizepolicy>
+ </property>
+ <property name="minimumSize" >
+ <size>
+ <width>400</width>
+ <height>0</height>
+ </size>
+ </property>
+ <property name="sizeIncrement" >
+ <size>
+ <width>0</width>
+ <height>0</height>
+ </size>
+ </property>
+ <property name="alternatingRowColors" >
+ <bool>true</bool>
+ </property>
+ <property name="columnCount" >
+ <number>7</number>
+ </property>
+ <column>
+ <property name="text" >
+ <string>1</string>
+ </property>
+ </column>
+ <column>
+ <property name="text" >
+ <string>1</string>
+ </property>
+ </column>
+ <column>
+ <property name="text" >
+ <string>2</string>
+ </property>
+ </column>
+ <column>
+ <property name="text" >
+ <string>3</string>
+ </property>
+ </column>
+ <column>
+ <property name="text" >
+ <string>4</string>
+ </property>
+ </column>
+ <column>
+ <property name="text" >
+ <string>5</string>
+ </property>
+ </column>
+ <column>
+ <property name="text" >
+ <string>6</string>
+ </property>
+ </column>
+ </widget>
</widget>
</item>
<item>
</property>
<property name="sizeHint" >
<size>
- <width>60</width>
+ <width>30</width>
<height>20</height>
</size>
</property>
</spacer>
</item>
<item>
- <widget class="QPushButton" name="okButton" >
- <property name="text" >
- <string>OK</string>
- </property>
- </widget>
- </item>
- <item>
- <spacer>
+ <widget class="QDialogButtonBox" name="buttonBox" >
<property name="orientation" >
<enum>Qt::Horizontal</enum>
</property>
- <property name="sizeType" >
- <enum>QSizePolicy::Fixed</enum>
- </property>
- <property name="sizeHint" >
- <size>
- <width>31</width>
- <height>20</height>
- </size>
- </property>
- </spacer>
- </item>
- <item>
- <widget class="QPushButton" name="cancelButton" >
- <property name="text" >
- <string>Cancel</string>
+ <property name="standardButtons" >
+ <set>QDialogButtonBox::Cancel|QDialogButtonBox::NoButton|QDialogButtonBox::Ok</set>
</property>
</widget>
</item>
</layout>
</widget>
<resources/>
- <connections/>
+ <connections>
+ <connection>
+ <sender>buttonBox</sender>
+ <signal>accepted()</signal>
+ <receiver>restoreForm</receiver>
+ <slot>accept()</slot>
+ <hints>
+ <hint type="sourcelabel" >
+ <x>248</x>
+ <y>254</y>
+ </hint>
+ <hint type="destinationlabel" >
+ <x>157</x>
+ <y>274</y>
+ </hint>
+ </hints>
+ </connection>
+ <connection>
+ <sender>buttonBox</sender>
+ <signal>rejected()</signal>
+ <receiver>restoreForm</receiver>
+ <slot>reject()</slot>
+ <hints>
+ <hint type="sourcelabel" >
+ <x>316</x>
+ <y>260</y>
+ </hint>
+ <hint type="destinationlabel" >
+ <x>286</x>
+ <y>274</y>
+ </hint>
+ </hints>
+ </connection>
+ </connections>
</ui>