qskinny/inputcontext/QskHunspellCompositionModel.h
Uwe Rathmann 59b516a118 3rdparty moved to inputcontext/3rdparty.
The 3rdparty files are now compiled as part of the corresponding input
method, so that the project files can be written without using platform
specific linker flags.
2018-03-30 18:31:13 +02:00

34 lines
1.1 KiB
C++

/******************************************************************************
* QSkinny - Copyright (C) 2016 Uwe Rathmann
* This file may be used under the terms of the QSkinny License, Version 1.0
*****************************************************************************/
#ifndef QSK_HUNSPELL_COMPOSITION_MODEL_H
#define QSK_HUNSPELL_COMPOSITION_MODEL_H
#include "QskInputCompositionModel.h"
class QskHunspellCompositionModel : public QskInputCompositionModel
{
public:
QskHunspellCompositionModel();
virtual ~QskHunspellCompositionModel() override;
virtual bool supportsSuggestions() const override final;
virtual void commitCandidate( int index ) override;
virtual int candidateCount() const override;
virtual QString candidate( int pos ) const override;
protected:
virtual bool hasIntermediate() const override;
virtual QString polishPreedit( const QString& preedit ) override;
virtual bool isComposable( const QStringRef& preedit ) const override;
private:
class PrivateData;
std::unique_ptr< PrivateData > m_data;
};
#endif