2018-02-06 13:55:35 +00:00
|
|
|
/******************************************************************************
|
|
|
|
* QSkinny - Copyright (C) 2016 Uwe Rathmann
|
|
|
|
* This file may be used under the terms of the QSkinny License, Version 1.0
|
|
|
|
*****************************************************************************/
|
|
|
|
|
2017-07-21 16:21:34 +00:00
|
|
|
#ifndef QSK_PINYIN_COMPOSITION_MODEL_H
|
|
|
|
#define QSK_PINYIN_COMPOSITION_MODEL_H
|
|
|
|
|
|
|
|
#include "QskInputCompositionModel.h"
|
2018-04-20 06:52:26 +00:00
|
|
|
#include <memory>
|
2017-07-21 16:21:34 +00:00
|
|
|
|
|
|
|
class QskPinyinCompositionModel : public QskInputCompositionModel
|
|
|
|
{
|
2018-04-04 10:05:01 +00:00
|
|
|
using Inherited = QskInputCompositionModel;
|
2017-07-21 16:21:34 +00:00
|
|
|
|
|
|
|
public:
|
2018-04-23 12:06:40 +00:00
|
|
|
QskPinyinCompositionModel( QObject* );
|
2018-03-30 08:15:05 +00:00
|
|
|
virtual ~QskPinyinCompositionModel() override;
|
|
|
|
|
2018-03-30 16:31:13 +00:00
|
|
|
virtual int candidateCount() const override;
|
|
|
|
virtual QString candidate( int ) const override;
|
2017-07-21 16:21:34 +00:00
|
|
|
|
|
|
|
protected:
|
2018-04-20 06:52:26 +00:00
|
|
|
virtual void requestCandidates( const QString& ) override;
|
|
|
|
virtual void resetCandidates() override;
|
2017-07-21 16:21:34 +00:00
|
|
|
|
|
|
|
private:
|
|
|
|
class PrivateData;
|
|
|
|
std::unique_ptr< PrivateData > m_data;
|
|
|
|
};
|
|
|
|
|
2018-03-30 16:31:13 +00:00
|
|
|
#endif
|