#############################################################################
# Makefile for building: bat
-# Generated by qmake (2.01a) (Qt 4.2.1) on: Sun Feb 11 17:11:46 2007
+# Generated by qmake (2.01a) (Qt 4.2.1) on: Sun Feb 11 19:50:38 2007
# Project: bat.pro
# Template: app
# Command: /usr/bin/qmake -unix -o Makefile bat.pro
all: Makefile $(TARGET)
-$(TARGET): ui_main.h ui_label.h ui_console.h ui_brestore.h ui_run.h $(OBJECTS)
+$(TARGET): ui_main.h ui_label.h ui_console.h ui_brestore.h ui_restore.h ui_restore-select.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) .tmp/bat1.0.0 || $(MKDIR) .tmp/bat1.0.0
- $(COPY_FILE) --parents $(SOURCES) $(DIST) .tmp/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 .tmp/bat1.0.0/ && $(COPY_FILE) --parents main.qrc .tmp/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 .tmp/bat1.0.0/ && $(COPY_FILE) --parents main.ui label/label.ui console/console.ui restore/brestore.ui run/run.ui .tmp/bat1.0.0/ && (cd `dirname .tmp/bat1.0.0` && $(TAR) bat1.0.0.tar bat1.0.0 && $(COMPRESS) bat1.0.0.tar) && $(MOVE) `dirname .tmp/bat1.0.0`/bat1.0.0.tar.gz . && $(DEL_FILE) -r .tmp/bat1.0.0
+ $(COPY_FILE) --parents $(SOURCES) $(DIST) .tmp/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 .tmp/bat1.0.0/ && $(COPY_FILE) --parents main.qrc .tmp/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 .tmp/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 .tmp/bat1.0.0/ && (cd `dirname .tmp/bat1.0.0` && $(TAR) bat1.0.0.tar bat1.0.0 && $(COMPRESS) bat1.0.0.tar) && $(MOVE) `dirname .tmp/bat1.0.0`/bat1.0.0.tar.gz . && $(DEL_FILE) -r .tmp/bat1.0.0
yaccclean:
-$(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_run.h
+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_clean:
- -$(DEL_FILE) ui_main.h ui_label.h ui_console.h ui_brestore.h ui_run.h
+ -$(DEL_FILE) ui_main.h ui_label.h ui_console.h ui_brestore.h ui_restore.h ui_restore-select.h ui_run.h
ui_main.h: main.ui
/usr/bin/uic main.ui -o ui_main.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_run.h: run/run.ui
/usr/bin/uic run/run.ui -o ui_run.h
To build bat, you simply enter:
- qmake
+ qmake
make
then to execute it
you edit bat.pro, doing a "make" will automatically call qmake to
rebuild the Makefile.
-Development status as of 29 Jan 07.
+Development status as of 11 Feb 07.
Items implemented:
- Reads a basic bat.conf (same as documented for the gnome-console
- Basic main window structure
- About dialog
- Quit menu item
-- Connect button (initally shows disconnected) will connect to
- the first Director defined in the conf file.
+- Connect button will connect to the first Director defined in the conf file.
- The Director name will appear in the Selection tree followed
by Console and Restore.
- Clicking on Console brings forward the console display screen
(default at startup).
-- Clicking on Restore brings up a dummy two tab "restore" page.
+- Clicking on Restore brings up a brestore page that is not active.
- The command line is implemented.
- The status line (below the command line) is implemented.
+- Selection of Font is implemented.
+- The Font and the window size are saved on exit and restored on
+ execution of bat.
Items not implemented:
- None of the menu items except About, Quit.
-- None of the tool bar icons except the connect/disconnect.
- Nothing on the restore page
Design/implementation considerations:
- The Console class needs to be a list or be attached to the
currently active Director.
- Need icons in front of the Director.
-- Need indication if a director is connected or not.
- The console page should be in a DockWidget so it can be removed
- from the main window.
+ from the main window. It is currently in a dock window, but it
+ does not remove properly -- more research needed.
- Need to figure out a good implementation of adding pages and even
having plugins that load as pages. Currently the page mechanism
is a bit kludged.
-- Each page should in principle be a separate designer .ui file
- Currently the two pages console, restore are part of main.ui,
- but they should be pulled out into their own .ui files.
Design decisions:
-- If possible all windows will be created with designer and have
- a name such as xxxForm i.e. the main window is MainForm and kept
- in main.ui.
- If possible all code for a particular component will be kept in
and appropriate subdirectory.
- All private class variables are named "m_xxx" this makes it very
clear if one is referencing a class variable or a local.
- All signal/slots are connected by explict code (most all are
done in the MainWin constructor), rather than using designer.
+- Each page has a separate designer .ui file in a subdirectory.
+- All windows are created with designer and have
+ a name such as xxxForm i.e. the main window is MainForm and kept
+ in main.ui.
Major projects:
- Implement a restore page that does a directory tree restore selection
- Implement Qt plugins to add new functionality to bat
- Implement a GUI configuration file editor (something like JBacula).
...
-
FORMS += label/label.ui
FORMS += console/console.ui
FORMS += restore/brestore.ui
+FORMS += restore/restore.ui restore/restore-select.ui
FORMS += run/run.ui
# Run dialog
HEADERS += run/run.h
SOURCES += run/run.cpp
-
--- /dev/null
+<ui version="4.0" >
+ <class>restoreForm</class>
+ <widget class="QWidget" name="restoreForm" >
+ <property name="geometry" >
+ <rect>
+ <x>0</x>
+ <y>0</y>
+ <width>693</width>
+ <height>366</height>
+ </rect>
+ </property>
+ <property name="windowTitle" >
+ <string>Restore File Selection</string>
+ </property>
+ <layout class="QVBoxLayout" >
+ <property name="margin" >
+ <number>9</number>
+ </property>
+ <property name="spacing" >
+ <number>6</number>
+ </property>
+ <item>
+ <widget class="QSplitter" name="splitter" >
+ <property name="orientation" >
+ <enum>Qt::Horizontal</enum>
+ </property>
+ <widget class="QTreeWidget" name="treeWidget" />
+ <widget class="QTreeWidget" name="fileWidget" />
+ </widget>
+ </item>
+ <item>
+ <layout class="QHBoxLayout" >
+ <property name="margin" >
+ <number>0</number>
+ </property>
+ <property name="spacing" >
+ <number>6</number>
+ </property>
+ <item>
+ <widget class="QLabel" name="label" >
+ <property name="sizePolicy" >
+ <sizepolicy>
+ <hsizetype>0</hsizetype>
+ <vsizetype>5</vsizetype>
+ <horstretch>0</horstretch>
+ <verstretch>0</verstretch>
+ </sizepolicy>
+ </property>
+ <property name="text" >
+ <string>Current Dir:</string>
+ </property>
+ </widget>
+ </item>
+ <item>
+ <widget class="QLineEdit" name="lineEdit" >
+ <property name="minimumSize" >
+ <size>
+ <width>100</width>
+ <height>0</height>
+ </size>
+ </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>60</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>
+ <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>
+ </widget>
+ </item>
+ </layout>
+ </item>
+ </layout>
+ </widget>
+ <resources/>
+ <connections/>
+</ui>