Browse Source
Merge pull request #1 from strider-paff-shell/chat
Chat
pull/130/head
Denio
4 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
8 changed files with
206 additions and
11 deletions
-
silentdragon-lite.pro
-
src/chatbubbleme.cpp
-
src/chatbubbleme.h
-
src/chatbubbleme.ui
-
src/chatbubblepartner.cpp
-
src/chatbubblepartner.h
-
src/chatbubblepartner.ui
-
src/mainwindow.ui
|
|
@ -65,7 +65,9 @@ SOURCES += \ |
|
|
|
src/datamodel.cpp \ |
|
|
|
src/controller.cpp \ |
|
|
|
src/liteinterface.cpp \ |
|
|
|
src/camount.cpp |
|
|
|
src/camount.cpp \ |
|
|
|
src/chatbubbleme.cpp \ |
|
|
|
src/chatbubblepartner.cpp |
|
|
|
|
|
|
|
HEADERS += \ |
|
|
|
src/firsttimewizard.h \ |
|
|
@ -94,7 +96,9 @@ HEADERS += \ |
|
|
|
src/controller.h \ |
|
|
|
src/liteinterface.h \ |
|
|
|
src/camount.h \ |
|
|
|
lib/silentdragonlitelib.h |
|
|
|
lib/silentdragonlitelib.h \ |
|
|
|
src/chatbubbleme.h \ |
|
|
|
src/chatbubblepartner.h |
|
|
|
|
|
|
|
FORMS += \ |
|
|
|
src/encryption.ui \ |
|
|
@ -117,7 +121,9 @@ FORMS += \ |
|
|
|
src/recurringdialog.ui \ |
|
|
|
src/newrecurring.ui \ |
|
|
|
src/requestdialog.ui \ |
|
|
|
src/recurringmultiple.ui |
|
|
|
src/recurringmultiple.ui \ |
|
|
|
src/chatbubbleme.ui \ |
|
|
|
src/chatbubblepartner.ui |
|
|
|
|
|
|
|
|
|
|
|
TRANSLATIONS = res/silentdragonlite_es.ts \ |
|
|
|
|
|
@ -0,0 +1,14 @@ |
|
|
|
#include "chatbubbleme.h" |
|
|
|
#include "ui_chatbubbleme.h" |
|
|
|
|
|
|
|
ChatBubbleMe::ChatBubbleMe(QWidget *parent) : |
|
|
|
QWidget(parent), |
|
|
|
ui(new Ui::ChatBubbleMe) |
|
|
|
{ |
|
|
|
ui->setupUi(this); |
|
|
|
} |
|
|
|
|
|
|
|
ChatBubbleMe::~ChatBubbleMe() |
|
|
|
{ |
|
|
|
delete ui; |
|
|
|
} |
|
|
@ -0,0 +1,22 @@ |
|
|
|
#ifndef CHATBUBBLEME_H |
|
|
|
#define CHATBUBBLEME_H |
|
|
|
|
|
|
|
#include <QWidget> |
|
|
|
|
|
|
|
namespace Ui { |
|
|
|
class ChatBubbleMe; |
|
|
|
} |
|
|
|
|
|
|
|
class ChatBubbleMe : public QWidget |
|
|
|
{ |
|
|
|
Q_OBJECT |
|
|
|
|
|
|
|
public: |
|
|
|
explicit ChatBubbleMe(QWidget *parent = nullptr); |
|
|
|
~ChatBubbleMe(); |
|
|
|
|
|
|
|
private: |
|
|
|
Ui::ChatBubbleMe *ui; |
|
|
|
}; |
|
|
|
|
|
|
|
#endif // CHATBUBBLEME_H
|
|
|
@ -0,0 +1,57 @@ |
|
|
|
<?xml version="1.0" encoding="UTF-8"?> |
|
|
|
<ui version="4.0"> |
|
|
|
<class>ChatBubbleMe</class> |
|
|
|
<widget class="QWidget" name="ChatBubbleMe"> |
|
|
|
<property name="geometry"> |
|
|
|
<rect> |
|
|
|
<x>0</x> |
|
|
|
<y>0</y> |
|
|
|
<width>646</width> |
|
|
|
<height>76</height> |
|
|
|
</rect> |
|
|
|
</property> |
|
|
|
<property name="windowTitle"> |
|
|
|
<string>Form</string> |
|
|
|
</property> |
|
|
|
<property name="styleSheet"> |
|
|
|
<string notr="true">QWidget{ |
|
|
|
background: whitesmoke; |
|
|
|
border: 1px solid #afafaf; |
|
|
|
border-radius: 3px; |
|
|
|
} |
|
|
|
QLabel |
|
|
|
{ |
|
|
|
background: none; |
|
|
|
border: none; |
|
|
|
}</string> |
|
|
|
</property> |
|
|
|
<widget class="QLabel" name="lblMessage"> |
|
|
|
<property name="geometry"> |
|
|
|
<rect> |
|
|
|
<x>10</x> |
|
|
|
<y>30</y> |
|
|
|
<width>611</width> |
|
|
|
<height>41</height> |
|
|
|
</rect> |
|
|
|
</property> |
|
|
|
<property name="text"> |
|
|
|
<string>Lorem ipsum dolor sit amet</string> |
|
|
|
</property> |
|
|
|
</widget> |
|
|
|
<widget class="QLabel" name="lblTimestamp"> |
|
|
|
<property name="geometry"> |
|
|
|
<rect> |
|
|
|
<x>10</x> |
|
|
|
<y>10</y> |
|
|
|
<width>611</width> |
|
|
|
<height>17</height> |
|
|
|
</rect> |
|
|
|
</property> |
|
|
|
<property name="text"> |
|
|
|
<string>12/03/2020 12:34</string> |
|
|
|
</property> |
|
|
|
</widget> |
|
|
|
</widget> |
|
|
|
<resources/> |
|
|
|
<connections/> |
|
|
|
</ui> |
|
|
@ -0,0 +1,14 @@ |
|
|
|
#include "chatbubblepartner.h" |
|
|
|
#include "ui_chatbubblepartner.h" |
|
|
|
|
|
|
|
ChatBubblePartner::ChatBubblePartner(QWidget *parent) : |
|
|
|
QWidget(parent), |
|
|
|
ui(new Ui::ChatBubblePartner) |
|
|
|
{ |
|
|
|
ui->setupUi(this); |
|
|
|
} |
|
|
|
|
|
|
|
ChatBubblePartner::~ChatBubblePartner() |
|
|
|
{ |
|
|
|
delete ui; |
|
|
|
} |
|
|
@ -0,0 +1,22 @@ |
|
|
|
#ifndef CHATBUBBLEPARTNER_H |
|
|
|
#define CHATBUBBLEPARTNER_H |
|
|
|
|
|
|
|
#include <QWidget> |
|
|
|
|
|
|
|
namespace Ui { |
|
|
|
class ChatBubblePartner; |
|
|
|
} |
|
|
|
|
|
|
|
class ChatBubblePartner : public QWidget |
|
|
|
{ |
|
|
|
Q_OBJECT |
|
|
|
|
|
|
|
public: |
|
|
|
explicit ChatBubblePartner(QWidget *parent = nullptr); |
|
|
|
~ChatBubblePartner(); |
|
|
|
|
|
|
|
private: |
|
|
|
Ui::ChatBubblePartner *ui; |
|
|
|
}; |
|
|
|
|
|
|
|
#endif // CHATBUBBLEPARTNER_H
|
|
|
@ -0,0 +1,57 @@ |
|
|
|
<?xml version="1.0" encoding="UTF-8"?> |
|
|
|
<ui version="4.0"> |
|
|
|
<class>ChatBubblePartner</class> |
|
|
|
<widget class="QWidget" name="ChatBubblePartner"> |
|
|
|
<property name="geometry"> |
|
|
|
<rect> |
|
|
|
<x>0</x> |
|
|
|
<y>0</y> |
|
|
|
<width>646</width> |
|
|
|
<height>76</height> |
|
|
|
</rect> |
|
|
|
</property> |
|
|
|
<property name="windowTitle"> |
|
|
|
<string>Form</string> |
|
|
|
</property> |
|
|
|
<property name="styleSheet"> |
|
|
|
<string notr="true">QWidget{ |
|
|
|
background: #c8e1ff; |
|
|
|
border: 1px solid #fefefe; |
|
|
|
border-radius: 3px; |
|
|
|
} |
|
|
|
QLabel |
|
|
|
{ |
|
|
|
background: none; |
|
|
|
border: none; |
|
|
|
}</string> |
|
|
|
</property> |
|
|
|
<widget class="QLabel" name="lblMessage"> |
|
|
|
<property name="geometry"> |
|
|
|
<rect> |
|
|
|
<x>10</x> |
|
|
|
<y>30</y> |
|
|
|
<width>611</width> |
|
|
|
<height>41</height> |
|
|
|
</rect> |
|
|
|
</property> |
|
|
|
<property name="text"> |
|
|
|
<string>Lorem ipsum dolor sit amet</string> |
|
|
|
</property> |
|
|
|
</widget> |
|
|
|
<widget class="QLabel" name="lblTimestamp"> |
|
|
|
<property name="geometry"> |
|
|
|
<rect> |
|
|
|
<x>10</x> |
|
|
|
<y>10</y> |
|
|
|
<width>611</width> |
|
|
|
<height>17</height> |
|
|
|
</rect> |
|
|
|
</property> |
|
|
|
<property name="text"> |
|
|
|
<string>12/03/2020 12:34</string> |
|
|
|
</property> |
|
|
|
</widget> |
|
|
|
</widget> |
|
|
|
<resources/> |
|
|
|
<connections/> |
|
|
|
</ui> |
|
|
@ -1356,10 +1356,13 @@ |
|
|
|
<rect> |
|
|
|
<x>340</x> |
|
|
|
<y>80</y> |
|
|
|
<width>871</width> |
|
|
|
<width>908</width> |
|
|
|
<height>361</height> |
|
|
|
</rect> |
|
|
|
</property> |
|
|
|
<property name="resizeMode"> |
|
|
|
<enum>QListView::Adjust</enum> |
|
|
|
</property> |
|
|
|
</widget> |
|
|
|
<widget class="QLabel" name="label_40"> |
|
|
|
<property name="geometry"> |
|
|
@ -1379,7 +1382,7 @@ |
|
|
|
<rect> |
|
|
|
<x>357</x> |
|
|
|
<y>483</y> |
|
|
|
<width>851</width> |
|
|
|
<width>891</width> |
|
|
|
<height>128</height> |
|
|
|
</rect> |
|
|
|
</property> |
|
|
@ -1416,7 +1419,7 @@ |
|
|
|
<widget class="QLabel" name="memoSizeChat"> |
|
|
|
<property name="geometry"> |
|
|
|
<rect> |
|
|
|
<x>1110</x> |
|
|
|
<x>1150</x> |
|
|
|
<y>460</y> |
|
|
|
<width>91</width> |
|
|
|
<height>17</height> |
|
|
@ -1613,6 +1616,11 @@ |
|
|
|
</widget> |
|
|
|
<layoutdefault spacing="6" margin="11"/> |
|
|
|
<customwidgets> |
|
|
|
<customwidget> |
|
|
|
<class>MemoEdit</class> |
|
|
|
<extends>QPlainTextEdit</extends> |
|
|
|
<header>memoedit.h</header> |
|
|
|
</customwidget> |
|
|
|
<customwidget> |
|
|
|
<class>AddressCombo</class> |
|
|
|
<extends>QComboBox</extends> |
|
|
@ -1628,11 +1636,6 @@ |
|
|
|
<extends>QLabel</extends> |
|
|
|
<header>fillediconlabel.h</header> |
|
|
|
</customwidget> |
|
|
|
<customwidget> |
|
|
|
<class>MemoEdit</class> |
|
|
|
<extends>QPlainTextEdit</extends> |
|
|
|
<header>memoedit.h</header> |
|
|
|
</customwidget> |
|
|
|
</customwidgets> |
|
|
|
<tabstops> |
|
|
|
<tabstop>Address1</tabstop> |
|
|
|