File indexing completed on 2024-04-21 05:43:43

0001 /***************************************************************************
0002  *   Copyright (C) 2005 by John Myers                                      *
0003  *   electronerd@electronerdia.net                                         *
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 2 of the License, or     *
0008  *   (at your option) any later version.                                   *
0009  ***************************************************************************/
0010 
0011 #include "scopescreen.h"
0012 
0013 #include "ktechlab.h"
0014 #include "probe.h"
0015 #include "probepositioner.h"
0016 #include "simulator.h"
0017 
0018 #include <cmath>
0019 
0020 #include <KLocalizedString>
0021 
0022 // #include <q3button.h>
0023 #include <QLabel>
0024 #include <QScrollBar>
0025 #include <QSlider>
0026 #include <QTimer>
0027 #include <QToolButton>
0028 
0029 #include <cassert>
0030 
0031 #include <ktechlab_debug.h>
0032 
0033 ScopeScreen::ScopeScreen(KateMDI::ToolView *parent)
0034     : QWidget(parent)
0035 {
0036     if (parent->layout()) {
0037         parent->layout()->addWidget(this);
0038         qCDebug(KTL_LOG) << " added item selector to parent's layout " << parent;
0039     } else {
0040         qCWarning(KTL_LOG) << " unexpected null layout on parent " << parent;
0041     }
0042 
0043     setupUi(this);
0044 }
0045 
0046 ScopeScreen::~ScopeScreen()
0047 {
0048 }
0049 
0050 ScopeScreen *ScopeScreen::self(KateMDI::ToolView *parent)
0051 {
0052     static ScopeScreen *pSelf = nullptr;
0053     if (pSelf)
0054         return pSelf;
0055     assert(parent);
0056     pSelf = new ScopeScreen(parent);
0057     return pSelf;
0058 }
0059 
0060 #include "moc_scopescreen.cpp"