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

2907 Commits

Author SHA1 Message Date
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
Dmitry Degtyarev
de76de770f remove some dependencies on global adconfig
fixes filter dialog in edit query item dialog loading combo's
\ incorrectly
split some init() f-ns into init() and set_classes()
pass config in connect() to children, all the way down to where
\ they are needed
this might be part of future rework to not use global adconfig at all
2021-11-03 14:30:08 +04:00
Dmitry Degtyarev
a648c39e74 remove length limit from string large edit
buggy and not needed because server will return error if input is
\ too long
2021-11-03 13:06:30 +04:00
Dmitry Degtyarev
2442ffe66c use a more limited set of classes for filtering
in console filter dialog
in the custom filter dialog more classes are still available
2021-11-03 13:05:22 +04:00
Dmitry Degtyarev
e32d60166f save match dialog geometry and state
also free ui
2021-11-03 11:08:37 +04:00
Dmitry Degtyarev
3e8706142e rework select object dialog
extract match dialog into separate files
reuse match dialog
add add_objects_to_list() to reduce duplication of code that adds items
\ to select object dialog's model from match/advanced dialogs
2021-11-03 10:37:25 +04:00
Dmitry Degtyarev
f803a0471d fix select match dialog buttons not working
renamed button box in designer but it somehow failed to change name of
\button box in "sender" fields for accept/reject signals
\(it was named button_box, but sender was buttonBox)
2021-11-03 09:57:09 +04:00
Dmitry Degtyarev
5e7cab808a reuse advanced select dialog
this also creates a (good?) side-effect of advanced dialog retaining
\ state between opens (but only for the same parent select dialog)
2021-11-02 17:29:48 +04:00
Dmitry Degtyarev
58862ef733 remove QDialog::connect() 2021-11-02 17:23:14 +04:00
Dmitry Degtyarev
658cfaa0cb remove QObject::sender() from attributes tab
make explicit slots
2021-11-02 17:21:45 +04:00
Dmitry Degtyarev
7eb9bf6b7a simplify create/rename dialog slots
get rid of QObject::sender() usage
make explicit slots
2021-11-02 17:17:56 +04:00
Dmitry Degtyarev
0d70c10a4f fix duped connection in multi editor
was making a new connection each time an editor was opened for add/edit
2021-11-02 17:12:15 +04:00
Dmitry Degtyarev
23ac8ffac3 update translation 2021-11-02 16:10:52 +04:00
Dmitry Degtyarev
efbef92f20 run clang-format 2021-11-02 15:54:13 +04:00
Dmitry Degtyarev
9fec6f444a fix formatting before clang-format 2021-11-02 15:52:34 +04:00
Dmitry Degtyarev
c3fb7421a1 fix tests 2021-11-02 14:16:22 +04:00
Dmitry Degtyarev
83b984c490 create separate files for attributes tab children 2021-11-02 14:13:09 +04:00
Dmitry Degtyarev
0aaa6e53a0 create separate file for logon computers dialog 2021-11-02 14:03:52 +04:00
Dmitry Degtyarev
66b6d7d24a create separate file for logon hours dialog 2021-11-02 14:00:23 +04:00
Dmitry Degtyarev
3dcc8ec662 fix filter widget test 2021-11-02 13:55:26 +04:00
Dmitry Degtyarev
91997ecf2c clean up edited() emit connections 2021-11-02 13:53:07 +04:00
Dmitry Degtyarev
871d353daa clean up QObject::connect()
in cases where can just call "connect()"
2021-11-02 13:50:09 +04:00
Dmitry Degtyarev
ad40f16dfb improve default class filtering logic
add selected_list arg to add_classes() f-ns
for select object dialog, selected_list is the same as class_list,
\ so that all classes are selected
for find object dialog, selected_list is users, contacts and groups
remove select_all_classes()
2021-11-02 13:47:59 +04:00
Dmitry Degtyarev
af2fdaab7a make separate file for select classes dialog
make reset() private
2021-11-02 13:12:37 +04:00