1
0
mirror of https://github.com/altlinux/admc.git synced 2024-10-27 01:55:37 +03:00
Commit Graph

739 Commits

Author SHA1 Message Date
Dmitry Degtyarev
ee0fb41bea lock group scope/type for system groups
make read only state dynamic
before read only was set in ctor and stayed that way forever
now can toggle read only whenever
needed to turn off group scope/type edits for system groups
2020-08-27 15:39:53 +04:00
Dmitry Degtyarev
b8ce70c553 make general differ for different object types
add new attributes and display strings
2020-08-27 15:09:06 +04:00
Dmitry Degtyarev
95862d54a9 block signals in load() consistently
add comments
2020-08-27 13:55:16 +04:00
Dmitry Degtyarev
093aa1bcb8 rename to "changed marker" for consistency 2020-08-27 13:46:03 +04:00
Dmitry Degtyarev
69763f1f86 add read_only to base class attribute edit 2020-08-27 13:21:50 +04:00
Dmitry Degtyarev
afc3c9280b add unlock edit
change it from button to a one-way checkbox
now has the edit marker
2020-08-27 13:03:56 +04:00
Dmitry Degtyarev
752a9afcd4 fix expiry edit compilation
use display string for label
2020-08-27 12:45:22 +04:00
Dmitry Degtyarev
d98f8ddac3 make expiry_edit.cpp 2020-08-26 18:10:46 +04:00
Dmitry Degtyarev
e7adf2388d clean up address tab 2020-08-25 17:33:47 +04:00
Dmitry Degtyarev
5acda9f6a5 fix incorrect bit operations
use bit_set()
(forgot to replace when added that f-n)
2020-08-25 17:30:43 +04:00
Dmitry Degtyarev
66baf1d414 fix edits not losing edit mark after reload 2020-08-25 17:27:27 +04:00
Dmitry Degtyarev
aeb2facb8a prevent read only edits from getting marked 2020-08-25 17:23:08 +04:00
Dmitry Degtyarev
63607d64d2 move country edit out into it's own file 2020-08-25 17:22:24 +04:00
Dmitry Degtyarev
8caa39fd1e disable apply/cancel when edits are undone 2020-08-25 16:40:56 +04:00
Dmitry Degtyarev
6e60e8a46a add edited marker to edit labels 2020-08-25 15:42:44 +04:00
Dmitry Degtyarev
76d8f025e2 add attribute edit comments 2020-08-25 14:57:24 +04:00
Dmitry Degtyarev
c66f5b2e35 remove AdResult
return bool's instead
2020-08-25 14:45:13 +04:00
Dmitry Degtyarev
18e0d76255 remove extra update_cache() calls 2020-08-25 14:23:39 +04:00
Dmitry Degtyarev
0385fa4832 fix name not being editable
don't make name edit readonly
instead don't apply stringedit if attribute is name
2020-08-25 14:13:28 +04:00
Dmitry Degtyarev
8b7e7af507 add display string for Name 2020-08-25 14:10:16 +04:00
Dmitry Degtyarev
8b11b979e6 check that name input is not empty 2020-08-25 14:09:58 +04:00
Dmitry Degtyarev
3b5823a850 delete combine_context_and_error() 2020-08-25 14:07:32 +04:00
Dmitry Degtyarev
5de83ed7df remove AdResult's error_with_context 2020-08-25 14:06:16 +04:00
Dmitry Degtyarev
9dee4bd589 use button box for expiry edit 2020-08-25 13:58:26 +04:00
Dmitry Degtyarev
7e72237bcb verify all tab edits together, then apply 2020-08-25 13:54:25 +04:00
Dmitry Degtyarev
7bee0a3618 fix create_dialog.h 2020-08-25 13:42:51 +04:00
Dmitry Degtyarev
5fef13abb8 move autofill f-ns to attribute_edit.cpp 2020-08-25 13:41:29 +04:00
Dmitry Degtyarev
edc2828aba change sama name autofill to use StringEdit args 2020-08-25 13:39:43 +04:00
Dmitry Degtyarev
56aba93b5d use readonly string edit for names 2020-08-25 13:19:13 +04:00
Dmitry Degtyarev
ae1e40064e add load_attribute_edits() 2020-08-25 13:04:18 +04:00
Dmitry Degtyarev
6bfc9c49bf load edit values on rename dialog open 2020-08-25 12:59:57 +04:00
Dmitry Degtyarev
3b6b51cc24 fix & in if statement 2020-08-25 12:58:11 +04:00
Dmitry Degtyarev
ec08471bb7 use attribute edits in rename dialog
use string edits map as arg for autofill f-ns
2020-08-25 12:57:38 +04:00
Dmitry Degtyarev
1539a3281c fix password edit not applying
change() returned false instead of true
2020-08-24 16:58:41 +04:00
Dmitry Degtyarev
7ed5d9c46c verify edits when applying details tabs
change verify/apply helper f-ns
2020-08-24 16:58:11 +04:00
Dmitry Degtyarev
fffa361715 return bool from attribute edit apply() 2020-08-24 16:40:07 +04:00
Dmitry Degtyarev
68403b2b9a group errors from apply/create together 2020-08-24 16:36:32 +04:00
Dmitry Degtyarev
1d46cdade0 only apply expiry if changed
add datetime_to_string()
rename datetime_to_string() to datetime_to_display_string()
2020-08-24 15:36:51 +04:00
Dmitry Degtyarev
f468e2422e only apply attrib edits if they changed
add AttributeEdit::changed()
2020-08-24 15:28:29 +04:00
Dmitry Degtyarev
22e26d2552 fix using display value as raw value for datetime 2020-08-24 15:14:35 +04:00
Dmitry Degtyarev
9de9b44dcd reimplement expiry edit in account tab
make details ptr in details tab private
2020-08-24 15:12:04 +04:00
Dmitry Degtyarev
58b5659fb8 append asterisk to details tabs after edits
connect attrib edits to details through tabs
rename tab_label var to tab_text
2020-08-24 14:01:51 +04:00
Dmitry Degtyarev
3a28d54d19 declare subclass f-n groups using a macro
in attribute edit and details tab
2020-08-24 13:29:58 +04:00
Dmitry Degtyarev
3a7cfcacaf remove old attribute edit stuff from details tab
remove reload_internal(), reload() is used directly
add TabHandle enum and store tab ptrs in array
remove get_title(), get titles in DetailsWidget
2020-08-24 13:10:27 +04:00
Dmitry Degtyarev
53854aefeb remove batch/no batch option from apply edits 2020-08-24 12:41:22 +04:00
Dmitry Degtyarev
9fab1ec23d load last object class value in StringEdit::load() 2020-08-24 12:24:17 +04:00
Dmitry Degtyarev
f23c29c35d implement apply being disabled without changes
fix incomplete reload of detailswidget on cancel
remove checks for changes in edits, since apply button is blocked
2020-08-21 17:59:24 +04:00
Dmitry Degtyarev
78edce4552 use attribute edits in account tab
turn off expiry for now
move acc option conflic to make_account_option_edits()
improve that as well, wasnt doing correctly both ways before
2020-08-21 16:21:25 +04:00
Dmitry Degtyarev
f15c14daf6 add "None" option for country 2020-08-21 15:09:08 +04:00
Dmitry Degtyarev
2b550bf4c2 use attribute edit in address tab 2020-08-21 14:52:15 +04:00