]> git.sur5r.net Git - bacula/bacula/blob - bacula/src/qt-console/TODO
e76b5d7e57b8ee2b9464574d620ee6a7009fb419
[bacula/bacula] / bacula / src / qt-console / TODO
1 Broken with multiple directors:
2 - If you click on the second director, it will probably open, but
3 none of the pages that are defined below it will be able to talk
4 to it.  They will most likely talk to the first director.
5
6 - Possibly some other things I didn't think of.
7
8 Things to do:
9 - When any director is clicked, we need to set it as the current
10 director and set the current console as well.
11
12 - When any console is clicked we need to set it as the current
13 console (m_console) and also set its director as the current
14 director (m_topItem).  These are in the mainwin class.
15
16 - When any page is selected, we must set both the current
17 director (m_topItem) and current console (m_console) that this
18 page is connected to.
19
20 - We currently have a concept of the current or global console
21 (and Director), and I think we must keep this because the tool
22 bar buttons and menu items can only work with one
23 Director/console.
24
25 - I think we need to make the current Director more explicit, by
26 perhaps highlighting it in the page selector when it is current
27 and unhighlighting it when it is not (we could use color as we do
28 for the console, though some color blind people may have
29 problems.
30
31 - We also need a concept of a "local" director/console for each
32 page, so the page knows who it is talking to -- this doesn't
33 currently exist, so I think we must pass the director and console
34 to each page widget constructor.
35
36 - We also must somehow make the low level I/O routines know which
37 director/console to use.  Currently they always use the single
38 global one defined in the mainWin class (if I remember right).
39
40 In short, there is a lot of work to be done to make multiple
41 simultaneous directors work.
42
43 If the above prooves to be too much, we might consider to only
44 have a single director at a time, and simply let the user select
45 which director he wants to connect to (one at a time, but
46 dynamically).  In the end, this may be the best thing to do, so
47 any user who wishes to connect to multiple directors would run
48 two instances of bat.  I am a bit unsure now, but the above list
49 of things to do is much bigger than I thought it was going to be.
50
51 Another idea for what you have implemented:
52 - I think that the dynamic pages that you create on the fly
53 should be nested under the item that creates them more like a
54 directory tree.
55
56 For example: Jobs on Volume xxx, probably should be shown under
57 "All Jobs" (or Media if that is what created it) and "Jobs of
58 Client Rufus" probably should be shown under "Clients".  I base
59 this on looking at the Select page list after I have brought up 3
60 or 4 dynamic pages.  Once there are a good number, I get a bit
61 confused where they came from.  This would also permit selecting
62 multipe Volumes then displaying multiple pages, one for each
63 Volume selected.  If they are nested, then that nested level can
64 be expanded or collapsed, which would be pretty cool at keeping
65 information, but getting it out of the way, sort of like what
66 happens for a directory tree.