PageRenderTime 38ms CodeModel.GetById 11ms RepoModel.GetById 1ms app.codeStats 0ms

/cantor-4.8.97/src/backends/sage/sagekeywords.h

#
C Header | 51 lines | 16 code | 8 blank | 27 comment | 0 complexity | f1aea8ba42db4ef8e1b5f74f026bee19 MD5 | raw file
Possible License(s): GPL-2.0, CC-BY-SA-3.0
  1. /*
  2. Copyright 2012 Martin Kuettler <martin.kuettler@gmail.com>
  3. This program is free software; you can redistribute it and/or
  4. modify it under the terms of the GNU General Public License as
  5. published by the Free Software Foundation; either version 2 of
  6. the License or (at your option) version 3 or any later version
  7. accepted by the membership of KDE e.V. (or its successor approved
  8. by the membership of KDE e.V.), which shall act as a proxy
  9. defined in Section 14 of version 3 of the license.
  10. This program is distributed in the hope that it will be useful,
  11. but WITHOUT ANY WARRANTY; without even the implied warranty of
  12. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  13. GNU General Public License for more details.
  14. You should have received a copy of the GNU General Public License
  15. along with this program. If not, see <http://www.gnu.org/licenses/>.
  16. */
  17. #ifndef _SAGEKEYWORDS_H
  18. #define _SAGEKEYWORDS_H
  19. #include <QStringList>
  20. /**
  21. Class to store all Sage keywords (i.e. Python keywords)
  22. It is similiar to MaximaKeywords or ScilabKeywords, but for Sage we only
  23. need to store actual keywords, as variables and functions can be fetched from
  24. the backend.
  25. */
  26. class SageKeywords
  27. {
  28. private:
  29. SageKeywords();
  30. ~SageKeywords();
  31. public:
  32. static SageKeywords* instance();
  33. const QStringList& keywords() const;
  34. //const QStringList& functions() const;
  35. //const QStringList& variables() const;
  36. private:
  37. void loadFromFile();
  38. QStringList m_keywords;
  39. };
  40. #endif /* _SAGEKEYWORDS_H */