itom
Loading...
Searching...
No Matches
ito::DialogUserManagementEdit Class Reference
Inheritance diagram for ito::DialogUserManagementEdit:

Public Slots

void on_pb_addScript_clicked ()
 
void on_pb_removeScript_clicked ()
 
void on_pb_downScript_clicked ()
 
void on_pb_upScript_clicked ()
 
void on_cmdUseWindowsUser_clicked ()
 

Public Member Functions

 DialogUserManagementEdit (const QString &filename, UserModel *userModel, QWidget *parent=nullptr, Qt::WindowFlags f=Qt::WindowFlags(), bool isStandardUser=false)
 

Public Attributes

Ui::userManagementEdit ui
 

Protected Member Functions

QString clearName (const QString &name)
 

Private Slots

void on_buttonBox_clicked (QAbstractButton *btn)
 
void on_lv_startUpScripts_currentRowChanged (int row)
 
void on_lineEdit_name_textChanged (const QString &text)
 
void on_cmdAutoID_toggled (bool checked)
 

Private Member Functions

void updateScriptButtons ()
 
void enableWidgetsByUserRole (const UserRole currentUserRole, const UserFeatures &currentFeatures, const UserRole userRole, const UserFeatures &features)
 sets the enabled and check state of many controls depending on the rights of the currently logged user and the user to be edited.
 
bool saveUser ()
 

Private Attributes

UserModelm_userModel
 
QString m_fileName
 
QByteArray m_oldPassword
 
QString m_osUser
 
bool m_showsStandardUser
 

Member Function Documentation

◆ enableWidgetsByUserRole()

void ito::DialogUserManagementEdit::enableWidgetsByUserRole ( const UserRole currentUserRole,
const UserFeatures & currentFeatures,
const UserRole userRole,
const UserFeatures & features )
private

sets the enabled and check state of many controls depending on the rights of the currently logged user and the user to be edited.

If the current user has admin privileges, he has the right to edit all controls. If he is a developer, he can only switch the user level of the user to be edited to basic or developer. If he is a basic user, only basic can be chosen for the current user.

Parameters
currentUserRoleis the user role of the currently logged-in user
currentFeaturesis the active feature set of the currently logged-in user
userRoleis the user role of the user, that is edited
featuresis the current feature set of the user, that is edited.

The documentation for this class was generated from the following files: