tahoma2d/toonz/sources/toonz/autoinputcellnumberpopup.h
shun-iwasawa 947ad3809f Auto Input Cell Number command (#1479)
* auto input cell number

* from frame - to frame
2017-09-22 08:53:49 +09:00

44 lines
No EOL
1.1 KiB
C++

#pragma once
#ifndef AUTOINPUTCELLNUMBERPOPUP_H
#define AUTOINPUTCELLNUMBERPOPUP_H
#include "toonzqt/dvdialog.h"
#include "toonz/txshlevel.h"
class TSelection;
class QPushButton;
class FrameNumberLineEdit;
namespace DVGui {
class IntLineEdit;
}
//=============================================================================
// AutoInputCellNumberPopup
//-----------------------------------------------------------------------------
class AutoInputCellNumberPopup final : public DVGui::Dialog {
Q_OBJECT
DVGui::IntLineEdit *m_increment, *m_interval, *m_step, *m_repeat;
FrameNumberLineEdit *m_from, *m_to;
QPushButton *m_overwriteBtn, *m_insertBtn;
bool getTarget(std::vector<int> &columnIndices,
std::vector<TXshLevelP> &levels, int &r0, int &r1,
bool forCheck = false);
void doExecute(bool overwrite);
public:
AutoInputCellNumberPopup();
public slots:
void onOverwritePressed();
void onInsertPressed();
void onSelectionChanged();
protected:
void showEvent(QShowEvent *) override;
void hideEvent(QHideEvent *) override;
};
#endif // AUTOINPUTCELLNUMBERPOPUP_H