File indexing completed on 2024-04-28 11:20:32

0001 /*
0002     SPDX-License-Identifier: GPL-2.0-or-later
0003     SPDX-FileCopyrightText: 2009 Alexander Rieder <alexanderrieder@gmail.com>
0004 */
0005 
0006 #ifndef _MAXIMACOMPLETIONOBJECT_H
0007 #define _MAXIMACOMPLETIONOBJECT_H
0008 
0009 #include "completionobject.h"
0010 
0011 class MaximaSession;
0012 
0013 class MaximaCompletionObject : public Cantor::CompletionObject
0014 {
0015   public:
0016     MaximaCompletionObject( const QString& cmd, int index, MaximaSession* session );
0017     ~MaximaCompletionObject() override = default;
0018 
0019   protected:
0020     bool mayIdentifierContain(QChar c) const override;
0021     bool mayIdentifierBeginWith(QChar c) const override;
0022 
0023   protected Q_SLOTS:
0024     void fetchCompletions() override;
0025     void fetchIdentifierType() override;
0026 };
0027 
0028 #endif /* _MAXIMACOMPLETIONOBJECT_H */