mirror of
https://github.com/MaurycyLiebner/enve.git
synced 2024-12-19 23:22:06 +00:00
Compare commits
2 Commits
b6c5cd22ea
...
b240c39cb2
Author | SHA1 | Date | |
---|---|---|---|
|
b240c39cb2 | ||
|
4a62db771a |
@ -537,6 +537,10 @@ bool CanvasWindow::KFT_keyPressEvent(QKeyEvent *event) {
|
|||||||
if(canvasMode == CanvasMode::paint) mDocument.incBrushRadius();
|
if(canvasMode == CanvasMode::paint) mDocument.incBrushRadius();
|
||||||
} else if(e.fKey == Qt::Key_Q) {
|
} else if(e.fKey == Qt::Key_Q) {
|
||||||
if(canvasMode == CanvasMode::paint) mDocument.decBrushRadius();
|
if(canvasMode == CanvasMode::paint) mDocument.decBrushRadius();
|
||||||
|
} else if(e.fKey == Qt::Key_E) {
|
||||||
|
if(canvasMode == CanvasMode::paint) mDocument.setPaintMode(PaintMode::erase);
|
||||||
|
} else if(e.fKey == Qt::Key_B) {
|
||||||
|
if(canvasMode == CanvasMode::paint) mDocument.setPaintMode(PaintMode::normal);
|
||||||
} else if((e.fKey == Qt::Key_Enter || e.fKey == Qt::Key_Return) &&
|
} else if((e.fKey == Qt::Key_Enter || e.fKey == Qt::Key_Return) &&
|
||||||
canvasMode == CanvasMode::drawPath) {
|
canvasMode == CanvasMode::drawPath) {
|
||||||
const bool manual = mDocument.fDrawPathManual;
|
const bool manual = mDocument.fDrawPathManual;
|
||||||
|
@ -785,7 +785,7 @@ void MainWindow::setupMenuBar() {
|
|||||||
tr("Fill and Stroke", "MenuBar_View_Docks"));
|
tr("Fill and Stroke", "MenuBar_View_Docks"));
|
||||||
mFillAndStrokeDockAct->setCheckable(true);
|
mFillAndStrokeDockAct->setCheckable(true);
|
||||||
mFillAndStrokeDockAct->setChecked(true);
|
mFillAndStrokeDockAct->setChecked(true);
|
||||||
mFillAndStrokeDockAct->setShortcut(QKeySequence(Qt::Key_E));
|
mFillAndStrokeDockAct->setShortcut(QKeySequence(Qt::CTRL + Qt::Key_E));
|
||||||
|
|
||||||
connect(mFillStrokeSettingsDock, &CloseSignalingDockWidget::madeVisible,
|
connect(mFillStrokeSettingsDock, &CloseSignalingDockWidget::madeVisible,
|
||||||
mFillAndStrokeDockAct, &QAction::setChecked);
|
mFillAndStrokeDockAct, &QAction::setChecked);
|
||||||
@ -796,7 +796,7 @@ void MainWindow::setupMenuBar() {
|
|||||||
tr("Paint Brush", "MenuBar_View_Docks"));
|
tr("Paint Brush", "MenuBar_View_Docks"));
|
||||||
mBrushDockAction->setCheckable(true);
|
mBrushDockAction->setCheckable(true);
|
||||||
mBrushDockAction->setChecked(false);
|
mBrushDockAction->setChecked(false);
|
||||||
mBrushDockAction->setShortcut(QKeySequence(Qt::Key_B));
|
mBrushDockAction->setShortcut(QKeySequence(Qt::CTRL + Qt::Key_B));
|
||||||
|
|
||||||
connect(mBrushSettingsDock, &CloseSignalingDockWidget::madeVisible,
|
connect(mBrushSettingsDock, &CloseSignalingDockWidget::madeVisible,
|
||||||
mBrushDockAction, &QAction::setChecked);
|
mBrushDockAction, &QAction::setChecked);
|
||||||
|
@ -188,7 +188,7 @@ TimelineDockWidget::TimelineDockWidget(Document& document,
|
|||||||
mPaintNormalMode = SwitchButton::sCreate2Switch(
|
mPaintNormalMode = SwitchButton::sCreate2Switch(
|
||||||
"toolbarButtons/paintChecked.png",
|
"toolbarButtons/paintChecked.png",
|
||||||
"toolbarButtons/paintUnchecked.png",
|
"toolbarButtons/paintUnchecked.png",
|
||||||
gSingleLineTooltip("Paint"), this);
|
gSingleLineTooltip("Paint", "B"), this);
|
||||||
connect(mPaintNormalMode, &SwitchButton::toggled,
|
connect(mPaintNormalMode, &SwitchButton::toggled,
|
||||||
this, [this](const int state) {
|
this, [this](const int state) {
|
||||||
if(state == 0) {
|
if(state == 0) {
|
||||||
@ -199,7 +199,7 @@ TimelineDockWidget::TimelineDockWidget(Document& document,
|
|||||||
mPaintEraseMode = SwitchButton::sCreate2Switch(
|
mPaintEraseMode = SwitchButton::sCreate2Switch(
|
||||||
"toolbarButtons/eraseChecked.png",
|
"toolbarButtons/eraseChecked.png",
|
||||||
"toolbarButtons/eraseUnchecked.png",
|
"toolbarButtons/eraseUnchecked.png",
|
||||||
gSingleLineTooltip("Erase"), this);
|
gSingleLineTooltip("Erase", "E"), this);
|
||||||
mPaintEraseMode->setState(1);
|
mPaintEraseMode->setState(1);
|
||||||
connect(mPaintEraseMode, &SwitchButton::toggled,
|
connect(mPaintEraseMode, &SwitchButton::toggled,
|
||||||
this, [this](const int state) {
|
this, [this](const int state) {
|
||||||
|
Loading…
Reference in New Issue
Block a user