|
1 |
| -/************************************************************************** |
2 |
| -** This file is part of LiteIDE |
3 |
| -** |
4 |
| -** Copyright (c) 2011-2016 LiteIDE Team. All rights reserved. |
5 |
| -** |
6 |
| -** This library is free software; you can redistribute it and/or |
7 |
| -** modify it under the terms of the GNU Lesser General Public |
8 |
| -** License as published by the Free Software Foundation; either |
9 |
| -** version 2.1 of the License, or (at your option) any later version. |
10 |
| -** |
11 |
| -** This library is distributed in the hope that it will be useful, |
12 |
| -** but WITHOUT ANY WARRANTY; without even the implied warranty of |
13 |
| -** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
14 |
| -** Lesser General Public License for more details. |
15 |
| -** |
16 |
| -** In addition, as a special exception, that plugins developed for LiteIDE, |
17 |
| -** are allowed to remain closed sourced and can be distributed under any license . |
18 |
| -** These rights are included in the file LGPL_EXCEPTION.txt in this package. |
19 |
| -** |
20 |
| -**************************************************************************/ |
21 |
| -// Module: fakevimeditoption.h |
22 |
| -// Creator: jsuppe <jon.suppe@gmail.com> |
23 |
| - |
24 |
| -#ifndef FAKEVIMEDITOPTION_H |
25 |
| -#define FAKEVIMEDITOPTION_H |
26 |
| - |
27 |
| -#include "liteapi/liteapi.h" |
28 |
| - |
29 |
| -namespace Ui { |
30 |
| - class FakeVimEditOption; |
31 |
| -} |
32 |
| - |
33 |
| -class FakeVimEditOption : public LiteApi::IOption |
34 |
| -{ |
35 |
| - Q_OBJECT |
36 |
| - |
37 |
| -public: |
38 |
| - explicit FakeVimEditOption(LiteApi::IApplication *app, QObject *parent = 0); |
39 |
| - ~FakeVimEditOption(); |
40 |
| - virtual QWidget *widget(); |
41 |
| - virtual QString name() const; |
42 |
| - virtual QString mimeType() const; |
43 |
| - virtual void apply(); |
44 |
| -private: |
45 |
| - LiteApi::IApplication *m_liteApp; |
46 |
| - QWidget *m_widget; |
47 |
| - Ui::FakeVimEditOption *ui; |
48 |
| -}; |
49 |
| - |
50 |
| -#endif // FAKEVIMEDITOPTION_H |
| 1 | +/************************************************************************** |
| 2 | +** This file is part of LiteIDE |
| 3 | +** |
| 4 | +** Copyright (c) 2011-2016 LiteIDE Team. All rights reserved. |
| 5 | +** |
| 6 | +** This library is free software; you can redistribute it and/or |
| 7 | +** modify it under the terms of the GNU Lesser General Public |
| 8 | +** License as published by the Free Software Foundation; either |
| 9 | +** version 2.1 of the License, or (at your option) any later version. |
| 10 | +** |
| 11 | +** This library is distributed in the hope that it will be useful, |
| 12 | +** but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 13 | +** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
| 14 | +** Lesser General Public License for more details. |
| 15 | +** |
| 16 | +** In addition, as a special exception, that plugins developed for LiteIDE, |
| 17 | +** are allowed to remain closed sourced and can be distributed under any license . |
| 18 | +** These rights are included in the file LGPL_EXCEPTION.txt in this package. |
| 19 | +** |
| 20 | +**************************************************************************/ |
| 21 | +// Module: fakevimeditoption.h |
| 22 | +// Creator: jsuppe <jon.suppe@gmail.com> |
| 23 | + |
| 24 | +#ifndef FAKEVIMEDITOPTION_H |
| 25 | +#define FAKEVIMEDITOPTION_H |
| 26 | + |
| 27 | +#include "liteapi/liteapi.h" |
| 28 | + |
| 29 | +namespace Ui { |
| 30 | + class FakeVimEditOption; |
| 31 | +} |
| 32 | + |
| 33 | +class FakeVimEditOption : public LiteApi::IOption |
| 34 | +{ |
| 35 | + Q_OBJECT |
| 36 | + |
| 37 | +public: |
| 38 | + explicit FakeVimEditOption(LiteApi::IApplication *app, QObject *parent = 0); |
| 39 | + ~FakeVimEditOption(); |
| 40 | + virtual QWidget *widget(); |
| 41 | + virtual QString name() const; |
| 42 | + virtual QString mimeType() const; |
| 43 | + virtual void apply(); |
| 44 | +private slots: |
| 45 | + void on_resetCommandsButton_clicked(); |
| 46 | + |
| 47 | +private: |
| 48 | + LiteApi::IApplication *m_liteApp; |
| 49 | + QWidget *m_widget; |
| 50 | + Ui::FakeVimEditOption *ui; |
| 51 | +}; |
| 52 | + |
| 53 | +#endif // FAKEVIMEDITOPTION_H |
0 commit comments