X-Git-Url: http://shamusworld.gotdns.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Fbase%2Ffilterinterface.cpp;fp=src%2Fbase%2Ffilterinterface.cpp;h=0000000000000000000000000000000000000000;hb=9f6ad3fe0b9cb30115a5d38e8af3aebed0d70c08;hp=3259794a437cc78efab2ad4700abf60b9239a804;hpb=43c13b052d069ba435277d93867380d00c04931f;p=architektonas diff --git a/src/base/filterinterface.cpp b/src/base/filterinterface.cpp deleted file mode 100644 index 3259794..0000000 --- a/src/base/filterinterface.cpp +++ /dev/null @@ -1,77 +0,0 @@ -// filterinterface.cpp -// -// Part of the Architektonas Project -// Originally part of QCad Community Edition by Andrew Mustun -// Extensively rewritten and refactored by James L. Hammons -// Portions copyright (C) 2001-2003 RibbonSoft -// Copyright (C) 2010 Underground Software -// See the README and GPLv2 files for licensing and warranty information -// -// JLH = James L. Hammons -// -// Who When What -// --- ---------- ----------------------------------------------------------- -// JLH 05/05/2010 Moved implementation from header to this file. :-) -// - -#include "filterinterface.h" - -#include "debug.h" - -/** - * Constructor. - */ -FilterInterface::FilterInterface() -{ - //std::cout << "FilterInterface\n"; - //graphic = NULL; -} - -/** - * Destructor. - */ -/*virtual*/ FilterInterface::~FilterInterface() -{ -} - -/** - * Checks if this filter can import the given file type. - * - * @retval true if the filter can import the file type - * @retval false otherwise. - */ -/*virtual*/ bool FilterInterface::canImport(RS2::FormatType t) -{ -// return !(importFormats.find(t) == importFormats.end()); - return (importFormats.indexOf(t) != -1); -} - -/** - * Checks if this filter can export the given file type. - * - * @return true if the filter can export the file type, - * false otherwise. - */ -/*virtual*/ bool FilterInterface::canExport(RS2::FormatType t) -{ -// return !(exportFormats.find(t) == exportFormats.end()); - return (exportFormats.indexOf(t) != -1); -} - -/** - * Adds a file extension which can be imported by this filter. - */ -void FilterInterface::addImportFormat(RS2::FormatType type) -{ - DEBUG->print("Filter can import %d", (int)type); - importFormats += type; -} - -/** - * Adds a file extension which can be exported by this filter. - */ -void FilterInterface::addExportFormat(RS2::FormatType type) -{ - DEBUG->print("Filter can export %d", (int)type); - exportFormats += type; -}