File indexing completed on 2025-07-06 09:21:27
0001 /* 0002 SPDX-FileCopyrightText: 2010 Miha Čančula <miha.cancula@gmail.com> 0003 0004 SPDX-License-Identifier: GPL-2.0-or-later 0005 */ 0006 0007 #ifndef OCTAVECOMPLETIONOBJECT_H 0008 #define OCTAVECOMPLETIONOBJECT_H 0009 0010 #include "completionobject.h" 0011 #include "expression.h" 0012 0013 class OctaveCompletionObject : public Cantor::CompletionObject 0014 { 0015 Q_OBJECT 0016 public: 0017 OctaveCompletionObject(const QString& command, int index, Cantor::Session* parent); 0018 ~OctaveCompletionObject() override; 0019 0020 protected: 0021 void fetchCompletions() override; 0022 void fetchIdentifierType() override; 0023 private Q_SLOTS: 0024 void extractCompletions(Cantor::Expression::Status status); 0025 void extractIdentifierType(Cantor::Expression::Status status); 0026 0027 private: 0028 Cantor::Expression* m_expression; 0029 0030 }; 0031 0032 #endif // OCTAVECOMPLETIONOBJECT_H