mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-07-27 08:25:53 -04:00
Refactored signature creation to Gxs security
Fixed signing of msgs Added signing of groups (follows p3distrib grp creation method) Refactored GxsGroupDialog in 2 new UIs, GxsCreateGroupDialog and GxsViewGroup for ease of logic, retaining flexibility across GXS services. git-svn-id: http://svn.code.sf.net/p/retroshare/code/branches/v0.5-gxs-b1@5762 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
parent
563e3df91e
commit
6f6f55c166
10 changed files with 286 additions and 62 deletions
26
retroshare-gui/src/gui/gxs/GxsCreateGroupDialog.cpp
Normal file
26
retroshare-gui/src/gui/gxs/GxsCreateGroupDialog.cpp
Normal file
|
@ -0,0 +1,26 @@
|
|||
#include "GxsCreateGroupDialog.h"
|
||||
#include "ui_GxsCreateGroupDialog.h"
|
||||
|
||||
GxsCreateGroupDialog::GxsCreateGroupDialog(QWidget *parent) :
|
||||
QDialog(parent),
|
||||
ui(new Ui::GxsCreateGroupDialog)
|
||||
{
|
||||
ui->setupUi(this);
|
||||
}
|
||||
|
||||
GxsCreateGroupDialog::~GxsCreateGroupDialog()
|
||||
{
|
||||
delete ui;
|
||||
}
|
||||
|
||||
void GxsCreateGroupDialog::changeEvent(QEvent *e)
|
||||
{
|
||||
QDialog::changeEvent(e);
|
||||
switch (e->type()) {
|
||||
case QEvent::LanguageChange:
|
||||
ui->retranslateUi(this);
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
}
|
||||
}
|
23
retroshare-gui/src/gui/gxs/GxsCreateGroupDialog.h
Normal file
23
retroshare-gui/src/gui/gxs/GxsCreateGroupDialog.h
Normal file
|
@ -0,0 +1,23 @@
|
|||
#ifndef GXSCREATEGROUPDIALOG_H
|
||||
#define GXSCREATEGROUPDIALOG_H
|
||||
|
||||
#include <QDialog>
|
||||
|
||||
namespace Ui {
|
||||
class GxsCreateGroupDialog;
|
||||
}
|
||||
|
||||
class GxsCreateGroupDialog : public QDialog {
|
||||
Q_OBJECT
|
||||
public:
|
||||
GxsCreateGroupDialog(QWidget *parent = 0);
|
||||
~GxsCreateGroupDialog();
|
||||
|
||||
protected:
|
||||
void changeEvent(QEvent *e);
|
||||
|
||||
private:
|
||||
Ui::GxsCreateGroupDialog *ui;
|
||||
};
|
||||
|
||||
#endif // GXSCREATEGROUPDIALOG_H
|
18
retroshare-gui/src/gui/gxs/GxsCreateGroupDialog.ui
Normal file
18
retroshare-gui/src/gui/gxs/GxsCreateGroupDialog.ui
Normal file
|
@ -0,0 +1,18 @@
|
|||
<ui version="4.0">
|
||||
<class>GxsCreateGroupDialog</class>
|
||||
<widget class="QDialog" name="GxsCreateGroupDialog">
|
||||
<property name="geometry">
|
||||
<rect>
|
||||
<x>0</x>
|
||||
<y>0</y>
|
||||
<width>400</width>
|
||||
<height>300</height>
|
||||
</rect>
|
||||
</property>
|
||||
<property name="windowTitle">
|
||||
<string>Dialog</string>
|
||||
</property>
|
||||
</widget>
|
||||
<resources/>
|
||||
<connections/>
|
||||
</ui>
|
26
retroshare-gui/src/gui/gxs/GxsViewGroup.cpp
Normal file
26
retroshare-gui/src/gui/gxs/GxsViewGroup.cpp
Normal file
|
@ -0,0 +1,26 @@
|
|||
#include "GxsViewGroup.h"
|
||||
#include "ui_GxsViewGroup.h"
|
||||
|
||||
GxsViewGroup::GxsViewGroup(QWidget *parent) :
|
||||
QWidget(parent),
|
||||
ui(new Ui::GxsViewGroup)
|
||||
{
|
||||
ui->setupUi(this);
|
||||
}
|
||||
|
||||
GxsViewGroup::~GxsViewGroup()
|
||||
{
|
||||
delete ui;
|
||||
}
|
||||
|
||||
void GxsViewGroup::changeEvent(QEvent *e)
|
||||
{
|
||||
QWidget::changeEvent(e);
|
||||
switch (e->type()) {
|
||||
case QEvent::LanguageChange:
|
||||
ui->retranslateUi(this);
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
}
|
||||
}
|
23
retroshare-gui/src/gui/gxs/GxsViewGroup.h
Normal file
23
retroshare-gui/src/gui/gxs/GxsViewGroup.h
Normal file
|
@ -0,0 +1,23 @@
|
|||
#ifndef GXSVIEWGROUP_H
|
||||
#define GXSVIEWGROUP_H
|
||||
|
||||
#include <QWidget>
|
||||
|
||||
namespace Ui {
|
||||
class GxsViewGroup;
|
||||
}
|
||||
|
||||
class GxsViewGroup : public QWidget {
|
||||
Q_OBJECT
|
||||
public:
|
||||
GxsViewGroup(QWidget *parent = 0);
|
||||
~GxsViewGroup();
|
||||
|
||||
protected:
|
||||
void changeEvent(QEvent *e);
|
||||
|
||||
private:
|
||||
Ui::GxsViewGroup *ui;
|
||||
};
|
||||
|
||||
#endif // GXSVIEWGROUP_H
|
21
retroshare-gui/src/gui/gxs/GxsViewGroup.ui
Normal file
21
retroshare-gui/src/gui/gxs/GxsViewGroup.ui
Normal file
|
@ -0,0 +1,21 @@
|
|||
<ui version="4.0">
|
||||
<author/>
|
||||
<comment/>
|
||||
<exportmacro/>
|
||||
<class>GxsViewGroup</class>
|
||||
<widget class="QWidget" name="GxsViewGroup">
|
||||
<property name="geometry">
|
||||
<rect>
|
||||
<x>0</x>
|
||||
<y>0</y>
|
||||
<width>400</width>
|
||||
<height>300</height>
|
||||
</rect>
|
||||
</property>
|
||||
<property name="windowTitle">
|
||||
<string>Form</string>
|
||||
</property>
|
||||
</widget>
|
||||
<pixmapfunction/>
|
||||
<connections/>
|
||||
</ui>
|
Loading…
Add table
Add a link
Reference in a new issue