Skip to content

Commit

Permalink
Cleanup and first-time window
Browse files Browse the repository at this point in the history
  • Loading branch information
VanDavv committed Dec 14, 2020
1 parent e94a049 commit df6f1ec
Show file tree
Hide file tree
Showing 60 changed files with 19 additions and 1,953 deletions.
1 change: 0 additions & 1 deletion .github/FUNDING.yml

This file was deleted.

114 changes: 0 additions & 114 deletions .vscode/.ropeproject/config.py

This file was deleted.

33 changes: 0 additions & 33 deletions .vscode/launch.json

This file was deleted.

5 changes: 4 additions & 1 deletion PyFlow/App.py
Original file line number Diff line number Diff line change
Expand Up @@ -571,9 +571,9 @@ def closeEvent(self, event):
@staticmethod
def instance(parent=None, software=""):
assert(software != ""), "Invalid arguments. Please pass you software name as second argument!"
settings = ConfigManager().getSettings("APP_STATE")

instance = PyFlow(parent)
settings = ConfigManager().getSettings("APP_STATE")
instance.currentSoftware = software
SessionDescriptor().software = instance.currentSoftware

Expand Down Expand Up @@ -673,4 +673,7 @@ def instance(parent=None, software=""):
for categoryName, widgetClass in prefsWidgets.items():
PreferencesWindow().addCategory(categoryName, widgetClass())
PreferencesWindow().selectByName("General")

if ConfigManager().loadedDefaults:
QMessageBox.information(None, "First-time tips", "Welcome to DepthAI GUI. To use this tool efficiently, please do the following:\n\n1. Maximize the window\n2. Enable NodeBox widget (Tools > PyFlowBase > NodeBox)\n3. Enable Properties widget (Tools > PyFlowBase > Properties)\n\nHave fun!")
return instance
3 changes: 3 additions & 0 deletions PyFlow/ConfigManager.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@

from PyFlow.Core.Common import *
from PyFlow.Input import InputAction, InputManager, InputActionType
from Qt.QtWidgets import QMessageBox


@SingletonDecorator
Expand All @@ -32,6 +33,7 @@ class ConfigManager(object):
INPUT_CONFIG_PATH = os.path.join(CONFIGS_DIR, "input.json")

def __init__(self, *args, **kwargs):
self.loadedDefaults = False
self.registerConfigFile("PREFS", os.path.join(self.CONFIGS_DIR, "prefs.ini"))
self.registerConfigFile("APP_STATE", os.path.join(self.CONFIGS_DIR, "config.ini"))

Expand Down Expand Up @@ -69,6 +71,7 @@ def getPrefsValue(self, configAlias, valueKey):
return settings.value(valueKey)

def createDefaultInput(self):
self.loadedDefaults = True
InputManager().registerAction(InputAction(name="Canvas.Pan", actionType=InputActionType.Mouse, group="Navigation", mouse=QtCore.Qt.MouseButton.MiddleButton))
InputManager().registerAction(InputAction(name="Canvas.Pan", actionType=InputActionType.Mouse, group="Navigation", mouse=QtCore.Qt.MouseButton.LeftButton, modifiers=QtCore.Qt.AltModifier))
InputManager().registerAction(InputAction(name="Canvas.Zoom", actionType=InputActionType.Mouse, group="Navigation", mouse=QtCore.Qt.MouseButton.RightButton))
Expand Down
2 changes: 1 addition & 1 deletion PyFlow/Core/version.py
Original file line number Diff line number Diff line change
Expand Up @@ -73,4 +73,4 @@ def __gt__(self, other):
def currentVersion():
"""Returns current version of program
"""
return Version(1, 0, 1)
return Version(1, 0, 2)
11 changes: 11 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,17 @@

**This repository is a fork of PyFlow tool, to learn more about it, please [click here to go to the original repository](https://github.com/wonderworks-software/PyFlow)**

DepthAI GUI is a WYSIWYG tool that allows to create a custom DepthAI pipelines, run them and see the results - all
in one tool.

It's purpose is to allow users to create computer vision prototypes quickly, focusing on **what** rather than **how**

## Demo


[![Gaze Example Demo](https://user-images.githubusercontent.com/5244214/102129242-54254800-3e4f-11eb-839b-42aed417c9a5.gif)](https://www.youtube.com/watch?v=0V1ScV-tW4s)


## Install

```
Expand Down
20 changes: 0 additions & 20 deletions docs/Makefile

This file was deleted.

5 changes: 0 additions & 5 deletions docs/build_docs.bat

This file was deleted.

35 changes: 0 additions & 35 deletions docs/make.bat

This file was deleted.

2 changes: 0 additions & 2 deletions docs/requirements.txt

This file was deleted.

Binary file added docs/res/preview.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
104 changes: 0 additions & 104 deletions docs/source/PyFlow.Core.rst

This file was deleted.

Loading

0 comments on commit df6f1ec

Please sign in to comment.