Nicolas Jager | 998fbd7 | 2016-08-08 11:41:28 -0400 | [diff] [blame] | 1 | #pragma once
|
| 2 | /**************************************************************************
|
| 3 | * Copyright (C) 2016 by Savoir-faire Linux *
|
| 4 | * Author: Jäger Nicolas <nicolas.jager@savoirfairelinux.com> *
|
| 5 | * *
|
| 6 | * This program is free software; you can redistribute it and/or modify *
|
| 7 | * it under the terms of the GNU General Public License as published by *
|
| 8 | * the Free Software Foundation; either version 3 of the License, or *
|
| 9 | * (at your option) any later version. *
|
| 10 | * *
|
| 11 | * This program 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 *
|
| 14 | * GNU General Public License for more details. *
|
| 15 | * *
|
| 16 | * You should have received a copy of the GNU General Public License *
|
| 17 | * along with this program. If not, see <http://www.gnu.org/licenses/>. *
|
| 18 | **************************************************************************/
|
| 19 | #include "RingConsolePanel.g.h"
|
| 20 |
|
| 21 | namespace RingClientUWP
|
| 22 | {
|
| 23 | namespace Views
|
| 24 | {
|
| 25 | public ref class RingConsolePanel sealed
|
| 26 | {
|
| 27 | public:
|
| 28 | RingConsolePanel();
|
Nicolas Jager | eeef17c | 2016-08-16 10:21:54 -0400 | [diff] [blame] | 29 | void output(Platform::String^ message);
|
| 30 |
|
| 31 | private:
|
| 32 | void sendCommand();
|
| 33 | void addCommandToHistory();
|
| 34 | void _btnSendDbgCmd__Click(Platform::Object^ sender, Windows::UI::Xaml::RoutedEventArgs^ e);
|
| 35 | void _sendDbgCmd__KeyDown(Platform::Object^ sender, Windows::UI::Xaml::Input::KeyRoutedEventArgs^ e);
|
| 36 |
|
| 37 | int historyLevel = 0;
|
| 38 | /* commands already send */
|
| 39 | Vector<String^> historyCmds;
|
| 40 | /* command not already send */
|
| 41 | String^ currentCmd;
|
Nicolas Jager | 998fbd7 | 2016-08-08 11:41:28 -0400 | [diff] [blame] | 42 | };
|
| 43 | }
|
| 44 | } |