mirror of
https://bitbucket.org/smil3y/kde-playground.git
synced 2025-02-23 18:32:51 +00:00
kgpg: key management will be done either via actions and dialogs/wizards or separate tool
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
This commit is contained in:
parent
0140cb19a6
commit
2c852726fe
3 changed files with 52 additions and 49 deletions
|
@ -53,7 +53,6 @@ KGPG::KGPG(QWidget *parent)
|
||||||
gpgme_set_progress_cb(m_gpgctx, KGPG::gpgProgressCallback, this);
|
gpgme_set_progress_cb(m_gpgctx, KGPG::gpgProgressCallback, this);
|
||||||
|
|
||||||
connect(m_ui.keysbox, SIGNAL(currentIndexChanged(int)), this, SLOT(slotKeysBox(int)));
|
connect(m_ui.keysbox, SIGNAL(currentIndexChanged(int)), this, SLOT(slotKeysBox(int)));
|
||||||
connect(m_ui.generatebutton, SIGNAL(clicked()), this, SLOT(slotGenerateKey()));
|
|
||||||
connect(m_ui.startbutton, SIGNAL(clicked()), this, SLOT(slotStart()));
|
connect(m_ui.startbutton, SIGNAL(clicked()), this, SLOT(slotStart()));
|
||||||
|
|
||||||
connect(m_ui.actionQuit, SIGNAL(triggered()), this, SLOT(slotQuit()));
|
connect(m_ui.actionQuit, SIGNAL(triggered()), this, SLOT(slotQuit()));
|
||||||
|
@ -456,12 +455,6 @@ void KGPG::slotKeysBox(const int index)
|
||||||
m_ui.cansignled->setState(kgpgkey.cansign ? KLed::On : KLed::Off);
|
m_ui.cansignled->setState(kgpgkey.cansign ? KLed::On : KLed::Off);
|
||||||
}
|
}
|
||||||
|
|
||||||
void KGPG::slotGenerateKey()
|
|
||||||
{
|
|
||||||
// TODO: implement
|
|
||||||
setError("Not implemented");
|
|
||||||
}
|
|
||||||
|
|
||||||
void KGPG::slotStart()
|
void KGPG::slotStart()
|
||||||
{
|
{
|
||||||
start();
|
start();
|
||||||
|
|
|
@ -70,7 +70,6 @@ public:
|
||||||
|
|
||||||
private Q_SLOTS:
|
private Q_SLOTS:
|
||||||
void slotKeysBox(const int index);
|
void slotKeysBox(const int index);
|
||||||
void slotGenerateKey();
|
|
||||||
void slotStart();
|
void slotStart();
|
||||||
void slotEncryptMode();
|
void slotEncryptMode();
|
||||||
void slotDecryptMode();
|
void slotDecryptMode();
|
||||||
|
|
|
@ -20,47 +20,14 @@
|
||||||
</property>
|
</property>
|
||||||
<widget class="QWidget" name="centralwidget">
|
<widget class="QWidget" name="centralwidget">
|
||||||
<layout class="QGridLayout" name="gridLayout_3">
|
<layout class="QGridLayout" name="gridLayout_3">
|
||||||
<item row="3" column="0" colspan="3">
|
<item row="8" column="0" colspan="3">
|
||||||
<layout class="QGridLayout" name="gridLayout_2">
|
|
||||||
<item row="0" column="1">
|
|
||||||
<widget class="KComboBox" name="keysbox">
|
|
||||||
<property name="sizePolicy">
|
|
||||||
<sizepolicy hsizetype="MinimumExpanding" vsizetype="Fixed">
|
|
||||||
<horstretch>0</horstretch>
|
|
||||||
<verstretch>0</verstretch>
|
|
||||||
</sizepolicy>
|
|
||||||
</property>
|
|
||||||
</widget>
|
|
||||||
</item>
|
|
||||||
<item row="0" column="0">
|
|
||||||
<widget class="QLabel" name="label">
|
|
||||||
<property name="text">
|
|
||||||
<string>Select key:</string>
|
|
||||||
</property>
|
|
||||||
</widget>
|
|
||||||
</item>
|
|
||||||
<item row="0" column="2">
|
|
||||||
<widget class="KPushButton" name="generatebutton">
|
|
||||||
<property name="text">
|
|
||||||
<string>Generate key</string>
|
|
||||||
</property>
|
|
||||||
<property name="icon">
|
|
||||||
<iconset theme="list-add">
|
|
||||||
<normaloff/>
|
|
||||||
</iconset>
|
|
||||||
</property>
|
|
||||||
</widget>
|
|
||||||
</item>
|
|
||||||
</layout>
|
|
||||||
</item>
|
|
||||||
<item row="9" column="0" colspan="3">
|
|
||||||
<widget class="QProgressBar" name="progressbar">
|
<widget class="QProgressBar" name="progressbar">
|
||||||
<property name="value">
|
<property name="value">
|
||||||
<number>24</number>
|
<number>24</number>
|
||||||
</property>
|
</property>
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
<item row="6" column="0" colspan="3">
|
<item row="5" column="0" colspan="3">
|
||||||
<widget class="QFrame" name="frame">
|
<widget class="QFrame" name="frame">
|
||||||
<property name="sizePolicy">
|
<property name="sizePolicy">
|
||||||
<sizepolicy hsizetype="MinimumExpanding" vsizetype="MinimumExpanding">
|
<sizepolicy hsizetype="MinimumExpanding" vsizetype="MinimumExpanding">
|
||||||
|
@ -207,7 +174,7 @@
|
||||||
</layout>
|
</layout>
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
<item row="7" column="1">
|
<item row="6" column="1">
|
||||||
<widget class="KPushButton" name="startbutton">
|
<widget class="KPushButton" name="startbutton">
|
||||||
<property name="text">
|
<property name="text">
|
||||||
<string>Start</string>
|
<string>Start</string>
|
||||||
|
@ -219,7 +186,7 @@
|
||||||
</property>
|
</property>
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
<item row="7" column="0">
|
<item row="6" column="0">
|
||||||
<spacer name="horizontalSpacer">
|
<spacer name="horizontalSpacer">
|
||||||
<property name="orientation">
|
<property name="orientation">
|
||||||
<enum>Qt::Horizontal</enum>
|
<enum>Qt::Horizontal</enum>
|
||||||
|
@ -232,7 +199,7 @@
|
||||||
</property>
|
</property>
|
||||||
</spacer>
|
</spacer>
|
||||||
</item>
|
</item>
|
||||||
<item row="7" column="2">
|
<item row="6" column="2">
|
||||||
<spacer name="horizontalSpacer_2">
|
<spacer name="horizontalSpacer_2">
|
||||||
<property name="orientation">
|
<property name="orientation">
|
||||||
<enum>Qt::Horizontal</enum>
|
<enum>Qt::Horizontal</enum>
|
||||||
|
@ -247,6 +214,9 @@
|
||||||
</item>
|
</item>
|
||||||
<item row="0" column="0" colspan="3">
|
<item row="0" column="0" colspan="3">
|
||||||
<layout class="QGridLayout" name="gridLayout_4">
|
<layout class="QGridLayout" name="gridLayout_4">
|
||||||
|
<item row="0" column="1">
|
||||||
|
<widget class="KUrlRequester" name="sourcerequester"/>
|
||||||
|
</item>
|
||||||
<item row="0" column="0">
|
<item row="0" column="0">
|
||||||
<widget class="QLabel" name="label_9">
|
<widget class="QLabel" name="label_9">
|
||||||
<property name="text">
|
<property name="text">
|
||||||
|
@ -267,9 +237,6 @@
|
||||||
</property>
|
</property>
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
<item row="0" column="1">
|
|
||||||
<widget class="KUrlRequester" name="sourcerequester"/>
|
|
||||||
</item>
|
|
||||||
<item row="1" column="1">
|
<item row="1" column="1">
|
||||||
<widget class="KUrlRequester" name="destinationrequester">
|
<widget class="KUrlRequester" name="destinationrequester">
|
||||||
<property name="mode">
|
<property name="mode">
|
||||||
|
@ -277,6 +244,26 @@
|
||||||
</property>
|
</property>
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
|
<item row="2" column="1">
|
||||||
|
<widget class="KComboBox" name="keysbox">
|
||||||
|
<property name="sizePolicy">
|
||||||
|
<sizepolicy hsizetype="MinimumExpanding" vsizetype="Fixed">
|
||||||
|
<horstretch>0</horstretch>
|
||||||
|
<verstretch>0</verstretch>
|
||||||
|
</sizepolicy>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
|
<item row="2" column="0">
|
||||||
|
<widget class="QLabel" name="label">
|
||||||
|
<property name="text">
|
||||||
|
<string>Select key:</string>
|
||||||
|
</property>
|
||||||
|
<property name="alignment">
|
||||||
|
<set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
</layout>
|
</layout>
|
||||||
</item>
|
</item>
|
||||||
</layout>
|
</layout>
|
||||||
|
@ -305,6 +292,14 @@
|
||||||
<addaction name="actionSign"/>
|
<addaction name="actionSign"/>
|
||||||
<addaction name="actionVerify"/>
|
<addaction name="actionVerify"/>
|
||||||
</widget>
|
</widget>
|
||||||
|
<widget class="QMenu" name="menuKey">
|
||||||
|
<property name="title">
|
||||||
|
<string>Key</string>
|
||||||
|
</property>
|
||||||
|
<addaction name="actionGenerate"/>
|
||||||
|
<addaction name="actionExport"/>
|
||||||
|
<addaction name="actionImport"/>
|
||||||
|
</widget>
|
||||||
<widget class="QMenu" name="menuAbout">
|
<widget class="QMenu" name="menuAbout">
|
||||||
<property name="title">
|
<property name="title">
|
||||||
<string>About</string>
|
<string>About</string>
|
||||||
|
@ -312,6 +307,7 @@
|
||||||
</widget>
|
</widget>
|
||||||
<addaction name="menuFile"/>
|
<addaction name="menuFile"/>
|
||||||
<addaction name="menuMode"/>
|
<addaction name="menuMode"/>
|
||||||
|
<addaction name="menuKey"/>
|
||||||
<addaction name="menuAbout"/>
|
<addaction name="menuAbout"/>
|
||||||
</widget>
|
</widget>
|
||||||
<widget class="QStatusBar" name="statusbar"/>
|
<widget class="QStatusBar" name="statusbar"/>
|
||||||
|
@ -352,6 +348,21 @@
|
||||||
<string>Verify</string>
|
<string>Verify</string>
|
||||||
</property>
|
</property>
|
||||||
</action>
|
</action>
|
||||||
|
<action name="actionGenerate">
|
||||||
|
<property name="text">
|
||||||
|
<string>Generate</string>
|
||||||
|
</property>
|
||||||
|
</action>
|
||||||
|
<action name="actionExport">
|
||||||
|
<property name="text">
|
||||||
|
<string>Export</string>
|
||||||
|
</property>
|
||||||
|
</action>
|
||||||
|
<action name="actionImport">
|
||||||
|
<property name="text">
|
||||||
|
<string>Import</string>
|
||||||
|
</property>
|
||||||
|
</action>
|
||||||
</widget>
|
</widget>
|
||||||
<customwidgets>
|
<customwidgets>
|
||||||
<customwidget>
|
<customwidget>
|
||||||
|
|
Loading…
Add table
Reference in a new issue