• Skip to content
  • Skip to link menu
KDE 4.2 API Reference
  • KDE API Reference
  • kdeutils
  • Sitemap
  • Contact Us
 

kgpg

kgpgeditor.h

Go to the documentation of this file.
00001 /***************************************************************************
00002                           kgpgeditor.h  -  description
00003                              -------------------
00004     begin                : Mon Jul 8 2002
00005     copyright          : (C) 2002 by Jean-Baptiste Mardelle
00006     email                : bj@altern.org
00007  ***************************************************************************/
00008 
00009 /***************************************************************************
00010  *                                                                         *
00011  *   This program is free software; you can redistribute it and/or modify  *
00012  *   it under the terms of the GNU General Public License as published by  *
00013  *   the Free Software Foundation; either version 2 of the License, or     *
00014  *   (at your option) any later version.                                   *
00015  *                                                                         *
00016  ***************************************************************************/
00017 
00018 #ifndef KGPGEDITOR_H
00019 #define KGPGEDITOR_H
00020 
00021 
00022 #include <KXmlGuiWindow>
00023 #include <KUrl>
00024 #include <KShortcut>
00025 
00026 
00027 class KToggleAction;
00028 class KAction;
00029 class KFind;
00030 
00031 class KgpgInterface;
00032 class KgpgView;
00033 class KGpgItemModel;
00034 class KgpgLibrary;
00035 
00036 class KgpgEditor : public KXmlGuiWindow
00037 {
00038     Q_OBJECT
00039     friend class KgpgView;
00040 
00041 public:
00042     KgpgEditor(QWidget *parent, KGpgItemModel *model, Qt::WFlags f = 0, KShortcut gohome = KShortcut(QKeySequence(Qt::CTRL + Qt::Key_Home)), bool mainwindow = false);
00043     ~KgpgEditor();
00044 
00045     void openDocumentFile(const KUrl& url, const QString &encoding = QString());
00046     void openEncryptedDocumentFile(const KUrl& url);
00047 
00048     KgpgView *view;
00049 
00050 signals:
00051     void refreshImported(QStringList);
00052     void openChangeFont();
00053     void openConfigDialog();
00054     void encryptFiles(KUrl::List fileList);
00055 
00056 public slots:
00057     void slotSetFont(QFont myFont);
00058     void closeWindow();
00059 
00060 protected:
00061     void saveOptions();
00062     void initActions();
00063     bool queryClose();
00064     bool saveBeforeClear();
00065 
00066 private slots:
00067     // File menu
00068     void slotFileNew();
00069     void slotFileOpen();
00070     bool slotFileSave();
00071     bool slotFileSaveAs();
00072     void slotFilePrint();
00073     void slotFilePreEnc();
00074     void slotFilePreDec();
00075     void slotKeyManager();
00076     void slotFileClose();
00077 
00078     // Edit menu
00079     void slotundo();
00080     void slotredo();
00081     void slotEditCut();
00082     void slotEditCopy();
00083     void slotEditPaste();
00084     void slotSelectAll();
00085     void slotFind();
00086     void slotFindNext();
00087     void slotFindPrev();
00088     void slotFindText();
00089 
00090     // Coding menu
00091     void slotSetCharset();
00092     void slotResetEncoding(bool enc);
00093     bool checkEncoding(QTextCodec *codec);
00094 
00095     // Signing menu
00096     void slotPreSignFile();
00097     void slotSignFile(const KUrl &url);
00098     void slotSignFileFin(KgpgInterface *interface);
00099     void slotPreVerifyFile();
00100     void slotVerifyFile(const KUrl &url);
00101     void slotCheckMd5();
00102     void importSignatureKey(const QString &id);
00103 
00104     // Options menu
00105     void slotOptions();
00106 
00107     void slotUndoAvailable(const bool &v);
00108     void slotRedoAvailable(const bool &v);
00109     void slotCopyAvailable(const bool &v);
00110 
00111     void modified();
00112     void newText();
00113 
00114     void slotRefreshImported(KgpgLibrary *lib, const QStringList &keys);
00115     
00116 private:
00117     QStringList m_customdecrypt;
00118     QString m_textencoding;
00119 
00120     KToggleAction *m_encodingaction;
00121     KAction *m_editundo;
00122     KAction *m_editredo;
00123     KAction *m_editcopy;
00124     KAction *m_editcut;
00125     KShortcut m_godefaultkey;
00126     KFind *m_find;
00127     KUrl m_docname;
00128 
00129     bool m_textchanged;
00130     bool m_ismainwindow;
00131 
00132     KGpgItemModel *m_model;
00133 };
00134 
00135 #endif // KGPGEDITOR_H

kgpg

Skip menu "kgpg"
  • Main Page
  • Namespace List
  • Class Hierarchy
  • Alphabetical List
  • Class List
  • File List
  • Namespace Members
  • Class Members
  • Related Pages

kdeutils

Skip menu "kdeutils"
  • ark
  • kcalc
  • kcharselect
  • kdessh
  • kdf
  • kfloppy
  • kgpg
  • ktimer
  • kwallet
  • okteta
  • printer-applet
  • superkaramba
  • sweeper
Generated for kdeutils by doxygen 1.5.4
This website is maintained by Adriaan de Groot and Allen Winter.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal