mirror of
https://github.com/AxioDL/amuse.git
synced 2025-12-08 21:17:49 +00:00
Work on SampleEditor
This commit is contained in:
@@ -126,24 +126,32 @@ FieldSoundMacroStep::FieldSoundMacroStep(FieldProjectNode* macroField, QWidget*
|
||||
setLayout(layout);
|
||||
}
|
||||
|
||||
static QIcon SoundMacroDeleteIcon;
|
||||
static QIcon SoundMacroDeleteHoveredIcon;
|
||||
|
||||
void SoundMacroDeleteButton::enterEvent(QEvent* event)
|
||||
{
|
||||
setIcon(QIcon(QStringLiteral(":/icons/IconSoundMacroDeleteHovered.svg")));
|
||||
setIcon(SoundMacroDeleteHoveredIcon);
|
||||
}
|
||||
|
||||
void SoundMacroDeleteButton::leaveEvent(QEvent* event)
|
||||
{
|
||||
setIcon(QIcon(QStringLiteral(":/icons/IconSoundMacroDelete.svg")));
|
||||
setIcon(SoundMacroDeleteIcon);
|
||||
}
|
||||
|
||||
SoundMacroDeleteButton::SoundMacroDeleteButton(QWidget* parent)
|
||||
: QPushButton(parent)
|
||||
{
|
||||
if (SoundMacroDeleteIcon.isNull())
|
||||
SoundMacroDeleteIcon = QIcon(QStringLiteral(":/icons/IconSoundMacroDelete.svg"));
|
||||
if (SoundMacroDeleteHoveredIcon.isNull())
|
||||
SoundMacroDeleteHoveredIcon = QIcon(QStringLiteral(":/icons/IconSoundMacroDeleteHovered.svg"));
|
||||
|
||||
setVisible(false);
|
||||
setFixedSize(21, 21);
|
||||
setFlat(true);
|
||||
setToolTip(tr("Delete this SoundMacro"));
|
||||
setIcon(QIcon(QStringLiteral(":/icons/IconSoundMacroDelete.svg")));
|
||||
setIcon(SoundMacroDeleteIcon);
|
||||
}
|
||||
|
||||
CommandWidget::CommandWidget(amuse::SoundMacro::ICmd* cmd, amuse::SoundMacro::CmdOp op, SoundMacroListing* listing)
|
||||
|
||||
Reference in New Issue
Block a user