tahoma2d/toonz/sources/include/toonz/txsheethandle.h

50 lines
972 B
C
Raw Normal View History

2016-05-17 03:04:11 +12:00
#pragma once
2016-03-19 06:57:51 +13:00
#ifndef TXSHEETHANDLE_H
#define TXSHEETHANDLE_H
#include <QObject>
#include "tcommon.h"
#undef DVAPI
#undef DVVAR
#ifdef TOONZLIB_EXPORTS
#define DVAPI DV_EXPORT_API
#define DVVAR DV_EXPORT_VAR
#else
#define DVAPI DV_IMPORT_API
#define DVVAR DV_IMPORT_VAR
#endif
// forward declaration
class TXsheet;
//=============================================================================
// TXsheetHandle
//-----------------------------------------------------------------------------
class DVAPI TXsheetHandle : public QObject
{
Q_OBJECT
TXsheet *m_xsheet;
public:
TXsheetHandle();
~TXsheetHandle();
TXsheet *getXsheet() const;
void setXsheet(TXsheet *xsheet);
void notifyXsheetChanged() { emit xsheetChanged(); }
void notifyXsheetSwitched() { emit xsheetSwitched(); }
void notifyXsheetSoundChanged() { emit xsheetSoundChanged(); }
signals:
void xsheetSwitched();
void xsheetChanged();
void xsheetSoundChanged();
};
#endif //TXSHEETHANDLE_H