// $Id: QtSctLibStub.cpp,v 1.4 2008/11/20 03:30:29 philw Exp $ // Stub module for the RiverWare QtSCT library. // // This module was developed to help diagnose a problem with the Solaris // debug build, and to provide a temporary workaround for continued // development. The debug executable has exceeded a size limit, given // our current configuration. The following error occurred when linking: // // ld: fatal: file /dev/zero: mmap anon failed: Not enough space // // RiverWare can now be built without the SCT by modifying the following // files in this (QtSCT) library: // // (1) Make.package -- replace lists with: // LIB_SRC := QtSctLibStub.cpp // QT_UI := (blank) // QT_Q_OBJECT := QtSctLibStub.hpp // // (2) Modify the following header files to ONLY include QtSctLibStub.hpp. // SctAggregationDef.hpp // SctClipboardExportDlg.hpp // SctConfig.hpp // SctDialog.hpp // SctManager.hpp // // (3) Also needed is the following header file, unchanged. No other // source files are required. // SctTypes.hpp // // This information, maybe more, is also available on this webpage: // http://cadswes2.colorado.edu/~philw/2008/SolarisBuild/StubbedSCT/ // // This module provides stubs for public SCT methods used in RiverWare, // for these SCT implementation classes: // // class SctConfig // class SctManager // class SctDialog // class SctClipboardExportDlg // class SctAggregationDef // //--- #ifndef SctTypesINCLUDED #include "SctTypes.hpp" #endif #ifndef QtSctLibStubINCLUDED #include "QtSctLibStub.hpp" #endif // ************************* // *** class SctConfig *** // ************************* QColor SctConfig::defaultColorStatusBarFg (0x00, 0x00, 0x00); QColor SctConfig::defaultColorStatusBarBg (0xFF, 0xFF, 0xF0); bool SctConfig::containsSlot (const char*,int) const { return (false); } void SctConfig::setDetailMode (SctDetailMode) {} void SctConfig::setTextInSlotDividerRows (bool) {} void SctConfig::staticInit() {} int SctConfig::appendNonSeriesSlot (const char*,int) { return (0); } int SctConfig::appendDivider (const char*) { return (0); } int SctConfig::appendSlot (const char*,int,const char*) { return (0); } // ************************** // *** class SctManager *** // ************************** SctManager* SctManager::_instance (NULL); SctManager* SctManager::inst() { if (!_instance) _instance = new SctManager(); return (_instance); } SctManager::~SctManager() { if (_instance == this) _instance = NULL; } void SctManager::deleteInstance() {if (_instance) delete _instance; _instance=NULL; } void SctManager::setRunTypeMulti (bool) {} int SctManager::openSctDialogCnt() const { return (0); } void SctManager::hideAllScts() {} SctDialog* SctManager::getFirstShownSctDialog (int*) const { return (NULL); } void SctManager::rebuildSctShowMenu (QMenu*) {} bool SctManager::sctShowsRunStatus() const { return (false); } void SctManager::closeAllScts (SctDialog*) {} void SctManager::updateRunStatusBar() {} void SctManager::rebuildSctReOpenMenu (QMenu*) {} // ************************* // *** class SctDialog *** // ************************* SctDialog::SctDialog() : _cfg(new SctConfig()) {} SctDialog::SctDialog (QWidget*,const char*,QFlags) : _cfg(new SctConfig()) {} SctDialog::~SctDialog() {if (_cfg) delete _cfg; _cfg=NULL;} SctConfig* SctDialog::sctConfig() { return(_cfg); } void SctDialog::setLocked (bool) {} void SctDialog::rebuild (SctRescrollType) {} void SctDialog::setChooserPath (QString) {} okstat SctDialog::openSctFile (const char*,SctDialog::SctOpenType) { return okstat (false); } QString SctDialog::sctName () const { return ("sct?"); } SctDialog::SctOpenType SctDialog::getSctFnameVersion (RWCString&,bool,QWidget*) { return (SctDialog::SCT_OPEN_CANCEL); } void SctDialog::setSctName (const QString&) {} void SctDialog::showAppendSlotsQuery() {} void SctDialog::setDateTimeSpinner (const Date_Time&,bool) {} void SctDialog::fitRowHeadersAfterNextRebuild() {} // ************************************* // *** class SctClipboardExportDlg *** // ************************************* SctClipboardExportDlg::SctClipboardExportDlg (QWidget*,const char*,bool,QFlags) {} void SctClipboardExportDlg::clearListener() {} bool SctClipboardExportDlg::includeRowHeaders() const { return (false); } bool SctClipboardExportDlg::includeColHeaders() const { return (false); } bool SctClipboardExportDlg::showNans() const { return (false); } void SctClipboardExportDlg::configure (SctClipboardExportDlg_Listener*,const QString,bool,bool,bool,bool,bool) {} bool SctClipboardExportDlg::want24() const { return (true); } bool SctClipboardExportDlg::useModelPrecision() const { return (false); } // ************************************* // *** class SctClipboardExportDlg *** // ************************************* SctAggregationDef::SctAggregationDef() {} SctAggregationDef::~SctAggregationDef() {} //--- (end QtSctLibStub.cpp) ---