platform/android/Rhodes/src/com/rhomobile/rhodes/ui/LogViewDialog.java in rhodes-1.4.2 vs platform/android/Rhodes/src/com/rhomobile/rhodes/ui/LogViewDialog.java in rhodes-1.5.0

- old
+ new

@@ -1,5 +1,25 @@ +/* + ============================================================================ + Author : Dmitry Moskalchuk + Version : 1.5 + Copyright : Copyright (C) 2008 Rhomobile. All rights reserved. + + This program is free software: you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation, either version 3 of the License, or + (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program. If not, see <http://www.gnu.org/licenses/>. + ============================================================================ + */ package com.rhomobile.rhodes.ui; import com.rhomobile.rhodes.AndroidR; import com.rhomobile.rhodes.RhodesInstance; @@ -18,10 +38,11 @@ super(context); } private Button refreshButton; private Button clearButton; + private Button sendButton; private Button closeButton; private TextView logContent; private int curLine = 0; @Override @@ -31,14 +52,16 @@ getWindow().requestFeature(Window.FEATURE_NO_TITLE); setContentView(AndroidR.layout.logview); refreshButton = (Button) findViewById(AndroidR.id.logviewRefreshButton); clearButton = (Button) findViewById(AndroidR.id.logviewClearButton); + sendButton = (Button) findViewById(AndroidR.id.logviewSendButton); closeButton = (Button) findViewById(AndroidR.id.logviewCloseButton); refreshButton.setOnClickListener(this); clearButton.setOnClickListener(this); + sendButton.setOnClickListener(this); closeButton.setOnClickListener(this); logContent = (TextView) this.findViewById(AndroidR.id.logcontent); loadLogText(); @@ -50,9 +73,12 @@ loadLogText(); break; case AndroidR.id.logviewClearButton: RhodesInstance.getLogConf().clearLog(); loadLogText(); + break; + case AndroidR.id.logviewSendButton: + RhodesInstance.getLogConf().sendLog(); break; case AndroidR.id.logviewCloseButton: cancel(); break; }