File indexing completed on 2024-12-22 04:17:53

0001 /***************************************************************************
0002                               dialoglauncher.cpp
0003                              -------------------
0004     begin                : Nov. 24, 2004
0005     copyright            : (C) 2004 The University of Toronto
0006     email                : netterfield@astro.utoronto.ca
0007  ***************************************************************************/
0008 
0009 /***************************************************************************
0010  *                                                                         *
0011  *   This program is free software; you can redistribute it and/or modify  *
0012  *   it under the terms of the GNU General Public License as published by  *
0013  *   the Free Software Foundation; either version 2 of the License, or     *
0014  *   (at your option) any later version.                                   *
0015  *                                                                         *
0016  ***************************************************************************/
0017 
0018 #include "dialoglauncher.h"
0019 
0020 #include <QApplication>
0021 
0022 namespace Kst {
0023 
0024 DialogLauncher *DialogLauncher::_self = 0L;
0025 void DialogLauncher::cleanup() {
0026     delete _self;
0027     _self = 0;
0028 }
0029 
0030 
0031 DialogLauncher *DialogLauncher::self() {
0032   Q_ASSERT(_self);
0033   return _self;
0034 }
0035 
0036 
0037 void DialogLauncher::replaceSelf(DialogLauncher *newInstance) {
0038   cleanup();
0039   _self = newInstance;
0040 }
0041 
0042 
0043 DialogLauncher::DialogLauncher() {
0044   qAddPostRoutine(DialogLauncher::cleanup);
0045 }
0046 
0047 
0048 DialogLauncher::~DialogLauncher() {
0049 }
0050 
0051 
0052 void DialogLauncher::showVectorDialog(QString &vectorname, ObjectPtr objectPtr, bool modal) {
0053   Q_UNUSED(objectPtr);
0054   Q_UNUSED(vectorname);
0055   Q_UNUSED(modal);
0056 }
0057 
0058 
0059 void DialogLauncher::showMatrixDialog(QString &matrixName, ObjectPtr objectPtr, bool modal) {
0060   Q_UNUSED(objectPtr);
0061   Q_UNUSED(matrixName);
0062   Q_UNUSED(modal);
0063 }
0064 
0065 
0066 void DialogLauncher::showScalarDialog(QString &scalarname, ObjectPtr objectPtr, bool modal) {
0067   Q_UNUSED(objectPtr);
0068   Q_UNUSED(scalarname);
0069   Q_UNUSED(modal);
0070 }
0071 
0072 
0073 void DialogLauncher::showStringDialog(QString &scalarname, ObjectPtr objectPtr, bool modal) {
0074   Q_UNUSED(objectPtr);
0075   Q_UNUSED(scalarname);
0076   Q_UNUSED(modal);
0077 }
0078 
0079 void DialogLauncher::showDataSourceDialog(QString &datasourcename, ObjectPtr objectPtr, bool modal) {
0080   Q_UNUSED(objectPtr);
0081   Q_UNUSED(datasourcename);
0082   Q_UNUSED(modal);
0083 }
0084 
0085 void DialogLauncher::showCurveDialog(ObjectPtr objectPtr, VectorPtr vector, PlotItemInterface *plotItem) {
0086   Q_UNUSED(objectPtr);
0087   Q_UNUSED(vector);
0088   Q_UNUSED(plotItem);
0089 }
0090 
0091 void DialogLauncher::showMultiCurveDialog(QList<ObjectPtr> curves) {
0092   Q_UNUSED(curves);
0093 }
0094 
0095 void DialogLauncher::showImageDialog(ObjectPtr objectPtr, MatrixPtr matrix) {
0096   Q_UNUSED(objectPtr);
0097   Q_UNUSED(matrix);
0098 }
0099 
0100 void DialogLauncher::showMultiImageDialog(QList<ObjectPtr> images) {
0101   Q_UNUSED(images);
0102 }
0103 
0104 
0105 void DialogLauncher::showEquationDialog(ObjectPtr objectPtr) {
0106   Q_UNUSED(objectPtr);
0107 }
0108 
0109 
0110 void DialogLauncher::showEventMonitorDialog(ObjectPtr objectPtr) {
0111   Q_UNUSED(objectPtr);
0112 }
0113 
0114 
0115 void DialogLauncher::showHistogramDialog(ObjectPtr objectPtr, VectorPtr vector) {
0116   Q_UNUSED(objectPtr);
0117   Q_UNUSED(vector);
0118 }
0119 
0120 
0121 void DialogLauncher::showPowerSpectrumDialog(ObjectPtr objectPtr, VectorPtr vector) {
0122   Q_UNUSED(objectPtr);
0123   Q_UNUSED(vector);
0124 }
0125 
0126 
0127 void DialogLauncher::showCSDDialog(ObjectPtr objectPtr, VectorPtr vector) {
0128   Q_UNUSED(objectPtr);
0129   Q_UNUSED(vector);
0130 }
0131 
0132 
0133 void DialogLauncher::showBasicPluginDialog(QString pluginName, ObjectPtr objectPtr, VectorPtr vectorX, VectorPtr vectorY, PlotItemInterface *plotItem) {
0134   Q_UNUSED(pluginName);
0135   Q_UNUSED(objectPtr);
0136   Q_UNUSED(vectorX);
0137   Q_UNUSED(vectorY);
0138   Q_UNUSED(plotItem);
0139 }
0140 
0141 
0142 void DialogLauncher::showObjectDialog(ObjectPtr objectPtr) {
0143   Q_UNUSED(objectPtr);
0144 }
0145 
0146 void DialogLauncher::showMultiObjectDialog(QList<ObjectPtr> objects) {
0147   Q_UNUSED(objects);
0148 }
0149 }
0150 
0151 // vim: ts=2 sw=2 et