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
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
Dmitry Degtyarev
c14a3bdbd7 add clear button to find dialog
clears filter widget and results
also to select object dialog
closes #314
2021-11-02 12:41:53 +04:00
Dmitry Degtyarev
358205ecb8 remove ok/cancel buttons from find dialog
not needed, dont make sense
2021-11-02 12:17:38 +04:00
Dmitry Degtyarev
754cdef30b make filter widget state f-ns less confusing
make it explicit that only console state is saved
by changing f-n/var names and adding a comment
2021-11-02 12:16:43 +04:00
Dmitry Degtyarev
542ab05c7a clean up security_tab.h 2021-11-02 11:16:25 +04:00
Dmitry Degtyarev
7d15515f53 redo trustee dialog in designer
reuse
save/restore geometry
2021-11-02 11:14:41 +04:00
Dmitry Degtyarev
ac8189ef5c redo error log dialog in designer
put it in a separate file
also save/restore geometry
2021-11-02 10:55:39 +04:00
Dmitry Degtyarev
92631fcafc check for nullptr label 2021-11-01 16:55:00 +04:00
Dmitry Degtyarev
584786bf4f remove unneeded QObject::tr() 2021-11-01 16:54:04 +04:00
Dmitry Degtyarev
a605742f0a todo review
select all classes in select object dialog explicitly
use single item load f-n to load items for select polic dialog
\ so that there's no assumption for row size
2021-11-01 16:52:21 +04:00
Dmitry Degtyarev
71d5f4cddf fix attributes tab sorting
don't set by hand, it overwrites saved state
2021-11-01 16:26:33 +04:00
Dmitry Degtyarev
6381ea4f25 fix security tab apply()
was syncing perms for all objects, only need to do that if
\ target is a policy
2021-11-01 16:02:17 +04:00
Dmitry Degtyarev
2a12f02bc4 reuse password dialog 2021-11-01 15:59:13 +04:00
Dmitry Degtyarev
23c9ab7a39 fix unaccessible "other" fields in managed by tab
closes #311
2021-11-01 15:13:10 +04:00
Dmitry Degtyarev
79759926f1 fix label in string other edit's editor 2021-11-01 15:12:27 +04:00
Dmitry Degtyarev
34cd881191 add AttributeEditor::set_read_only()
add AttributeEditor::set_attribute_label()
rework attribute editor base and sub class interactions
2021-11-01 15:08:02 +04:00
Dmitry Degtyarev
816996c543 emit rejected() from read only attribute editors
so that for read only case "OK" and "Cancel" buttons are the same
2021-11-01 14:52:55 +04:00
Dmitry Degtyarev
d26b4f5160 use QObject::sender()
remove complete() signals/slots
connect to accepted() and get sender dialog's
restore getters for dn/names
update tests
2021-11-01 14:06:33 +04:00
Dmitry Degtyarev
f4dc638f0d redo attributes editors for reuse
so that editors are created once and reused
add setter for attribute
move editor selection logic to attribute tab
2021-11-01 13:41:49 +04:00
Dmitry Degtyarev
d91a0a5a9d fix tests
remove trim spaces test
get new dn/name f-ns were removed so cant test that anymore
also not that necessary
2021-11-01 09:56:15 +04:00
Dmitry Degtyarev
6c9225b262 improve query cut/copy
change copy vars to members of folder impl
make query item impl call f-ns of query folder impl to cut/copy
enable cut/copy/paste for multiple items
2021-10-29 17:13:28 +04:00
Dmitry Degtyarev
7b3ae27e3d improve change dc dialog
extract console dependency
improve logic flow
2021-10-29 16:57:49 +04:00
Dmitry Degtyarev
33031faf53 remove console dep from rename policy dialog 2021-10-29 16:49:58 +04:00
Dmitry Degtyarev
66f294006c improve query dialogs
move console interaction outside dialogs
2021-10-29 15:42:04 +04:00
Dmitry Degtyarev
94193d4a59
Merge pull request #310 from altlinux/fix-connections
Fix connections for rename and create object dialogs
2021-10-29 10:17:00 +03:00
Dmitry Degtyarev
39b59b70e0 fix properties connections 2021-10-29 10:58:49 +04:00
Dmitry Degtyarev
1fe2c1ffab fix connections for create/rename dialogs
connect slots once
add dn parameters to slots, replacing getters
move QDialog::accept() calls to end of dialog f-ns
2021-10-29 10:34:24 +04:00
Dmitry Degtyarev
9b525ccfbe add tests for space trimming from names 2021-10-28 17:00:49 +04:00