• Skip to content
  • Skip to link menu
KDE 4.2 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 class QModelIndex;
00029 
00030 namespace Sonnet
00031 {
00032     class BackgroundChecker;
00033 
00049     class KDEUI_EXPORT Dialog : public KDialog
00050     {
00051         Q_OBJECT
00052     public:
00053         Dialog(BackgroundChecker *checker,
00054                QWidget *parent);
00055         ~Dialog();
00056 
00057         QString originalBuffer() const;
00058         QString buffer() const;
00059 
00060         void show();
00061         void activeAutoCorrect(bool _active);
00062 
00063         // Hide warning about done(), which is a slot in QDialog and a signal here.
00064         using KDialog::done;
00065 
00066     public Q_SLOTS:
00067         void setBuffer(const QString &);
00068 
00069     Q_SIGNALS:
00075         void done( const QString& newBuffer );
00076         void misspelling( const QString& word, int start );
00077         void replace( const QString& oldWord, int start,
00078                       const QString& newWord );
00079 
00080         void stop();
00081         void cancel();
00082         void autoCorrect( const QString & currentWord, const QString & replaceWord );
00083 
00088         void spellCheckStatus(const QString &);
00089 
00097         void languageChanged( const QString &language );
00098 
00099     private Q_SLOTS:
00100         void slotMisspelling(const QString& word, int start );
00101         void slotDone();
00102 
00103         void slotFinished();
00104         void slotCancel();
00105 
00106         void slotAddWord();
00107         void slotReplaceWord();
00108         void slotReplaceAll();
00109         void slotSkip();
00110         void slotSkipAll();
00111         void slotSuggest();
00112         void slotChangeLanguage( const QString& );
00113         void slotSelectionChanged(const QModelIndex &);
00114         void slotAutocorrect();
00115 
00116     private:
00117         void updateDialog( const QString& word );
00118         void fillSuggestions( const QStringList& suggs );
00119         void initConnections();
00120         void initGui();
00121         void continueChecking();
00122 
00123     private:
00124         class Private;
00125         Private* const d;
00126         Q_DISABLE_COPY( Dialog )
00127     };
00128 }
00129 
00130 #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
  • Plasma
  • Solid
  • Sonnet
  • ThreadWeaver
Generated for kdelibs by doxygen 1.5.7
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