From e7be046e9f5af7eba6f33bc77a75db5c53ee0991 Mon Sep 17 00:00:00 2001 From: blue Date: Sun, 20 Oct 2019 22:39:11 +0300 Subject: [PATCH] vcard ui file --- ui/CMakeLists.txt | 1 + ui/widgets/vcard.cpp | 31 ++ ui/widgets/vcard.h | 44 +++ ui/widgets/vcard.ui | 737 +++++++++++++++++++++++++++++++++++++++++++ 4 files changed, 813 insertions(+) create mode 100644 ui/widgets/vcard.cpp create mode 100644 ui/widgets/vcard.h create mode 100644 ui/widgets/vcard.ui diff --git a/ui/CMakeLists.txt b/ui/CMakeLists.txt index 982bb9a..0f6680a 100644 --- a/ui/CMakeLists.txt +++ b/ui/CMakeLists.txt @@ -29,6 +29,7 @@ set(squawkUI_SRC widgets/accounts.cpp widgets/account.cpp widgets/joinconference.cpp + widgets/vcard.cpp utils/messageline.cpp utils//message.cpp utils/resizer.cpp diff --git a/ui/widgets/vcard.cpp b/ui/widgets/vcard.cpp new file mode 100644 index 0000000..f2db0e9 --- /dev/null +++ b/ui/widgets/vcard.cpp @@ -0,0 +1,31 @@ +/* + * Squawk messenger. + * Copyright (C) 2019 Yury Gubich + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ + +#include "vcard.h" +#include "ui_vcard.h" + +VCard::VCard(QWidget* parent): + QWidget(parent), + m_ui(new Ui::VCard()) +{ + m_ui->setupUi(this); +} + +VCard::~VCard() +{ +} diff --git a/ui/widgets/vcard.h b/ui/widgets/vcard.h new file mode 100644 index 0000000..c9fe19d --- /dev/null +++ b/ui/widgets/vcard.h @@ -0,0 +1,44 @@ +/* + * Squawk messenger. + * Copyright (C) 2019 Yury Gubich + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ + +#ifndef VCARD_H +#define VCARD_H + +#include +#include + +namespace Ui +{ +class VCard; +} + +/** + * @todo write docs + */ +class VCard : public QWidget +{ + Q_OBJECT +public: + VCard(QWidget* parent = nullptr); + ~VCard(); + +private: + QScopedPointer m_ui; +}; + +#endif // VCARD_H diff --git a/ui/widgets/vcard.ui b/ui/widgets/vcard.ui new file mode 100644 index 0000000..5658d2c --- /dev/null +++ b/ui/widgets/vcard.ui @@ -0,0 +1,737 @@ + + + VCard + + + + 0 + 0 + 434 + 534 + + + + + 6 + + + 6 + + + 6 + + + 6 + + + 6 + + + + + Qt::TabFocus + + + QTabWidget::North + + + QTabWidget::Rounded + + + 0 + + + Qt::ElideNone + + + true + + + false + + + + General + + + + 0 + + + 6 + + + 0 + + + 0 + + + 6 + + + + + + 0 + 0 + + + + + + + <html><head/><body><p><span style=" font-size:16pt; font-weight:600;">Personal information</span></p></body></html> + + + Qt::AlignCenter + + + + + + + Qt::Horizontal + + + + + + + Qt::AlignHCenter|Qt::AlignTop + + + + + + 150 + 0 + + + + + 300 + 16777215 + + + + + + + + + 150 + 0 + + + + + 300 + 16777215 + + + + + + + + Middle name + + + middleName + + + + + + + First name + + + firstName + + + + + + + Last name + + + lastName + + + + + + + + 150 + 0 + + + + + 300 + 16777215 + + + + + + + + Nick name + + + nickName + + + + + + + + 150 + 0 + + + + + 300 + 16777215 + + + + + + + + Birthday + + + birthday + + + + + + + + + + + + + 0 + 0 + + + + + 0 + 0 + + + + + 0 + 0 + + + + QFrame::StyledPanel + + + QFrame::Raised + + + + + + + + Qt::Horizontal + + + + 40 + 20 + + + + + + + + Qt::Vertical + + + + 20 + 40 + + + + + + + + Qt::Horizontal + + + + 40 + 20 + + + + + + + + + 0 + 0 + + + + + + + <html><head/><body><p><span style=" font-size:16pt; font-weight:600;">Organization</span></p></body></html> + + + Qt::AlignCenter + + + + + + + Qt::AlignHCenter|Qt::AlignTop + + + + + Name + + + organizationName + + + + + + + + 150 + 0 + + + + + 300 + 16777215 + + + + + + + + Department + + + organizationDepartment + + + + + + + + 150 + 0 + + + + + 300 + 16777215 + + + + + + + + Role + + + organizationRole + + + + + + + + 150 + 0 + + + + + 300 + 16777215 + + + + + + + + Title + + + organizationTitle + + + + + + + + 150 + 0 + + + + + 300 + 16777215 + + + + + + + + + + Qt::Horizontal + + + + + + + <html><head/><body><p><span style=" font-size:24pt; font-weight:600;">General</span></p></body></html> + + + + + + + + Contact + + + + 0 + + + 0 + + + 6 + + + 0 + + + 0 + + + + + <html><head/><body><p><span style=" font-size:24pt; font-weight:600;">Contact</span></p></body></html> + + + + + + + QFrame::NoFrame + + + QFrame::Plain + + + 0 + + + true + + + + + 0 + 0 + 422 + 410 + + + + + + + Qt::Horizontal + + + + + + + + + <html><head/><body><p><span style=" font-style:italic;">User has no contact e-mail addresses</span></p></body></html> + + + Qt::AlignCenter + + + + + + + + + <html><head/><body><p><span style=" font-size:16pt; font-weight:600;">E-Mail addresses</span></p></body></html> + + + Qt::AlignCenter + + + + + + + Qt::AlignHCenter|Qt::AlignTop + + + + + + 150 + 0 + + + + + 300 + 16777215 + + + + + + + + JabberID + + + jabberID + + + + + + + + + Qt::Horizontal + + + + + + + Qt::Horizontal + + + + + + + Qt::Horizontal + + + + + + + Qt::Vertical + + + + 20 + 40 + + + + + + + + Qt::Horizontal + + + + 40 + 20 + + + + + + + + + + <html><head/><body><p><span style=" font-style:italic;">User has no contact e-mail addresses</span></p></body></html> + + + Qt::AlignCenter + + + + + + + + + <html><head/><body><p><span style=" font-size:16pt; font-weight:600;">Addresses</span></p></body></html> + + + Qt::AlignCenter + + + + + + + + + <html><head/><body><p><span style=" font-style:italic;">User has no contact e-mail addresses</span></p></body></html> + + + Qt::AlignCenter + + + + + + + + + <html><head/><body><p><span style=" font-size:16pt; font-weight:600;">Phone numbers</span></p></body></html> + + + Qt::AlignCenter + + + + + + + Qt::Horizontal + + + + 40 + 20 + + + + + + + + + + + + + Description + + + + 0 + + + 6 + + + 0 + + + 0 + + + 6 + + + + + <html><head/><body><p><span style=" font-size:24pt; font-weight:600;">Description</span></p></body></html> + + + + + + + QFrame::StyledPanel + + + Qt::LinksAccessibleByMouse|Qt::TextEditable|Qt::TextEditorInteraction|Qt::TextSelectableByKeyboard|Qt::TextSelectableByMouse + + + + + + + + + + + QDialogButtonBox::Close|QDialogButtonBox::Save + + + false + + + + + + + firstName + middleName + lastName + nickName + birthday + organizationName + organizationDepartment + organizationRole + organizationTitle + scrollArea + jabberID + description + tabWidget + + + + + +