Permalink
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
49 lines (35 sloc) 1.79 KB
/*******************************************************************************
Copyright (C) The University of Auckland
OpenCOR is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
OpenCOR is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
*******************************************************************************/
//==============================================================================
// View interface
//==============================================================================
#ifdef INTERFACE_DEFINITION
#define PURE = 0
#else
#define PURE
#endif
// Note: make sure to update viewInterfaceVersion() whenever you update this
// interface...
virtual Mode viewMode() const PURE;
virtual QStringList viewMimeTypes() const PURE;
virtual QString viewMimeType(const QString &pFileName) const PURE;
virtual QString viewDefaultFileExtension() const PURE;
virtual QWidget * viewWidget(const QString &pFileName) PURE;
virtual void removeViewWidget(const QString &pFileName) PURE;
virtual QString viewName() const PURE;
virtual QIcon fileTabIcon(const QString &pFileName) const PURE;
#undef PURE
//==============================================================================
// End of file
//==============================================================================