diff options
author | Norbert Preining <norbert@preining.info> | 2020-09-20 03:03:26 +0000 |
---|---|---|
committer | Norbert Preining <norbert@preining.info> | 2020-09-20 03:03:26 +0000 |
commit | 1f457376b478257b88d4a857f5ec1b6155442dd7 (patch) | |
tree | 2a06a60551dea362cf8cb0cb0ba66c78608717c4 /support/dktools/DkWxCommunicator.cpp | |
parent | ac690ca29ad5bf8a5203a65fd6252f7b564f4727 (diff) |
CTAN sync 202009200303
Diffstat (limited to 'support/dktools/DkWxCommunicator.cpp')
-rw-r--r-- | support/dktools/DkWxCommunicator.cpp | 102 |
1 files changed, 40 insertions, 62 deletions
diff --git a/support/dktools/DkWxCommunicator.cpp b/support/dktools/DkWxCommunicator.cpp index 582f9c5bc2..3726f5e851 100644 --- a/support/dktools/DkWxCommunicator.cpp +++ b/support/dktools/DkWxCommunicator.cpp @@ -1,43 +1,21 @@ /* - WARNING: This file was generated by dkct. - Changes you make here will be lost if dkct is run again! - You should modify the original source and run dkct on it. - Original source: DkWxCommunicator.cpt +Copyright (C) 2011-2020, Dirk Krause +SPDX-License-Identifier: BSD-3-Clause */ /* -Copyright (C) 2011-2017, Dirk Krause - -Redistribution and use in source and binary forms, with or without -modification, are permitted provided that the following conditions are met: - -* Redistributions of source code must retain the above copyright notice, - this list of conditions and the following disclaimer. -* Redistributions in binary form must reproduce the above opyright notice, - this list of conditions and the following disclaimer in the documentation - and/or other materials provided with the distribution. -* Neither the name of the author nor the names of contributors may be used - to endorse or promote products derived from this software without specific - prior written permission. - -THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS IS'' -AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE -IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE -ARE DISCLAIMED. -IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY -DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES -(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; -LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND -ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT -(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF -THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + WARNING: This file was generated by the dkct program (see + http://dktools.sourceforge.net/ for details). + Changes you make here will be lost if dkct is run again! + You should modify the original source and run dkct on it. + Original source: DkWxCommunicator.cpt */ /** @file DkWxCommunicator.cpp The DkWxCommunicator module. */ -#line 271 "DkWxCommunicator.cpt" +#line 277 "DkWxCommunicator.cpt" #include "dk3wxs.h" @@ -47,7 +25,7 @@ THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. -#line 279 "DkWxCommunicator.cpt" +#line 285 "DkWxCommunicator.cpt" @@ -64,13 +42,13 @@ DkWxCommunicator::DkWxCommunicator(int we, int de) { -#line 294 "DkWxCommunicator.cpt" +#line 300 "DkWxCommunicator.cpt" wxe = we; dke = de; iRunning = 0; iAutostart = DK3_WX_AUTOSTART_NORMAL; -#line 298 "DkWxCommunicator.cpt" +#line 304 "DkWxCommunicator.cpt" sMessages = NULL; sFilename = NULL; iGauge = 0; @@ -80,7 +58,7 @@ DkWxCommunicator::DkWxCommunicator(int we, int de) sMessages = new wxString(dkwx_communicator_empty_text); -#line 306 "DkWxCommunicator.cpt" +#line 312 "DkWxCommunicator.cpt" } @@ -118,7 +96,7 @@ DkWxCommunicator::checkSetup() const int DkWxCommunicator::getUpdates( - wxWindow *wDialog, + wxWindow * WXUNUSED(wDialog), wxStaticText *tFilename, wxGauge *gProgress ) @@ -262,7 +240,7 @@ DkWxCommunicator::setRunning(int nv) { -#line 486 "DkWxCommunicator.cpt" +#line 492 "DkWxCommunicator.cpt" wxCriticalSectionLocker lock(csProtect); /* Set new value. @@ -274,17 +252,17 @@ DkWxCommunicator::setRunning(int nv) */ if(nv == 0) { -#line 496 "DkWxCommunicator.cpt" +#line 502 "DkWxCommunicator.cpt" if(iAutostart == DK3_WX_AUTOSTART_RUNNING) { -#line 497 "DkWxCommunicator.cpt" +#line 503 "DkWxCommunicator.cpt" iAutostart = DK3_WX_AUTOSTART_FINISHED; -#line 498 "DkWxCommunicator.cpt" +#line 504 "DkWxCommunicator.cpt" } } -#line 500 "DkWxCommunicator.cpt" +#line 506 "DkWxCommunicator.cpt" } @@ -320,25 +298,25 @@ DkWxCommunicator::addWxText(wxChar const *t) { -#line 534 "DkWxCommunicator.cpt" +#line 540 "DkWxCommunicator.cpt" if(sMessages) { -#line 535 "DkWxCommunicator.cpt" +#line 541 "DkWxCommunicator.cpt" if(t) { -#line 536 "DkWxCommunicator.cpt" +#line 542 "DkWxCommunicator.cpt" wxCriticalSectionLocker lock(csProtect); -#line 538 "DkWxCommunicator.cpt" +#line 544 "DkWxCommunicator.cpt" sMessages->Append(t); -#line 540 "DkWxCommunicator.cpt" +#line 546 "DkWxCommunicator.cpt" } } -#line 542 "DkWxCommunicator.cpt" +#line 548 "DkWxCommunicator.cpt" } @@ -393,20 +371,20 @@ DkWxCommunicator::autostartCanRun() int back = 0; -#line 595 "DkWxCommunicator.cpt" +#line 601 "DkWxCommunicator.cpt" { wxCriticalSectionLocker lock(csProtect); if(iAutostart == DK3_WX_AUTOSTART_START) { -#line 598 "DkWxCommunicator.cpt" +#line 604 "DkWxCommunicator.cpt" iAutostart = DK3_WX_AUTOSTART_RUNNING; -#line 599 "DkWxCommunicator.cpt" +#line 605 "DkWxCommunicator.cpt" back = 1; } } -#line 602 "DkWxCommunicator.cpt" +#line 608 "DkWxCommunicator.cpt" return back; } @@ -417,15 +395,15 @@ DkWxCommunicator::autostartSetFinished() { -#line 611 "DkWxCommunicator.cpt" +#line 617 "DkWxCommunicator.cpt" wxCriticalSectionLocker lock(csProtect); if(iAutostart == DK3_WX_AUTOSTART_RUNNING) { iAutostart = DK3_WX_AUTOSTART_FINISHED; -#line 614 "DkWxCommunicator.cpt" +#line 620 "DkWxCommunicator.cpt" } -#line 615 "DkWxCommunicator.cpt" +#line 621 "DkWxCommunicator.cpt" } @@ -436,18 +414,18 @@ DkWxCommunicator::autostartIsFinished() int back = 0; -#line 624 "DkWxCommunicator.cpt" +#line 630 "DkWxCommunicator.cpt" { wxCriticalSectionLocker lock(csProtect); if(iAutostart == DK3_WX_AUTOSTART_FINISHED) { iAutostart = DK3_WX_AUTOSTART_WAIT_FOR_EXIT; -#line 628 "DkWxCommunicator.cpt" +#line 634 "DkWxCommunicator.cpt" back = 1; } } -#line 631 "DkWxCommunicator.cpt" +#line 637 "DkWxCommunicator.cpt" return back; } @@ -459,13 +437,13 @@ DkWxCommunicator::autostartGet() int back; -#line 641 "DkWxCommunicator.cpt" +#line 647 "DkWxCommunicator.cpt" { wxCriticalSectionLocker lock(csProtect); back = iAutostart; } -#line 645 "DkWxCommunicator.cpt" +#line 651 "DkWxCommunicator.cpt" return back; } @@ -476,19 +454,19 @@ DkWxCommunicator::autostartEnable(bool nv) { -#line 654 "DkWxCommunicator.cpt" +#line 660 "DkWxCommunicator.cpt" wxCriticalSectionLocker lock(csProtect); if(nv) { iAutostart = DK3_WX_AUTOSTART_START; -#line 657 "DkWxCommunicator.cpt" +#line 663 "DkWxCommunicator.cpt" } else { iAutostart = DK3_WX_AUTOSTART_NORMAL; -#line 659 "DkWxCommunicator.cpt" +#line 665 "DkWxCommunicator.cpt" } -#line 660 "DkWxCommunicator.cpt" +#line 666 "DkWxCommunicator.cpt" } |