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

3782 Commits

Author SHA1 Message Date
Dmitry Degtyarev
117aa0653d remove AdModel specific things out of EntryWidget
this is to be able to make MembersWidget inherit from EntryWidget
2020-06-02 15:47:31 +04:00
Dmitry Degtyarev
6dcd571ffa move slots from attributes model to widget
add target_dn member to AttributesWidget
now slots affect all tabs of AttributesWidget
group members tab is now properly synced
keep currently selected attributes tab through target changes
2020-06-02 14:55:42 +04:00
Dmitry Degtyarev
81d7617b8d add moving users into group via members widget
treat member's model invisible root as the group
\ so that dropping a user into empty space of member's widget
\ adds user to group
2020-06-02 14:36:57 +04:00
0eb7e74d71
Build GPGUI along with adtool 2020-06-01 20:46:00 +04:00
a59f129613
gpgui sources imported 2020-06-01 20:45:59 +04:00
280a98f225
Use classic config.h.in header file 2020-06-01 20:45:59 +04:00
Dmitry Degtyarev
ea9a1bd558 add drag drop to group members view
change get_dn_of_index to static function of AdModel
remove unnecessary slots in MembersModel
\ fixes dn column getting unhidden on entry actions
2020-06-01 19:07:59 +04:00
Dmitry Degtyarev
ad90703471 move out drag drop logic into entry_drag_drop.cpp
so that it can be used in other entry models
2020-06-01 18:50:08 +04:00
Dmitry Degtyarev
471b881384 rename AttributesWidget members
remove unused AttributesWidget::Column
2020-06-01 18:27:18 +04:00
Dmitry Degtyarev
074f64902f only show group members tab when entry is group
move tab adding into change_model_target()
2020-06-01 18:23:42 +04:00
Dmitry Degtyarev
5b7f5eb749 add missing members_model files 2020-06-01 18:14:49 +04:00
Dmitry Degtyarev
ff36e576f5 update membership in delete_entry
move membership update into reload_attributes_of_entry_groups()
2020-06-01 18:07:56 +04:00
74a636ce4b
qt5-base package is non-existent; use qt5-base-common 2020-06-01 18:06:58 +04:00
Dmitry Degtyarev
46041da687 add "Edit Policy" action to context menu 2020-06-01 17:56:53 +04:00
Dmitry Degtyarev
31482e1721 add members tab to attributes widget
only displays names for now
2020-06-01 17:32:33 +04:00
Dmitry Degtyarev
492858a2bb move load_row() 2020-06-01 15:55:53 +04:00
Dmitry Degtyarev
362f4ae32b move attribute loaded state into AdInterface
load_attributes is now called only within AdInterface
\ on first load and then any time entry is edited
\ within AdInterface
split load_row() out of AdModel::on_load_attributes_complete()
call load_row() explicitly in AdModel::make_new_row
fix emitting signal too early in delete_entry()
2020-06-01 15:55:13 +04:00
Dmitry Degtyarev
0c50b66737 change attributes widget to QTabWidget 2020-06-01 14:04:19 +04:00
Dmitry Degtyarev
c5b574de19 add missing "= nullptr" to main_window.h 2020-06-01 13:50:21 +04:00
Dmitry Degtyarev
e0078b9e0c remove unnecessary advanced view flag in ad proxy
use isChecked() directly on advanced view action
2020-06-01 13:40:30 +04:00
Dmitry Degtyarev
225350a15b remove unnecessary "QObject::"s 2020-06-01 13:38:18 +04:00
Dmitry Degtyarev
771b5e727c add preferences for attributes targeting
optional targeting by left clicking in containers and contents
\ windows
2020-06-01 13:33:42 +04:00
NIR
67fe633322
Merge pull request #24 from altlinuxteam/licensing_headers
Licensing headers added
2020-05-30 21:50:40 +04:00
412a6d3a9f
Licensing headers added 2020-05-29 19:16:35 +04:00
Dmitry Degtyarev
596996a8e0 fix incomplete sync in AdInterface::move_user()
update internal attributes cache of user
\ and all groups that user is member of
2020-05-29 18:32:08 +04:00
NIR
e2c07b79dc
Merge pull request #21 from altlinuxteam/license
License file added
2020-05-29 17:49:59 +04:00
Dmitry Degtyarev
05fbe8fad4 add new slots to AttributesModel
on_move_user_complete and on_load_attributes_complete
2020-05-29 17:47:17 +04:00
Dmitry Degtyarev
0abb4ea019 load attributes on add_user_to_group success
to update displayed attributes after this operation
2020-05-29 17:36:36 +04:00
Dmitry Degtyarev
1c8784e89c fix active_directory.c indentation 2020-05-29 17:26:09 +04:00
Dmitry Degtyarev
be36ce968e fix constness in active_directory lib
strdup only when needed
fix a memory leak in ad_create_computer()
use "*" instead of NULL in ad_get_attribute() call for
\ getting all attributes
remove commented out ad_get_attribute_old()
remove shadowing of "dn" argument in ad_list()
2020-05-29 17:25:02 +04:00
2e29751c14
License file added 2020-05-29 17:20:51 +04:00
Dmitry Degtyarev
f3d5cf0cbe convert tabs to spaces in active_directory 2020-05-29 17:20:46 +04:00
Dmitry Degtyarev
50074a545d remove qstr_to_cstr()
didn't work correctly
need to manually extract constData from QByteArray that is in scope
2020-05-29 16:25:49 +04:00
Dmitry Degtyarev
73406ea9d5 add drag and drop of users
add dropping users to AdModel::canDropMimeData
add dropping users to AdModel::dropMimeData
fix more const breakage in active_directory.c
add statusbar messages for this new operations
add AdInterface::add_user_to_group() (doesn't work yet)
2020-05-29 15:08:27 +04:00
Dmitry Degtyarev
cec877119b reorder AdModel methods/functions 2020-05-29 14:17:31 +04:00
Dmitry Degtyarev
784777ff7e improve row loading in AdModel
use AdInterface::get_attribute()
remove getting whole attributes map with get_attributes()
2020-05-29 14:05:43 +04:00
Dmitry Degtyarev
4a5f8008c9 move init_row() into on_load_attributes_complete()
delete init_row()
2020-05-29 13:50:37 +04:00
Dmitry Degtyarev
554e7248d4 improve updating of AdModel on attribute changes
add AdInterface::load_attributes_complete() signal
rename on_set_attributes_complete to on_load_attributes_complete
init AdModel's head row after connecting signals so it loads correctly
2020-05-29 13:47:07 +04:00
Dmitry Degtyarev
9ff3ec63c5 add signals to load_children and load_attributes
fix attribute_value_exists() calls
2020-05-28 16:03:11 +04:00
Dmitry Degtyarev
548b4c03aa add attribute_value_exists() 2020-05-28 15:52:06 +04:00
Dmitry Degtyarev
1932924145 rename load_row() to init_row()
rename load_and_add_row() to make_new_row()
2020-05-28 15:25:47 +04:00
Dmitry Degtyarev
73971d045d remove duplicate load_attributes() call
remove load_attributes() call in load_row
add load_attributes() call to load_and_add_row
2020-05-28 15:21:53 +04:00
Dmitry Degtyarev
140b0c8841 create status bar
closes #14
show simple messages in status bar
make AdInterface signal signatures fit the corresponding functions
add AdInterface fail signals
add extra parameters to old AdInterface signals
2020-05-28 12:49:30 +04:00
Dmitry Degtyarev
04a66aec1d add missing actions sources 2020-05-28 11:04:02 +04:00
Dmitry Degtyarev
f8afff7ca2 make some actions global
move entry context menu creation into EntryWidget
remove connect_proxy_action
remove context_menu_requested
take new entry actions out of enum'ed list
2020-05-27 19:32:17 +04:00
Dmitry Degtyarev
1a350089a3 move attribute model editing into AttributesModel
remove this->'es
2020-05-27 17:38:46 +04:00
Dmitry Degtyarev
c37b63b563 remove incorrect const from connect_proxy_action 2020-05-27 17:12:07 +04:00
Dmitry Degtyarev
aba8e48c7f clean MainWindow ctor
move connecting AdProxy with toggle action out of ctor
\ into EntryWidget::connect_proxy_action
2020-05-27 17:04:02 +04:00
Dmitry Degtyarev
47f7fdbc04 add missing finals to class declarations 2020-05-27 16:22:25 +04:00
Dmitry Degtyarev
c91ee0b96c add parent setting to models and proxies 2020-05-27 16:20:14 +04:00