tahoma2d/toonz/sources/toonz/columnselection.h
2022-01-26 16:54:22 -05:00

60 lines
1.3 KiB
C++

#pragma once
#ifndef TCOLUMNSELECTION_H
#define TCOLUMNSELECTION_H
#include "toonzqt/selection.h"
#include "tgeometry.h"
#include <set>
class ReframePopup;
//=============================================================================
// TColumnSelection
//-----------------------------------------------------------------------------
class TColumnSelection final : public TSelection {
std::set<int> m_indices;
ReframePopup *m_reframePopup;
public:
TColumnSelection();
~TColumnSelection();
bool isEmpty() const override;
void selectColumn(int col, bool on = true);
void selectNone() override;
bool isColumnSelected(int col) const;
const std::set<int> &getIndices() const { return m_indices; }
void enableCommands() override;
void copyColumns();
void pasteColumns();
void pasteColumnsBelow();
void deleteColumns();
void cutColumns();
void insertColumns();
void insertColumnsBelow();
void collapse();
void explodeChild();
void resequence();
void cloneChild();
void hideColumns();
void reframeCells(int count);
void reframe1Cells() { reframeCells(1); }
void reframe2Cells() { reframeCells(2); }
void reframe3Cells() { reframeCells(3); }
void reframe4Cells() { reframeCells(4); }
void reframeWithEmptyInbetweens();
void renumberColumns();
};
#endif // TCELLSELECTION_H