File indexing completed on 2024-04-14 04:31:16
0001 /* This file is part of KDevelop 0002 * 0003 * Copyright (C) 2014-2015 Miquel Sabaté Solà <mikisabate@gmail.com> 0004 * 0005 * This program is free software: you can redistribute it and/or modify 0006 * it under the terms of the GNU General Public License as published by 0007 * the Free Software Foundation, either version 3 of the License, or 0008 * (at your option) any later version. 0009 * 0010 * This program is distributed in the hope that it will be useful, 0011 * but WITHOUT ANY WARRANTY; without even the implied warranty of 0012 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 0013 * GNU General Public License for more details. 0014 * 0015 * You should have received a copy of the GNU General Public License 0016 * along with this program. If not, see <http://www.gnu.org/licenses/>. 0017 */ 0018 0019 #ifndef RUBY_RAILS_H 0020 #define RUBY_RAILS_H 0021 0022 #include <KActionCollection> 0023 #include <rails/export.h> 0024 0025 namespace ruby { 0026 0027 class LanguageSupport; 0028 0029 namespace rails { 0030 0031 class Switchers; 0032 class DataProvider; 0033 0034 /** 0035 * @class Support 0036 * 0037 * This class gathers together anything that has to do with Rails support. This 0038 * includes setting up Quick open, the main window actions, etc. 0039 */ 0040 class KDEVRUBYRAILS_EXPORT Support : public QObject 0041 { 0042 Q_OBJECT 0043 0044 public: 0045 explicit Support(ruby::LanguageSupport *language); 0046 ~Support() override; 0047 0048 /** 0049 * Setup the Main Window actions. 0050 * 0051 * @param actions The main window actions to be modified. 0052 */ 0053 void setupActions(KActionCollection &actions); 0054 0055 private: 0056 void setupQuickOpen(); 0057 0058 private: 0059 ruby::LanguageSupport *m_support; 0060 Switchers *m_switchers; 0061 DataProvider *m_views; 0062 DataProvider *m_tests; 0063 }; 0064 0065 } 0066 } 0067 0068 #endif // RUBY_RAILS_H 0069