• Home
  • History
  • Annotate
Name Date Size #Lines LOC

..03-May-2022-

bcomm/H03-Jun-2021-856627

clients/H03-Jun-2021-504345

console/H03-Jun-2021-1,211937

fileset/H03-Jun-2021-400259

help/H03-May-2022-195120

images/H03-May-2022-

job/H03-Jun-2021-1,3331,160

jobgraphs/H03-Jun-2021-1,056852

joblist/H03-Jun-2021-1,3181,072

joblog/H03-Jun-2021-296203

jobs/H03-Jun-2021-490367

label/H03-Jun-2021-487412

mediaedit/H03-Jun-2021-1,076969

mediainfo/H03-Jun-2021-1,015904

medialist/H03-Jun-2021-1,4981,130

mount/H03-Jun-2021-333267

relabel/H03-Jun-2021-418347

restore/H03-Jun-2021-5,9215,134

run/H03-Jun-2021-4,0993,844

select/H03-Jun-2021-522378

status/H03-Jun-2021-2,0921,665

storage/H03-Jun-2021-1,3981,069

testprogs/H03-Jun-2021-571445

tray-monitor/H03-Jun-2021-22,29917,594

ts/H03-Jun-2021-9,8879,874

util/H03-Jun-2021-970617

win32/H03-Jun-2021-258185

COMMANDSH A D03-Jun-20213 KiB12693

External-qt-consoleH A D03-Jun-20211 KiB2726

PAGESH A D03-Jun-20212 KiB4538

PREFSH A D03-Jun-2021235 107

READMEH A D03-Jun-20214.5 KiB11993

README.mingw32H A D03-Jun-20212.5 KiB12188

RELEASEFEATURESH A D03-Jun-20213.3 KiB7462

TODOH A D03-Jun-202111.6 KiB314227

bat.conf.exampleH A D03-Jun-2021153 119

bat.conf.inH A D03-Jun-2021260 1412

bat.hH A D03-Jun-20211.3 KiB6535

bat.pro.androidH A D03-Jun-20214.5 KiB188158

bat.pro.inH A D03-May-20224.8 KiB198158

bat.pro.mingw32.inH A D03-Jun-20215.7 KiB202163

bat.pro.mingw64.inH A D03-Jun-20215.7 KiB202163

bat_conf.cppH A D03-Jun-202110.6 KiB339228

bat_conf.hH A D03-Jun-20213.7 KiB12770

build-depkgs-qt-consoleH A D03-Jun-20214.4 KiB166137

install_conf_file.inH A D03-Jun-2021457 1713

main.cppH A D03-Jun-20216.9 KiB270187

main.qrcH A D03-Jun-20213.1 KiB9089

main.uiH A D03-Jun-202116 KiB582581

mainwin.cppH A D03-Jun-202136 KiB1,028778

mainwin.hH A D03-Jun-20214.5 KiB172128

make-win32H A D03-Jun-20213.5 KiB10576

pages.cppH A D03-Jun-202111.7 KiB446255

pages.hH A D03-Jun-20212.8 KiB10454

prefs.uiH A D03-Jun-202121.5 KiB734733

qstd.cppH A D03-Jun-20212.5 KiB10583

qstd.hH A D03-Jun-20212.4 KiB8017

qwtconfig.priH A D03-Jun-20213 KiB8968

README

1
2This directory contains the Bacula Admin Tool (bat).
3
4At the current time, the contents of this directory are under
5development.  If you want to help, please contact Kern directly.
6If you want to build it, you need Qt4 loaded and setup as your
7default Qt or with the appropriate Qt Environment variables set.
8
96/24/07
10There is now one dependency, it is qwt.  It compiles just fine with
11either qwt-5.0.2 or qwt-5.0.1.  You can either install the qwt package
12yourself or if your distro does not have it, we have included the source
13in depkgs-qt, which you can download from the Bacula Source Forge
14download area.
15
16Building and running bat is done much like bconsole, the gnome console,
17or the wxWidgets console.  You add the appropriate options to your
18./configure, then simply do a make.  Please see the Installation chapter
19of the manual for more details.
20
21
22Win32 mingw infos for QT4 :
23 - http://silmor.de/29
24 - http://doc.qtfr.org/post/2007/04/10/Cross-Compilation-Native-dapplication-Qt-depuis-Linux
25
26Development status as of 05/06/07
27
28Items not implemented:
29- Nothing on the brestore page
30
31Translations:
32- All translatable strings should be written as tr("string") ...
33- To extract the strings for translation run:
34
35   lupdate bat.pro
36
37- To translate the strings, do:
38
39   linguist ts/bat_xx.ts
40
41  where xx is the country code (e.g. fr or de)
42
43- To "compile" the translated strings do:
44
45  lrelease bat.pro
46
47  The necessary binary files will be in ts/bat_xx.qm
48  As far as I can tell, these files must be on your path or
49  in the same directory as bat for them to be used, otherwise
50  it reverts to English. Selecting the translation is based on
51  how your system is setup or the LANG environment variable.
52
53Design decisions:
54- If possible all code for a particular component will be kept in
55  an appropriate subdirectory.
56- All private class variables are named "m_xxx" this makes it very
57  clear if one is referencing a class variable or a local.
58- All signal/slots are connected by explicit code (most all are
59  done in the MainWin constructor), rather than using designer.
60- Each page has a separate designer .ui file in a subdirectory.
61- All windows are created with designer and have
62  a name such as xxxForm i.e. the main window is MainForm and kept
63  in main.ui.
64
65Major projects:
66- Implement other restore interfaces such as brestore ...
67- Implement a database browser
68- Implement a resource (conf file) browser
69- Implement a reports page -- e.g. something similar to bweb
70- Implement Qt plugins to add new functionality to bat
71- Implement a GUI configuration file editor (something like JBacula).
72...
73
74Partially Done:
75===========================
76- Implement graphical commands that allow updating most aspects of
77  the database (i.e. commands for label, update Volume, ...)
78      still need to be able to edit a pool object
79
80- None of the menu items except About, Select Font, and Quit.
81    Print and save don't do anything, does save need to??
82Done:
83============================
84Design/implementation considerations:
85- Need icons in front of the Director.
86- The console page should be in a DockWidget so it can be removed
87  from the main window. It is currently in a dock window, but it
88  does not remove properly -- more research needed.
89- Need to figure out a good implementation of adding pages and even
90  having plugins that load as pages.  Currently the page mechanism
91  is a bit kludged.
92
93- We need to have multiple Directors
94- Each Director should have its own console
95- The Console class needs to be a list or be attached to the
96  currently active Director.
97- Will automatically connect to the first Director in the
98  conf file. Doesn't know about multiple Directors.
99
100- The Label menu bar item, prints on the shell window what you entered.
101- The Run menu bar item, prints on the console window what you entered.
102- The Restore menu bar item, brings up dialog, then when OK is
103  clicked, it goes on to the next dialog, which is meant to be
104  a tree view, but for the moment does nothing ...  It is a bit
105  ugly. Canceling it should get you back to the normal command prompt.
106
107- Implement a restore page that does a directory tree restore selection
108  much like wx-console does.
109
110Not working:
111- The left selection window and the right window (where the console
112  is) are dockable windows so should be movable once they are properly
113  clicked.  Well, they sort of move, but then get stuck.  I haven't figured
114  out what is going on, so for the current time, I am implementing most
115  stuff through dialogs.
116
117Items implemented:
118  See RELEASEFEATURES
119

README.mingw32

1
2BUILD SYSTEM: Ubuntu gutsy
3STATUS: Works
4
5REQUIRE:
6 - Bacula cross compilation tool (must be able to compile bacula-fd.exe)
7 - wine (apt-get install wine)
8 - qt mingw32 distribution
9
10ORIGINAL HOWTO (french):
11http://doc.qtfr.org/post/2007/04/10/Cross-Compilation-Native-dapplication-Qt-depuis-Linux
12
13Legend:
14# comment
15$ shell command
16* tips
17
18Directory setup
19---------------
20$ cd bacula/src/win32
21$ ./build-win32-cross-tools
22$ ./build-depkgs-mingw32
23
24It will result something like :
25
26./
27|-- depkgs-mingw32
28|-- cross-tools
29`-- bacula
30
31Linux bacula setup -- Note: I believe that this is *required* before trying
32                      to build the Win32 bat.
33------------
34$ cd bacula
35$ ./configure <your-options-for Linux>
36$ cd bacula/src/win32
37$ make
38
39Make sure that bacula/src/win32/release/bacula.dll is built
40
41QT4 setup
42----------
43
44Install QT for mingw
45
46Get the mingw installation from http://trolltech.com/developer/downloads/qt/windows
47(Try to get the same version than your linux installation)
48ftp://ftp.qtsoftware.com/qt/source
49
50
51$ wine qt-win-opensource-4.3.5-mingw.exe
52 * Install under c:\Qt (no space)
53 * no worry about mingw installation
54
55$ cp -r ~/.wine/drive_c/Qt/4.3.5/src/    depkgs-mingw32/include
56$ cp -r ~/.wine/drive_c/Qt/4.3.5/include depkgs-mingw32/include/qt
57$ cp -r ~/.wine/drive_c/Qt/4.3.5/lib     depkgs-mingw32/lib/qt
58# cp ~/.wine/drive_c/Qt/4.3.5/bin/QtCore4.dll src/win32/release32
59# cp ~/.wine/drive_c/Qt/4.3.5/bin/QtGui4.dll src/win32/release32
60
61MINGW setup
62-----------
63I think this only needs to be done once ...
64
65--- cross-tools/mingw32/mingw32/include/wchar.h.org     2008-07-13 15:18:52.000000000 +0200
66+++ cross-tools/mingw32/mingw32/include/wchar.h 2008-07-12 14:47:10.000000000 +0200
67@@ -394,7 +394,7 @@
68        time_t  st_ctime;       /* Creation time */
69 };
70
71-#ifndef _NO_OLDNAMES
72+#ifdef _NO_OLDNAMES_DISABLE
73 /* NOTE: Must be the same as _stat above. */
74 struct stat
75 {
76
77Compile bat
78-----------
79
80$ cd bacula/src/qt-console
81$ export DEPKGS="directory above cross-tools and depkgs"
82$ ./make-win32 clean
83$ ./make-win32
84
85Cleanup
86-------
87$ cd bacula/src/qt-console
88$ ./make-win32 clean
89
90The bat.exe will be in src/qt-console/debug/bat.exe
91
92
93
94Run Bat on Windows
95------------------
96
97You'll need
98   zlib1.dll
99   ssleay32.dll
100   libeay32.dll
101   QtCore4.dll
102   QtGui4.dll
103   bacula.dll
104   pthreadGCE.dll
105   mingwm10.dll
106   bat.conf
107
108You can find the Qt dlls in ~/.wine/drive_c/Qt/4.3.5/bin
109
110Run Bat with wine
111-----------------
112$ cd bacula/src/qt-console/debug
113
114# configure a bat.conf
115# copy all dlls to this directory
116
117$ wine bat
118
119
120That all, easy isn't it ?
121