zuluCrypt  5.7.1
About: zuluCrypt is a simple but feature rich solution for hard drives encryption. It can manage PLAIN dm-crypt, LUKS, TrueCrypt and VeraCrypt encrypted volumes.
  Fossies Dox: zuluCrypt-5.7.1.tar.xz  ("unofficial" and yet experimental doxygen-generated source code documentation)  

about.cpp
Go to the documentation of this file.
1 /*
2  *
3  * Copyright ( c ) 2015
4  * name : Francis Banyikwa
5  * email: mhogomchungu@gmail.com
6  * This program is free software: you can redistribute it and/or modify
7  * it under the terms of the GNU General Public License as published by
8  * the Free Software Foundation, either version 2 of the License, or
9  * ( at your option ) any later version.
10  *
11  * This program is distributed in the hope that it will be useful,
12  * but WITHOUT ANY WARRANTY; without even the implied warranty of
13  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14  * GNU General Public License for more details.
15  *
16  * You should have received a copy of the GNU General Public License
17  * along with this program. If not, see <http://www.gnu.org/licenses/>.
18  */
19 
20 #include "about.h"
21 #include "ui_about.h"
22 
23 #include <QObject>
24 #include <QCloseEvent>
25 #include <QEvent>
26 
27 #include "utility.h"
28 
29 #include "version.h"
30 
31 static QString e = R"R(
32 
33 gpg key finderpring: E3AF84691424AD00E099003502FC64E8DEBF43A8
34 
35 The key can be retrieved with command: gpg --recv-keys 0x02FC64E8DEBF43A8
36 
37 The key is below:
38 
39 -----BEGIN PGP PUBLIC KEY BLOCK-----
40 
41 mQINBFmVdDYBEAC/pVNcWOEw5PMLtGiCR9WhY5LOMnR7RlXX4l7JPTiYWGAq+WOV
42 3n6ueZ8TMsFxRl2TZoV7u1SyExP1RbBrtS2d8aQM/GmWFh1HSoUfiOwXqCFVTExC
43 ORh5lgOTOWH/zkYLJksrcFhDyeip6Bjy368eFHkVRnSmYR5xj0UQpM0bsd3VGmsY
44 5YmGMudqAblutdME7DYX8E7tQ91JH8jTmtoLI99/1NVa28W75C0ixC+nu767rMFb
45 eIEzer9eZSi3Eud2u9Cj3vVyTI9f7uWltpJ3V9RbpApdc4NFPCrqaJuXyooGUdf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9Sn0PUohqen4+6OsfoydUX
78 e9qz934jWHUv+QV6KhifC3qh3ECi2/ouRS0Mnxzd1CaD0np9d/fSt4porfUJ5ck1
79 IfSPu7TFnnBhk6xt0V/SGEspcTnDAiiDcY6agMbCPo7rXMNyGVgk/a6OsO2qQGX5
80 42Hp4dPTXSjy1JiZ1htRvoau8OSrfEsHjW+x0dz6fyByW5EfewZXmFCjM3w+G5bT
81 2yAL//AkBZlL7T7IIdqkA4pVFEwAn2V1Xs5hfDuoRTFT4WkIkhaDIhiQZk/lHAz8
82 aZPWktdHzAROXiQvLEX+L5mjXgO8hPud7yXZTRIpDPRdKMZA0XVTwee4LxX/VnfB
83 cE2guccUEFD+kZiR3Dng91V9xZ/DIu98ZcAV46lYhK83Csr6XGOPdIoIdT/v/3gc
84 wvtwg4b/D8c1TmXPISCIX/cBzT3al1xjOPGQ/v+XnqMafJI5MHnFUzoRleE6slVB
85 MLTWZGcEfBcgMIzoSF+i4dqg1v3dv1pDx1X3IR0n7440uDV1XDt48j5Rv51O0GdP
86 cv9jY9bZAbVaMUjF7dw/bsqgJ2HCJ33cf16GybRtozOE36YDB2omg58ngIrlmlea
87 9azeqex9
88 =L6yQ
89 -----END PGP PUBLIC KEY BLOCK-----
90 
91 )R" ;
92 
93 about::about( QWidget * parent ) :
94  QDialog( parent ),
95  m_ui( new Ui::about )
96 {
97  m_ui->setupUi( this ) ;
98 
99  m_ui->textEdit->setText( VERSION_STRING + e ) ;
100 
101  m_ui->textEdit->setFont( parent->font() ) ;
102 
103  this->setFixedSize( this->size() ) ;
104  this->setWindowFlags( Qt::Window | Qt::Dialog ) ;
105 
106  this->setFont( parent->font() ) ;
107 
108  connect( m_ui->pushButton,SIGNAL( clicked( bool ) ),this,SLOT( pbClose() ) ) ;
109 
110  this->show() ;
111 }
112 
114 {
115  delete m_ui ;
116 }
117 
119 {
120  this->hide() ;
121  this->deleteLater() ;
122 }
123 
124 void about::closeEvent( QCloseEvent * e )
125 {
126  e->ignore() ;
127  this->pbClose() ;
128 }
129 
130 bool about::eventFilter( QObject * watched,QEvent * event )
131 {
132  return utility::eventFilter( this,watched,event,[ this ](){ this->pbClose() ; } ) ;
133 }
about::closeEvent
void closeEvent(QCloseEvent *)
Definition: about.cpp:124
StringListType::size
size_t size
Definition: StringList.c:35
about
Definition: about.h:35
about::eventFilter
bool eventFilter(QObject *watched, QEvent *event)
Definition: about.cpp:130
utility.h
hide
#define hide(z)
utility::eventFilter
bool eventFilter(QObject *gui, QObject *watched, QEvent *event, std::function< void() >)
Definition: utility.cpp:1188
about::m_ui
Ui::about * m_ui
Definition: about.h:50
Ui
Definition: changepassworddialog.h:46
about::pbClose
void pbClose(void)
Definition: about.cpp:118
about.h
e
static QString e
Definition: about.cpp:31
about::about
about(QWidget *parent)
Definition: about.cpp:93
tablewidget::setFont
void setFont(QTableWidget *, int row, const QFont &)
Definition: tablewidget.cpp:162
about::~about
~about()
Definition: about.cpp:113