1
0
mirror of https://github.com/altlinux/admc.git synced 2025-03-13 16:58:20 +03:00

remove unused class arg from edit ctors

This commit is contained in:
Dmitry Degtyarev 2021-10-05 17:15:31 +04:00
parent f9425230b8
commit 3dbc3e33d2
23 changed files with 67 additions and 71 deletions

View File

@ -36,9 +36,9 @@ CreateUserDialog::CreateUserDialog(QWidget *parent)
ui->setupUi(this); ui->setupUi(this);
QList<AttributeEdit *> edit_list; QList<AttributeEdit *> edit_list;
new StringEdit(ui->first_name_edit, ATTRIBUTE_FIRST_NAME, CLASS_USER, &edit_list, this); new StringEdit(ui->first_name_edit, ATTRIBUTE_FIRST_NAME, &edit_list, this);
new StringEdit(ui->last_name_edit, ATTRIBUTE_LAST_NAME, CLASS_USER, &edit_list, this); new StringEdit(ui->last_name_edit, ATTRIBUTE_LAST_NAME, &edit_list, this);
new StringEdit(ui->initials_edit, ATTRIBUTE_INITIALS, CLASS_USER, &edit_list, this); new StringEdit(ui->initials_edit, ATTRIBUTE_INITIALS, &edit_list, this);
sama_edit = new SamaEdit(ui->sama_edit, ui->sama_domain_edit, &edit_list, this); sama_edit = new SamaEdit(ui->sama_edit, ui->sama_domain_edit, &edit_list, this);
new PasswordEdit(ui->password_main_edit, ui->password_confirm_edit, &edit_list, this); new PasswordEdit(ui->password_main_edit, ui->password_confirm_edit, &edit_list, this);

View File

@ -26,10 +26,9 @@
#include <QLineEdit> #include <QLineEdit>
StringEdit::StringEdit(QLineEdit *edit_arg, const QString &attribute_arg, const QString &objectClass_arg, QList<AttributeEdit *> *edits_out, QObject *parent) StringEdit::StringEdit(QLineEdit *edit_arg, const QString &attribute_arg, QList<AttributeEdit *> *edits_out, QObject *parent)
: AttributeEdit(edits_out, parent) { : AttributeEdit(edits_out, parent) {
attribute = attribute_arg; attribute = attribute_arg;
objectClass = objectClass_arg;
edit = edit_arg; edit = edit_arg;
if (g_adconfig->get_attribute_is_number(attribute)) { if (g_adconfig->get_attribute_is_number(attribute)) {

View File

@ -28,13 +28,12 @@ class QLineEdit;
class StringEdit final : public AttributeEdit { class StringEdit final : public AttributeEdit {
Q_OBJECT Q_OBJECT
public: public:
StringEdit(QLineEdit *edit_arg, const QString &attribute_arg, const QString &objectClass_arg, QList<AttributeEdit *> *edits_out, QObject *parent); StringEdit(QLineEdit *edit_arg, const QString &attribute_arg, QList<AttributeEdit *> *edits_out, QObject *parent);
DECL_ATTRIBUTE_EDIT_VIRTUALS(); DECL_ATTRIBUTE_EDIT_VIRTUALS();
private: private:
QLineEdit *edit; QLineEdit *edit;
QString attribute; QString attribute;
QString objectClass;
friend class StringOtherEdit; friend class StringOtherEdit;
}; };

View File

@ -25,10 +25,9 @@
#include <QPlainTextEdit> #include <QPlainTextEdit>
StringLargeEdit::StringLargeEdit(QPlainTextEdit *edit_arg, const QString &attribute_arg, const QString &objectClass_arg, QList<AttributeEdit *> *edits_out, QObject *parent) StringLargeEdit::StringLargeEdit(QPlainTextEdit *edit_arg, const QString &attribute_arg, QList<AttributeEdit *> *edits_out, QObject *parent)
: AttributeEdit(edits_out, parent) { : AttributeEdit(edits_out, parent) {
attribute = attribute_arg; attribute = attribute_arg;
objectClass = objectClass_arg;
edit = edit_arg; edit = edit_arg;
const int range_upper = g_adconfig->get_attribute_range_upper(attribute); const int range_upper = g_adconfig->get_attribute_range_upper(attribute);

View File

@ -33,13 +33,12 @@ class QPlainTextEdit;
class StringLargeEdit final : public AttributeEdit { class StringLargeEdit final : public AttributeEdit {
Q_OBJECT Q_OBJECT
public: public:
StringLargeEdit(QPlainTextEdit *edit, const QString &attribute_arg, const QString &objectClass_arg, QList<AttributeEdit *> *edits_out, QObject *parent); StringLargeEdit(QPlainTextEdit *edit, const QString &attribute_arg, QList<AttributeEdit *> *edits_out, QObject *parent);
DECL_ATTRIBUTE_EDIT_VIRTUALS(); DECL_ATTRIBUTE_EDIT_VIRTUALS();
private: private:
QPlainTextEdit *edit; QPlainTextEdit *edit;
QString attribute; QString attribute;
QString objectClass;
}; };
#endif /* STRING_LARGE_EDIT_H */ #endif /* STRING_LARGE_EDIT_H */

View File

@ -28,10 +28,10 @@
#include <QLineEdit> #include <QLineEdit>
#include <QPushButton> #include <QPushButton>
StringOtherEdit::StringOtherEdit(QLineEdit *line_edit_arg, QPushButton *other_button_arg, const QString &main_attribute, const QString &other_attribute_arg, const QString &object_class, QList<AttributeEdit *> *edits_out, QObject *parent) StringOtherEdit::StringOtherEdit(QLineEdit *line_edit_arg, QPushButton *other_button_arg, const QString &main_attribute, const QString &other_attribute_arg, QList<AttributeEdit *> *edits_out, QObject *parent)
: AttributeEdit(edits_out, parent) : AttributeEdit(edits_out, parent)
, other_attribute(other_attribute_arg) { , other_attribute(other_attribute_arg) {
main_edit = new StringEdit(line_edit_arg, main_attribute, object_class, nullptr, parent); main_edit = new StringEdit(line_edit_arg, main_attribute, nullptr, parent);
connect( connect(
main_edit, &AttributeEdit::edited, main_edit, &AttributeEdit::edited,

View File

@ -38,7 +38,7 @@ class QLineEdit;
class StringOtherEdit final : public AttributeEdit { class StringOtherEdit final : public AttributeEdit {
Q_OBJECT Q_OBJECT
public: public:
StringOtherEdit(QLineEdit *line_edit, QPushButton *other_button, const QString &main_attribute_arg, const QString &other_attribute_arg, const QString &object_class, QList<AttributeEdit *> *edits_out, QObject *parent); StringOtherEdit(QLineEdit *line_edit, QPushButton *other_button, const QString &main_attribute_arg, const QString &other_attribute_arg, QList<AttributeEdit *> *edits_out, QObject *parent);
DECL_ATTRIBUTE_EDIT_VIRTUALS(); DECL_ATTRIBUTE_EDIT_VIRTUALS();
private: private:

View File

@ -33,9 +33,9 @@ RenameUserDialog::RenameUserDialog(QWidget *parent)
ui->setupUi(this); ui->setupUi(this);
QList<AttributeEdit *> edit_list; QList<AttributeEdit *> edit_list;
new StringEdit(ui->first_name_edit, ATTRIBUTE_FIRST_NAME, CLASS_USER, &edit_list, this); new StringEdit(ui->first_name_edit, ATTRIBUTE_FIRST_NAME, &edit_list, this);
new StringEdit(ui->last_name_edit, ATTRIBUTE_LAST_NAME, CLASS_USER, &edit_list, this); new StringEdit(ui->last_name_edit, ATTRIBUTE_LAST_NAME, &edit_list, this);
new StringEdit(ui->full_name_edit, ATTRIBUTE_DISPLAY_NAME, CLASS_USER, &edit_list, this); new StringEdit(ui->full_name_edit, ATTRIBUTE_DISPLAY_NAME, &edit_list, this);
upn_edit = new UpnEdit(ui->upn_prefix_edit, ui->upn_suffix_edit, &edit_list, this); upn_edit = new UpnEdit(ui->upn_prefix_edit, ui->upn_suffix_edit, &edit_list, this);
sama_edit = new SamaEdit(ui->sama_edit, ui->sama_domain_edit, &edit_list, this); sama_edit = new SamaEdit(ui->sama_edit, ui->sama_domain_edit, &edit_list, this);

View File

@ -30,12 +30,12 @@ AddressTab::AddressTab() {
ui = new Ui::AddressTab(); ui = new Ui::AddressTab();
ui->setupUi(this); ui->setupUi(this);
new StringLargeEdit(ui->street_edit, ATTRIBUTE_STREET, CLASS_USER, &edits, this); new StringLargeEdit(ui->street_edit, ATTRIBUTE_STREET, &edits, this);
new StringEdit(ui->po_box_edit, ATTRIBUTE_PO_BOX, CLASS_USER, &edits, this); new StringEdit(ui->po_box_edit, ATTRIBUTE_PO_BOX, &edits, this);
new StringEdit(ui->city_edit, ATTRIBUTE_CITY, CLASS_USER, &edits, this); new StringEdit(ui->city_edit, ATTRIBUTE_CITY, &edits, this);
new StringEdit(ui->state_edit, ATTRIBUTE_STATE, CLASS_USER, &edits, this); new StringEdit(ui->state_edit, ATTRIBUTE_STATE, &edits, this);
new StringEdit(ui->postal_code_edit, ATTRIBUTE_POSTAL_CODE, CLASS_USER, &edits, this); new StringEdit(ui->postal_code_edit, ATTRIBUTE_POSTAL_CODE, &edits, this);
new CountryEdit(ui->country_combo, &edits, this); new CountryEdit(ui->country_combo, &edits, this);

View File

@ -33,9 +33,9 @@ GeneralComputerTab::GeneralComputerTab(const AdObject &object) {
load_name_label(ui->name_label, object); load_name_label(ui->name_label, object);
auto sama_edit = new SamaEdit(ui->sama_edit, ui->sama_domain_edit, &edits, this); auto sama_edit = new SamaEdit(ui->sama_edit, ui->sama_domain_edit, &edits, this);
auto dns_edit = new StringEdit(ui->dns_host_name_edit, ATTRIBUTE_DNS_HOST_NAME, CLASS_COMPUTER, &edits, this); auto dns_edit = new StringEdit(ui->dns_host_name_edit, ATTRIBUTE_DNS_HOST_NAME, &edits, this);
new StringEdit(ui->description_edit, ATTRIBUTE_DESCRIPTION, CLASS_COMPUTER, &edits, this); new StringEdit(ui->description_edit, ATTRIBUTE_DESCRIPTION, &edits, this);
new StringEdit(ui->location_edit, ATTRIBUTE_LOCATION, CLASS_COMPUTER, &edits, this); new StringEdit(ui->location_edit, ATTRIBUTE_LOCATION, &edits, this);
sama_edit->set_read_only(true); sama_edit->set_read_only(true);
dns_edit->set_read_only(true); dns_edit->set_read_only(true);

View File

@ -35,9 +35,9 @@ GeneralGroupTab::GeneralGroupTab(const AdObject &object) {
load_name_label(ui->name_label, object); load_name_label(ui->name_label, object);
new SamaEdit(ui->sama_edit, ui->sama_domain_edit, &edits, this); new SamaEdit(ui->sama_edit, ui->sama_domain_edit, &edits, this);
new StringEdit(ui->description_edit, ATTRIBUTE_DESCRIPTION, CLASS_GROUP, &edits, this); new StringEdit(ui->description_edit, ATTRIBUTE_DESCRIPTION, &edits, this);
new StringEdit(ui->email_edit, ATTRIBUTE_MAIL, CLASS_GROUP, &edits, this); new StringEdit(ui->email_edit, ATTRIBUTE_MAIL, &edits, this);
new StringEdit(ui->notes_edit, ATTRIBUTE_INFO, CLASS_GROUP, &edits, this); new StringEdit(ui->notes_edit, ATTRIBUTE_INFO, &edits, this);
auto scope_edit = new GroupScopeEdit(ui->scope_combo, &edits, this); auto scope_edit = new GroupScopeEdit(ui->scope_combo, &edits, this);
auto type_edit = new GroupTypeEdit(ui->type_combo, &edits, this); auto type_edit = new GroupTypeEdit(ui->type_combo, &edits, this);

View File

@ -31,7 +31,7 @@ GeneralOtherTab::GeneralOtherTab(const AdObject &object) {
load_name_label(ui->name_label, object); load_name_label(ui->name_label, object);
new StringEdit(ui->description_edit, ATTRIBUTE_DESCRIPTION, CLASS_GROUP, &edits, this); new StringEdit(ui->description_edit, ATTRIBUTE_DESCRIPTION, &edits, this);
edits_connect_to_tab(edits, this); edits_connect_to_tab(edits, this);
} }

View File

@ -32,11 +32,11 @@ GeneralOUTab::GeneralOUTab(const AdObject &object) {
load_name_label(ui->name_label, object); load_name_label(ui->name_label, object);
new StringEdit(ui->description_edit, ATTRIBUTE_DESCRIPTION, CLASS_OU, &edits, this); new StringEdit(ui->description_edit, ATTRIBUTE_DESCRIPTION, &edits, this);
new StringEdit(ui->street_edit, ATTRIBUTE_STREET, CLASS_OU, &edits, this); new StringEdit(ui->street_edit, ATTRIBUTE_STREET, &edits, this);
new StringEdit(ui->city_edit, ATTRIBUTE_CITY, CLASS_OU, &edits, this); new StringEdit(ui->city_edit, ATTRIBUTE_CITY, &edits, this);
new StringEdit(ui->state_edit, ATTRIBUTE_STATE, CLASS_OU, &edits, this); new StringEdit(ui->state_edit, ATTRIBUTE_STATE, &edits, this);
new StringEdit(ui->postal_code_edit, ATTRIBUTE_POSTAL_CODE, CLASS_OU, &edits, this); new StringEdit(ui->postal_code_edit, ATTRIBUTE_POSTAL_CODE, &edits, this);
new CountryEdit(ui->country_combo, &edits, this); new CountryEdit(ui->country_combo, &edits, this);

View File

@ -32,16 +32,16 @@ GeneralUserTab::GeneralUserTab(const AdObject &object) {
load_name_label(ui->name_label, object); load_name_label(ui->name_label, object);
new StringEdit(ui->description_edit, ATTRIBUTE_DESCRIPTION, CLASS_USER, &edits, this); new StringEdit(ui->description_edit, ATTRIBUTE_DESCRIPTION, &edits, this);
new StringEdit(ui->first_name_edit, ATTRIBUTE_FIRST_NAME, CLASS_USER, &edits, this); new StringEdit(ui->first_name_edit, ATTRIBUTE_FIRST_NAME, &edits, this);
new StringEdit(ui->last_name_edit, ATTRIBUTE_LAST_NAME, CLASS_USER, &edits, this); new StringEdit(ui->last_name_edit, ATTRIBUTE_LAST_NAME, &edits, this);
new StringEdit(ui->display_name_edit, ATTRIBUTE_DISPLAY_NAME, CLASS_USER, &edits, this); new StringEdit(ui->display_name_edit, ATTRIBUTE_DISPLAY_NAME, &edits, this);
new StringEdit(ui->initials_edit, ATTRIBUTE_INITIALS, CLASS_USER, &edits, this); new StringEdit(ui->initials_edit, ATTRIBUTE_INITIALS, &edits, this);
new StringEdit(ui->email_edit, ATTRIBUTE_MAIL, CLASS_USER, &edits, this); new StringEdit(ui->email_edit, ATTRIBUTE_MAIL, &edits, this);
new StringEdit(ui->office_edit, ATTRIBUTE_OFFICE, CLASS_USER, &edits, this); new StringEdit(ui->office_edit, ATTRIBUTE_OFFICE, &edits, this);
new StringOtherEdit(ui->telephone_edit, ui->telephone_button, ATTRIBUTE_TELEPHONE_NUMBER, ATTRIBUTE_TELEPHONE_NUMBER_OTHER, CLASS_USER, &edits, this); new StringOtherEdit(ui->telephone_edit, ui->telephone_button, ATTRIBUTE_TELEPHONE_NUMBER, ATTRIBUTE_TELEPHONE_NUMBER_OTHER, &edits, this);
new StringOtherEdit(ui->web_page_edit, ui->web_page_button, ATTRIBUTE_WWW_HOMEPAGE, ATTRIBUTE_WWW_HOMEPAGE_OTHER, CLASS_USER, &edits, this); new StringOtherEdit(ui->web_page_edit, ui->web_page_button, ATTRIBUTE_WWW_HOMEPAGE, ATTRIBUTE_WWW_HOMEPAGE_OTHER, &edits, this);
edits_connect_to_tab(edits, this); edits_connect_to_tab(edits, this);
} }

View File

@ -39,18 +39,18 @@ ManagedByTab::ManagedByTab() {
manager_edit = new ManagerEdit(ui->manager_widget, ATTRIBUTE_MANAGED_BY, &edits, this); manager_edit = new ManagerEdit(ui->manager_widget, ATTRIBUTE_MANAGED_BY, &edits, this);
new StringEdit(ui->office_edit, ATTRIBUTE_OFFICE, CLASS_USER, &manager_edits, this); new StringEdit(ui->office_edit, ATTRIBUTE_OFFICE, &manager_edits, this);
new StringEdit(ui->street_edit, ATTRIBUTE_STREET, CLASS_USER, &manager_edits, this); new StringEdit(ui->street_edit, ATTRIBUTE_STREET, &manager_edits, this);
new StringEdit(ui->city_edit, ATTRIBUTE_CITY, CLASS_USER, &manager_edits, this); new StringEdit(ui->city_edit, ATTRIBUTE_CITY, &manager_edits, this);
new StringEdit(ui->state_edit, ATTRIBUTE_STATE, CLASS_USER, &manager_edits, this); new StringEdit(ui->state_edit, ATTRIBUTE_STATE, &manager_edits, this);
new CountryEdit(ui->country_combo, &manager_edits, this); new CountryEdit(ui->country_combo, &manager_edits, this);
// TODO: this is currently only showing the disabled // TODO: this is currently only showing the disabled
// "other..." button. Need to be able to see other // "other..." button. Need to be able to see other
// values in dialog (but not edit them) // values in dialog (but not edit them)
new StringOtherEdit(ui->telephone_edit, ui->telephone_button, ATTRIBUTE_TELEPHONE_NUMBER, ATTRIBUTE_TELEPHONE_NUMBER_OTHER, CLASS_USER, &manager_edits, this); new StringOtherEdit(ui->telephone_edit, ui->telephone_button, ATTRIBUTE_TELEPHONE_NUMBER, ATTRIBUTE_TELEPHONE_NUMBER_OTHER, &manager_edits, this);
new StringOtherEdit(ui->fax_edit, ui->fax_button, ATTRIBUTE_FAX_NUMBER, ATTRIBUTE_OTHER_FAX_NUMBER, CLASS_USER, &manager_edits, this); new StringOtherEdit(ui->fax_edit, ui->fax_button, ATTRIBUTE_FAX_NUMBER, ATTRIBUTE_OTHER_FAX_NUMBER, &manager_edits, this);
edits_set_read_only(manager_edits, true); edits_set_read_only(manager_edits, true);

View File

@ -32,14 +32,14 @@ ObjectTab::ObjectTab() {
ui = new Ui::ObjectTab(); ui = new Ui::ObjectTab();
ui->setupUi(this); ui->setupUi(this);
new StringEdit(ui->dn_edit, ATTRIBUTE_DN, "", &edits, this); new StringEdit(ui->dn_edit, ATTRIBUTE_DN, &edits, this);
new StringEdit(ui->class_edit, ATTRIBUTE_OBJECT_CLASS, "", &edits, this); new StringEdit(ui->class_edit, ATTRIBUTE_OBJECT_CLASS, &edits, this);
new DateTimeEdit(ui->created_edit, ATTRIBUTE_WHEN_CREATED, &edits, this); new DateTimeEdit(ui->created_edit, ATTRIBUTE_WHEN_CREATED, &edits, this);
new DateTimeEdit(ui->changed_edit, ATTRIBUTE_WHEN_CHANGED, &edits, this); new DateTimeEdit(ui->changed_edit, ATTRIBUTE_WHEN_CHANGED, &edits, this);
new StringEdit(ui->usn_created_edit, ATTRIBUTE_USN_CREATED, "", &edits, this); new StringEdit(ui->usn_created_edit, ATTRIBUTE_USN_CREATED, &edits, this);
new StringEdit(ui->usn_changed_edit, ATTRIBUTE_USN_CHANGED, "", &edits, this); new StringEdit(ui->usn_changed_edit, ATTRIBUTE_USN_CHANGED, &edits, this);
auto deletion_edit = new ProtectDeletionEdit(ui->deletion_check, &edits, this); auto deletion_edit = new ProtectDeletionEdit(ui->deletion_check, &edits, this);

View File

@ -45,9 +45,9 @@ OrganizationTab::OrganizationTab() {
ui = new Ui::OrganizationTab(); ui = new Ui::OrganizationTab();
ui->setupUi(this); ui->setupUi(this);
new StringEdit(ui->job_title_edit, ATTRIBUTE_TITLE, CLASS_USER, &edits, this); new StringEdit(ui->job_title_edit, ATTRIBUTE_TITLE, &edits, this);
new StringEdit(ui->department_edit, ATTRIBUTE_DEPARTMENT, CLASS_USER, &edits, this); new StringEdit(ui->department_edit, ATTRIBUTE_DEPARTMENT, &edits, this);
new StringEdit(ui->company_edit, ATTRIBUTE_COMPANY, CLASS_USER, &edits, this); new StringEdit(ui->company_edit, ATTRIBUTE_COMPANY, &edits, this);
new ManagerEdit(ui->manager_widget, ATTRIBUTE_MANAGER, &edits, this); new ManagerEdit(ui->manager_widget, ATTRIBUTE_MANAGER, &edits, this);

View File

@ -28,9 +28,9 @@ OSTab::OSTab() {
ui = new Ui::OSTab(); ui = new Ui::OSTab();
ui->setupUi(this); ui->setupUi(this);
new StringEdit(ui->os_edit, ATTRIBUTE_OS, CLASS_COMPUTER, &edits, this); new StringEdit(ui->os_edit, ATTRIBUTE_OS, &edits, this);
new StringEdit(ui->version_edit, ATTRIBUTE_OS_VERSION, CLASS_COMPUTER, &edits, this); new StringEdit(ui->version_edit, ATTRIBUTE_OS_VERSION, &edits, this);
new StringEdit(ui->pack_edit, ATTRIBUTE_OS_SERVICE_PACK, CLASS_COMPUTER, &edits, this); new StringEdit(ui->pack_edit, ATTRIBUTE_OS_SERVICE_PACK, &edits, this);
edits_set_read_only(edits, true); edits_set_read_only(edits, true);
edits_connect_to_tab(edits, this); edits_connect_to_tab(edits, this);

View File

@ -28,11 +28,11 @@ ProfileTab::ProfileTab() {
ui = new Ui::ProfileTab(); ui = new Ui::ProfileTab();
ui->setupUi(this); ui->setupUi(this);
new StringEdit(ui->profile_path_edit, ATTRIBUTE_PROFILE_PATH, CLASS_USER, &edits, this); new StringEdit(ui->profile_path_edit, ATTRIBUTE_PROFILE_PATH, &edits, this);
new StringEdit(ui->script_path_edit, ATTRIBUTE_SCRIPT_PATH, CLASS_USER, &edits, this); new StringEdit(ui->script_path_edit, ATTRIBUTE_SCRIPT_PATH, &edits, this);
// TODO: verify that local path exists. Also add alternate input method named "Connect"? Has drop-down of disk letters and path input. // TODO: verify that local path exists. Also add alternate input method named "Connect"? Has drop-down of disk letters and path input.
new StringEdit(ui->home_dir_edit, ATTRIBUTE_HOME_DIRECTORY, CLASS_USER, &edits, this); new StringEdit(ui->home_dir_edit, ATTRIBUTE_HOME_DIRECTORY, &edits, this);
edits_connect_to_tab(edits, this); edits_connect_to_tab(edits, this);
} }

View File

@ -29,13 +29,13 @@ TelephonesTab::TelephonesTab() {
ui = new Ui::TelephonesTab(); ui = new Ui::TelephonesTab();
ui->setupUi(this); ui->setupUi(this);
new StringOtherEdit(ui->home_phone_edit, ui->home_phone_button, ATTRIBUTE_HOME_PHONE, ATTRIBUTE_OTHER_HOME_PHONE, CLASS_USER, &edits, this); new StringOtherEdit(ui->home_phone_edit, ui->home_phone_button, ATTRIBUTE_HOME_PHONE, ATTRIBUTE_OTHER_HOME_PHONE, &edits, this);
new StringOtherEdit(ui->pager_edit, ui->pager_button, ATTRIBUTE_PAGER, ATTRIBUTE_OTHER_PAGER, CLASS_USER, &edits, this); new StringOtherEdit(ui->pager_edit, ui->pager_button, ATTRIBUTE_PAGER, ATTRIBUTE_OTHER_PAGER, &edits, this);
new StringOtherEdit(ui->mobile_edit, ui->mobile_button, ATTRIBUTE_MOBILE, ATTRIBUTE_OTHER_MOBILE, CLASS_USER, &edits, this); new StringOtherEdit(ui->mobile_edit, ui->mobile_button, ATTRIBUTE_MOBILE, ATTRIBUTE_OTHER_MOBILE, &edits, this);
new StringOtherEdit(ui->fax_edit, ui->fax_button, ATTRIBUTE_FAX_NUMBER, ATTRIBUTE_OTHER_FAX_NUMBER, CLASS_USER, &edits, this); new StringOtherEdit(ui->fax_edit, ui->fax_button, ATTRIBUTE_FAX_NUMBER, ATTRIBUTE_OTHER_FAX_NUMBER, &edits, this);
new StringOtherEdit(ui->ip_phone_edit, ui->ip_phone_button, ATTRIBUTE_IP_PHONE, ATTRIBUTE_OTHER_IP_PHONE, CLASS_USER, &edits, this); new StringOtherEdit(ui->ip_phone_edit, ui->ip_phone_button, ATTRIBUTE_IP_PHONE, ATTRIBUTE_OTHER_IP_PHONE, &edits, this);
new StringLargeEdit(ui->notes_edit, ATTRIBUTE_INFO, CLASS_USER, &edits, this); new StringLargeEdit(ui->notes_edit, ATTRIBUTE_INFO, &edits, this);
edits_connect_to_tab(edits, this); edits_connect_to_tab(edits, this);
} }

View File

@ -32,7 +32,7 @@ void ADMCTestStringEdit::init() {
line_edit = new QLineEdit(parent_widget); line_edit = new QLineEdit(parent_widget);
edit = new StringEdit(line_edit, TEST_ATTRIBUTE, CLASS_USER, &edits, parent_widget); edit = new StringEdit(line_edit, TEST_ATTRIBUTE, &edits, parent_widget);
// Create test user // Create test user
const QString name = TEST_USER; const QString name = TEST_USER;

View File

@ -32,7 +32,7 @@ void ADMCTestStringLargeEdit::init() {
text_edit = new QPlainTextEdit(parent_widget); text_edit = new QPlainTextEdit(parent_widget);
edit = new StringLargeEdit(text_edit, TEST_ATTRIBUTE, CLASS_USER, &edits, parent_widget); edit = new StringLargeEdit(text_edit, TEST_ATTRIBUTE, &edits, parent_widget);
// Create test user // Create test user
const QString name = TEST_USER; const QString name = TEST_USER;

View File

@ -47,7 +47,7 @@ void ADMCTestStringOtherEdit::init() {
line_edit = new QLineEdit(parent_widget); line_edit = new QLineEdit(parent_widget);
other_button = new QPushButton(parent_widget); other_button = new QPushButton(parent_widget);
edit = new StringOtherEdit(line_edit, other_button, TEST_ATTRIBUTE_MAIN, ATTRIBUTE_WWW_HOMEPAGE_OTHER, CLASS_USER, &edits, parent_widget); edit = new StringOtherEdit(line_edit, other_button, TEST_ATTRIBUTE_MAIN, ATTRIBUTE_WWW_HOMEPAGE_OTHER, &edits, parent_widget);
// Create test user // Create test user
const QString name = TEST_USER; const QString name = TEST_USER;