various fixes

This commit is contained in:
itsmattkc
2019-07-16 00:00:18 -04:00
parent 44668e144c
commit d098c0de5f
10 changed files with 127 additions and 21 deletions
+14 -1
View File
@@ -42,7 +42,8 @@ Core olive::core;
Core::Core() :
main_window_(nullptr),
tool_(olive::tool::kPointer)
tool_(olive::tool::kPointer),
snapping_(true)
{
}
@@ -117,6 +118,11 @@ const olive::tool::Tool &Core::tool()
return tool_;
}
const bool &Core::snapping()
{
return snapping_;
}
void Core::StartModalTask(Task *t)
{
QDialog dialog(main_window_);
@@ -144,6 +150,13 @@ void Core::SetTool(const olive::tool::Tool &tool)
emit ToolChanged(tool_);
}
void Core::SetSnapping(const bool &b)
{
snapping_ = b;
emit SnappingChanged(snapping_);
}
void Core::DialogImportShow()
{
// Open dialog for user to select files