• Skip to content
  • Skip to link menu
KDE 4.1 API Reference
  • KDE API Reference
  • kdelibs
  • Sitemap
  • Contact Us
 

KDEUI

dialog.h

Go to the documentation of this file.
00001 // -*- Mode: C++; c-basic-offset: 4; indent-tabs-mode: nil; -*-
00022 #ifndef SONNET_DIALOG_H
00023 #define SONNET_DIALOG_H
00024 
00025 #include <kdialog.h>
00026 
00027 class QListWidgetItem;
00028 
00029 namespace Sonnet
00030 {
00031     class BackgroundChecker;
00032 
00048     class KDEUI_EXPORT Dialog : public KDialog
00049     {
00050         Q_OBJECT
00051     public:
00052         Dialog(BackgroundChecker *checker,
00053                QWidget *parent);
00054         ~Dialog();
00055 
00056         QString originalBuffer() const;
00057         QString buffer() const;
00058 
00059         void show();
00060         void activeAutoCorrect(bool _active);
00061 
00062     public Q_SLOTS:
00063         void setBuffer(const QString &);
00064 
00065     Q_SIGNALS:
00071         void done( const QString& newBuffer );
00072         void misspelling( const QString& word, int start );
00073         void replace( const QString& oldWord, int start,
00074                       const QString& newWord );
00075 
00076         void stop();
00077         void cancel();
00078         void autoCorrect( const QString & currentWord, const QString & replaceWord );
00079 
00084         void spellCheckStatus(const QString &);
00085 
00093         void languageChanged( const QString &language );
00094 
00095     private Q_SLOTS:
00096         void slotMisspelling(const QString& word, int start );
00097         void slotDone();
00098 
00099         void slotFinished();
00100         void slotCancel();
00101 
00102         void slotAddWord();
00103         void slotReplaceWord();
00104         void slotReplaceAll();
00105         void slotSkip();
00106         void slotSkipAll();
00107         void slotSuggest();
00108         void slotChangeLanguage( const QString& );
00109         void slotSelectionChanged( QListWidgetItem * );
00110         void slotAutocorrect();
00111 
00112     private:
00113         void updateDialog( const QString& word );
00114         void fillSuggestions( const QStringList& suggs );
00115         void initConnections();
00116         void initGui();
00117         void continueChecking();
00118 
00119     private:
00120         class Private;
00121         Private* const d;
00122         Q_DISABLE_COPY( Dialog )
00123     };
00124 }
00125 
00126 #endif

KDEUI

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

kdelibs

Skip menu "kdelibs"
  • DNSSD
  • Interfaces
  •   KHexEdit
  •   KMediaPlayer
  •   KSpeech
  •   KTextEditor
  • Kate
  • kconf_update
  • KDE3Support
  •   KUnitTest
  • KDECore
  • KDED
  • KDEsu
  • KDEUI
  • KDocTools
  • KFile
  • KHTML
  • KImgIO
  • KInit
  • KIO
  • KIOSlave
  • KJS
  •   KJS-API
  •   WTF
  • kjsembed
  • KNewStuff
  • KParts
  • Kross
  • KUtils
  • Nepomuk
  • Solid
  • Sonnet
  • ThreadWeaver
Generated for kdelibs 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