File indexing completed on 2024-12-22 04:17:21
0001 /*************************************************************************** 0002 * * 0003 * copyright : (C) 2010 The University of Toronto * 0004 * netterfield@astro.utoronto.ca * 0005 * * 0006 * This program is free software; you can redistribute it and/or modify * 0007 * it under the terms of the GNU General Public License as published by * 0008 * the Free Software Foundation; either version 2 of the License, or * 0009 * (at your option) any later version. * 0010 * * 0011 ***************************************************************************/ 0012 0013 #include "nextcolor.h" 0014 0015 using namespace Kst; 0016 0017 NextColor* NextColor::_instance = 0; 0018 0019 0020 NextColor::NextColor() { 0021 NextColor::_instance = this; 0022 } 0023 0024 NextColor::~NextColor() { 0025 NextColor::_instance = 0; 0026 } 0027 0028 QColor NextColor::next() { 0029 return QColor(); 0030 } 0031 0032 QColor NextColor::current() { 0033 return QColor(); 0034 } 0035 0036 NextColor& NextColor::self() { 0037 Q_ASSERT(NextColor::_instance); 0038 return *NextColor::_instance; 0039 } 0040