1
0
mirror of https://github.com/altlinux/admc.git synced 2025-02-02 17:47:06 +03:00

2930 Commits

Author SHA1 Message Date
Dmitry Degtyarev
55e2e7c7e7 rename attribute editors to dialogs 2021-11-09 16:25:26 +04:00
Dmitry Degtyarev
1089562c9a update translation 2021-11-09 13:41:10 +04:00
Dmitry Degtyarev
8511d9c9c9 simplify editor title generation
generate in base class
use same attribute strings for both editor titles and attributes tab
\ type column
move attribute_type_display_string() to ad_utils
2021-11-09 13:37:23 +04:00
Dmitry Degtyarev
c0267d7d00 fix editors in attributes tab 2021-11-09 12:57:18 +04:00
Dmitry Degtyarev
f653796c6c hide add/remove buttons in read only multi editor
before was disabling them, hiding is better
2021-11-09 12:17:11 +04:00
Dmitry Degtyarev
ac20768fa7 set read only for editors explicitly
not withing editors
remove AttributeEditor::accept() hack
attributes tab now just ignores accept() for read only editors
add view button to attributes tab
disable edit/view buttons in attributes tab when no selection
2021-11-09 12:15:52 +04:00
Dmitry Degtyarev
ac84502561 remove editing from multi editor
via double click
can only add/remove
2021-11-09 11:42:17 +04:00
Dmitry Degtyarev
74e06e0d23 use message_box_warning() in policy results widget 2021-11-08 17:48:29 +04:00
Dmitry Degtyarev
70c9739055 fix sync warning dialog
make it transient
remove stray accepted() slot
2021-11-08 17:45:52 +04:00
Dmitry Degtyarev
e45395b551 fix query item creation 2021-11-08 17:42:34 +04:00
Dmitry Degtyarev
ab7b33e52b add default name generation to query folders
share code with policy creation
2021-11-08 17:41:21 +04:00
Dmitry Degtyarev
f2e41a9e57 redo status global
can be initialized as extern var now that it doesn't create widgets
2021-11-08 17:19:30 +04:00
Dmitry Degtyarev
054c0ce46e get rid of init()'s
use global adconfig everywhere, not a problem anymore with two step
\ init of the app
create set_classes() and set_default_base() f-ns to replace init()
2021-11-08 17:17:28 +04:00
Dmitry Degtyarev
5f6c96018e remove outdated todo 2021-11-08 16:40:28 +04:00
Dmitry Degtyarev
cf40d6ad1b fix ambigious ui widget names 2021-11-08 16:39:13 +04:00
Dmitry Degtyarev
b8e957e4c5 fix state key 2021-11-08 16:37:46 +04:00
Dmitry Degtyarev
98cbf7c369 update translation 2021-11-08 16:36:55 +04:00
Dmitry Degtyarev
8b24e793c1 move class filter widget to filter widget folder 2021-11-08 16:36:19 +04:00
Dmitry Degtyarev
865067e81c rename filter classes widget
to class filter widget
select classes dialog -> class filter dialog
2021-11-08 16:33:34 +04:00
Dmitry Degtyarev
1fe6459c16 fix usage of filter classes widget
remove get_selected_classes_display(), instead convert classes to
\ display class strings in select classes widget
fix state management of select classes dialog
in console filter dialog, that state IS saved and restored
in select classes widget that state is not used
instead we use the selected_list
2021-11-08 16:26:07 +04:00
Dmitry Degtyarev
05e0939466 rework more dialogs 2021-11-08 15:44:07 +04:00
Dmitry Degtyarev
a70a437606 update translation 2021-11-08 14:49:14 +04:00
Dmitry Degtyarev
b0c3469b17 don't manage state inside filter dialog
remove save/restore on open/reject because dialog is not
\ reused anymore so not relevant
2021-11-08 14:45:10 +04:00
Dmitry Degtyarev
ae90299c69 rework logon hours to not reuse dialog 2021-11-08 14:43:12 +04:00
Dmitry Degtyarev
6a6967d3c8 rework logon computers dialog
to not reuse
fix tests
2021-11-08 14:40:01 +04:00
Dmitry Degtyarev
026d58f1f9 merge set_classes() into init()
for filter classes widget and all of it's users
also don't reuse select classes dialog
2021-11-08 14:32:50 +04:00
Dmitry Degtyarev
575ea6909a fix read only remove button in multi editor
don't conditionally enable remove button
so that in read only case it's always disabled
if nothing is selected clicking remove button does nothing
2021-11-08 13:22:17 +04:00
Dmitry Degtyarev
63a04200da add DeleteOnClose to filter dialog ctor 2021-11-08 13:19:49 +04:00
Dmitry Degtyarev
74ecaba89f rework custom dialog in console filter dialog 2021-11-08 13:18:37 +04:00
Dmitry Degtyarev
f4ce23f37c rework console filter dialog 2021-11-08 13:06:42 +04:00
Dmitry Degtyarev
2ebb2a710a rework edit query item widget
to not reuse filter dialog
2021-11-08 12:33:57 +04:00
Dmitry Degtyarev
01894673fe fix edit query item widget test 2021-11-08 12:19:48 +04:00
Dmitry Degtyarev
fcaa0aab8b rework dialogs
make almost all dialogs transient
some left overs will be reworked later
2021-11-08 12:17:36 +04:00
Dmitry Degtyarev
fad4a81eb2 skip hosts validity check if no hosts available 2021-11-08 11:37:35 +04:00
Dmitry Degtyarev
d0bb725b85 move load_connection_options()
to connection options dialog
call it automatically in accept()
2021-11-08 10:54:49 +04:00
Dmitry Degtyarev
f710538e0f fix quit slot in error main window 2021-11-08 10:51:53 +04:00
Dmitry Degtyarev
96964a0f5e improve connection options dialog
don't reuse, create a new one every time
load options in dialog's ctor instead of in open()
remove open() and reject() overrides
improve how host is loaded and saved
2021-11-08 10:50:25 +04:00
Dmitry Degtyarev
48f433c499 change manual to online version 2021-11-08 09:58:05 +04:00
Dmitry Degtyarev
782025ecb3 fix tests compilation 2021-11-04 15:04:38 +04:00
Dmitry Degtyarev
e9d1ff977e center main windows
center error window always
center main window if no geometry(position) is saved
2021-11-04 14:32:06 +04:00
Dmitry Degtyarev
c351e00359 merge dc dialog into connection options
remove host text from domain item in console
\ not needed, because current host can now be checked in connection
\ options
2021-11-04 14:29:32 +04:00
Dmitry Degtyarev
9d6a4cf5b2 improve action connections
rename "show user client" to "show login"
remove main window private header, don't need it
bring back old style of language slot, connect it while creating
inline settings_connect_action_to_bool_setting()
2021-11-04 13:27:50 +04:00
Dmitry Degtyarev
2280b071ea rework how console filter dialog works
it's given to object impl and then impl gets filter directly from
\ the dialog
replace refresh_object_tree() with ObjectImpl::refresh_tree()
2021-11-04 12:19:52 +04:00
Dmitry Degtyarev
143072a63c merge MainWindow::connect_to_server() into ctor
don't need to disable/enable filter action anymore
also don't need to save some impl's as members
move state/geom restore to before connections
2021-11-04 10:46:30 +04:00
Dmitry Degtyarev
13aa4a9cfc create a separate main window for offline case
opens in case of connection failure
remove connect action from real main window
2021-11-04 10:28:56 +04:00
Dmitry Degtyarev
f3934eb26e create pimpl for main window 2021-11-03 16:04:57 +04:00
Dmitry Degtyarev
94d4784477 save more dialog geometries
covered most of them
also rename setting for console filter dialog, to not conflict
\ with setting for filter dialog
2021-11-03 15:55:51 +04:00
Dmitry Degtyarev
47c54d3b67 reduce number of lambda slots 2021-11-03 15:16:54 +04:00
Dmitry Degtyarev
7edf9b9fc7 get rid of filter_classes_widget()
make pass-through f-ns
2021-11-03 14:42:19 +04:00
Dmitry Degtyarev
821945699b get rid of edit_widget()
in query dialogs
make pass-through f-ns
2021-11-03 14:37:07 +04:00