committed by
József Farkas
parent
e9a66c64c4
commit
8aa29322e5
@@ -1,10 +1,10 @@
|
||||
import {Component, Input, OnInit} from '@angular/core';
|
||||
import { Component, Input, OnInit } from '@angular/core';
|
||||
|
||||
import {Select2OptionData} from 'ng2-select2/ng2-select2';
|
||||
import { Select2OptionData } from 'ng2-select2/ng2-select2';
|
||||
|
||||
import {KeyAction, KeystrokeAction} from '../../../../config-serializer/config-items/key-action';
|
||||
import { KeyAction, KeystrokeAction } from '../../../../config-serializer/config-items/key-action';
|
||||
|
||||
import {Tab} from '../tab';
|
||||
import { Tab } from '../tab';
|
||||
|
||||
@Component({
|
||||
selector: 'keypress-tab',
|
||||
|
||||
@@ -1,10 +1,10 @@
|
||||
import {Component, Input, OnInit, ViewChild} from '@angular/core';
|
||||
import { Component, Input, OnInit, ViewChild } from '@angular/core';
|
||||
|
||||
import {KeyAction, LayerName, SwitchLayerAction} from '../../../../config-serializer/config-items/key-action';
|
||||
import { KeyAction, LayerName, SwitchLayerAction } from '../../../../config-serializer/config-items/key-action';
|
||||
|
||||
import {Select2Component, Select2OptionData} from 'ng2-select2/ng2-select2';
|
||||
import { Select2Component, Select2OptionData } from 'ng2-select2/ng2-select2';
|
||||
|
||||
import {Tab} from '../tab';
|
||||
import { Tab } from '../tab';
|
||||
|
||||
@Component({
|
||||
selector: 'layer-tab',
|
||||
|
||||
@@ -1,13 +1,13 @@
|
||||
import {Component, Input, OnInit} from '@angular/core';
|
||||
import { Component, Input, OnInit } from '@angular/core';
|
||||
|
||||
import {Select2OptionData} from 'ng2-select2/ng2-select2';
|
||||
import { Select2OptionData } from 'ng2-select2/ng2-select2';
|
||||
|
||||
import {KeyAction, PlayMacroAction} from '../../../../config-serializer/config-items/key-action';
|
||||
import {Macro} from '../../../../config-serializer/config-items/Macro';
|
||||
import { KeyAction, PlayMacroAction } from '../../../../config-serializer/config-items/key-action';
|
||||
import { Macro } from '../../../../config-serializer/config-items/Macro';
|
||||
|
||||
import {Tab} from '../tab';
|
||||
import { Tab } from '../tab';
|
||||
|
||||
import {UhkConfigurationService} from '../../../../services/uhk-configuration.service';
|
||||
import { UhkConfigurationService } from '../../../../services/uhk-configuration.service';
|
||||
|
||||
@Component({
|
||||
selector: 'macro-tab',
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
import {Component, Input, OnInit} from '@angular/core';
|
||||
import { Component, Input, OnInit } from '@angular/core';
|
||||
|
||||
import {KeyAction, MouseAction, MouseActionParam} from '../../../../config-serializer/config-items/key-action';
|
||||
import {Tab} from '../tab';
|
||||
import { KeyAction, MouseAction, MouseActionParam } from '../../../../config-serializer/config-items/key-action';
|
||||
import { Tab } from '../tab';
|
||||
|
||||
@Component({
|
||||
selector: 'mouse-tab',
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
import {Component, OnInit } from '@angular/core';
|
||||
import { Component, OnInit } from '@angular/core';
|
||||
|
||||
import {NoneAction} from '../../../../config-serializer/config-items/key-action';
|
||||
import {Tab} from '../tab';
|
||||
import { NoneAction } from '../../../../config-serializer/config-items/key-action';
|
||||
import { Tab } from '../tab';
|
||||
|
||||
@Component({
|
||||
selector: 'none-tab',
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import {KeyAction} from '../../../config-serializer/config-items/key-action';
|
||||
import { KeyAction } from '../../../config-serializer/config-items/key-action';
|
||||
|
||||
export interface Tab {
|
||||
keyActionValid(): boolean;
|
||||
|
||||
@@ -1,9 +1,9 @@
|
||||
import { Component, EventEmitter, Input, OnInit, Output} from '@angular/core';
|
||||
import { Component, EventEmitter, Input, OnInit, Output } from '@angular/core';
|
||||
|
||||
import {Module} from '../../../config-serializer/config-items/Module';
|
||||
import {SvgModule} from '../module';
|
||||
import { Module } from '../../../config-serializer/config-items/Module';
|
||||
import { SvgModule } from '../module';
|
||||
|
||||
import {DataProviderService} from '../../../services/data-provider.service';
|
||||
import { DataProviderService } from '../../../services/data-provider.service';
|
||||
|
||||
@Component({
|
||||
selector: 'svg-keyboard',
|
||||
|
||||
@@ -8,11 +8,11 @@ import {
|
||||
SwitchKeymapAction,
|
||||
SwitchLayerAction
|
||||
} from '../../../../config-serializer/config-items/key-action';
|
||||
import {KeyModifiers} from '../../../../config-serializer/config-items/KeyModifiers';
|
||||
import {UhkConfiguration} from '../../../../config-serializer/config-items/UhkConfiguration';
|
||||
import { KeyModifiers } from '../../../../config-serializer/config-items/KeyModifiers';
|
||||
import { UhkConfiguration } from '../../../../config-serializer/config-items/UhkConfiguration';
|
||||
|
||||
import {MapperService} from '../../../../services/mapper.service';
|
||||
import {UhkConfigurationService} from '../../../../services/uhk-configuration.service';
|
||||
import { MapperService } from '../../../../services/mapper.service';
|
||||
import { UhkConfigurationService } from '../../../../services/uhk-configuration.service';
|
||||
|
||||
enum LabelTypes {
|
||||
KeystrokeKey,
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import { Component, Input, OnInit } from '@angular/core';
|
||||
|
||||
import {MapperService} from '../../../../services/mapper.service';
|
||||
import { MapperService } from '../../../../services/mapper.service';
|
||||
|
||||
@Component({
|
||||
selector: 'g[svg-switch-keymap-key]',
|
||||
|
||||
@@ -1,6 +1,13 @@
|
||||
import {
|
||||
Component, Input, OnChanges, SimpleChanges, animate,
|
||||
state, style, transition, trigger
|
||||
Component,
|
||||
Input,
|
||||
OnChanges,
|
||||
SimpleChanges,
|
||||
animate,
|
||||
state,
|
||||
style,
|
||||
transition,
|
||||
trigger
|
||||
} from '@angular/core';
|
||||
|
||||
import { Store } from '@ngrx/store';
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import {Serializable} from './Serializable';
|
||||
import {UhkBuffer} from './UhkBuffer';
|
||||
import { Serializable } from './Serializable';
|
||||
import { UhkBuffer } from './UhkBuffer';
|
||||
|
||||
export abstract class ClassArray<T extends Serializable<T>> extends Serializable<ClassArray<T>> {
|
||||
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
/// <references path="Function.d.ts">
|
||||
|
||||
import {UhkBuffer} from './UhkBuffer';
|
||||
import { UhkBuffer } from './UhkBuffer';
|
||||
|
||||
export abstract class Serializable<T> {
|
||||
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import {ClassArray} from '../ClassArray';
|
||||
import {UhkBuffer} from '../UhkBuffer';
|
||||
import {Keymap} from './Keymap';
|
||||
import { ClassArray } from '../ClassArray';
|
||||
import { UhkBuffer } from '../UhkBuffer';
|
||||
import { Keymap } from './Keymap';
|
||||
|
||||
export class Keymaps extends ClassArray<Keymap> {
|
||||
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
import {assertUInt8} from '../assert';
|
||||
import {Serializable} from '../Serializable';
|
||||
import {UhkBuffer} from '../UhkBuffer';
|
||||
import {MacroActions} from './macro-action';
|
||||
import { assertUInt8 } from '../assert';
|
||||
import { Serializable } from '../Serializable';
|
||||
import { UhkBuffer } from '../UhkBuffer';
|
||||
import { MacroActions } from './macro-action';
|
||||
|
||||
export class Macro extends Serializable<Macro> {
|
||||
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import {ClassArray} from '../ClassArray';
|
||||
import {UhkBuffer} from '../UhkBuffer';
|
||||
import {Macro} from './Macro';
|
||||
import { ClassArray } from '../ClassArray';
|
||||
import { UhkBuffer } from '../UhkBuffer';
|
||||
import { Macro } from './Macro';
|
||||
|
||||
export class Macros extends ClassArray<Macro> {
|
||||
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import {assertUInt8} from '../assert';
|
||||
import {Serializable} from '../Serializable';
|
||||
import {UhkBuffer} from '../UhkBuffer';
|
||||
import { assertUInt8 } from '../assert';
|
||||
import { Serializable } from '../Serializable';
|
||||
import { UhkBuffer } from '../UhkBuffer';
|
||||
|
||||
export class ModuleConfiguration extends Serializable<ModuleConfiguration> {
|
||||
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import {ClassArray} from '../ClassArray';
|
||||
import {UhkBuffer} from '../UhkBuffer';
|
||||
import {ModuleConfiguration} from './ModuleConfiguration';
|
||||
import { ClassArray } from '../ClassArray';
|
||||
import { UhkBuffer } from '../UhkBuffer';
|
||||
import { ModuleConfiguration } from './ModuleConfiguration';
|
||||
|
||||
export class ModuleConfigurations extends ClassArray<ModuleConfiguration> {
|
||||
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
/// <reference path="../../Function.d.ts" />
|
||||
|
||||
import {Serializable} from '../../Serializable';
|
||||
import {UhkBuffer} from '../../UhkBuffer';
|
||||
import { Serializable } from '../../Serializable';
|
||||
import { UhkBuffer } from '../../UhkBuffer';
|
||||
|
||||
export enum KeyActionId {
|
||||
NoneAction = 0,
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import {UhkBuffer} from '../../UhkBuffer';
|
||||
import {KeyAction, KeyActionId, keyActionType} from './KeyAction';
|
||||
import { UhkBuffer } from '../../UhkBuffer';
|
||||
import { KeyAction, KeyActionId, keyActionType } from './KeyAction';
|
||||
|
||||
export class NoneAction extends KeyAction {
|
||||
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import {assertUInt16} from '../../assert';
|
||||
import {UhkBuffer} from '../../UhkBuffer';
|
||||
import {MacroAction, MacroActionId, macroActionType} from './MacroAction';
|
||||
import { assertUInt16 } from '../../assert';
|
||||
import { UhkBuffer } from '../../UhkBuffer';
|
||||
import { MacroAction, MacroActionId, macroActionType } from './MacroAction';
|
||||
|
||||
export class DelayMacroAction extends MacroAction {
|
||||
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import { assertEnum, assertUInt8 } from '../../assert';
|
||||
import { UhkBuffer} from '../../UhkBuffer';
|
||||
import { UhkBuffer } from '../../UhkBuffer';
|
||||
import { KeyModifiers } from '../KeyModifiers';
|
||||
import { MacroAction, MacroActionId, MacroSubAction, macroActionType } from './MacroAction';
|
||||
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import {Serializable} from '../../Serializable';
|
||||
import {UhkBuffer} from '../../UhkBuffer';
|
||||
import { Serializable } from '../../Serializable';
|
||||
import { UhkBuffer } from '../../UhkBuffer';
|
||||
|
||||
export enum MacroActionId {
|
||||
KeyMacroAction = 0,
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import {assertInt16} from '../../assert';
|
||||
import {UhkBuffer} from '../../UhkBuffer';
|
||||
import {MacroAction, MacroActionId, macroActionType} from './MacroAction';
|
||||
import { assertInt16 } from '../../assert';
|
||||
import { UhkBuffer } from '../../UhkBuffer';
|
||||
import { MacroAction, MacroActionId, macroActionType } from './MacroAction';
|
||||
|
||||
export class MoveMouseMacroAction extends MacroAction {
|
||||
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import {assertInt16} from '../../assert';
|
||||
import {UhkBuffer} from '../../UhkBuffer';
|
||||
import {MacroAction, MacroActionId, macroActionType} from './MacroAction';
|
||||
import { assertInt16 } from '../../assert';
|
||||
import { UhkBuffer } from '../../UhkBuffer';
|
||||
import { MacroAction, MacroActionId, macroActionType } from './MacroAction';
|
||||
|
||||
export class ScrollMouseMacroAction extends MacroAction {
|
||||
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import {UhkBuffer} from '../../UhkBuffer';
|
||||
import {MacroAction, MacroActionId, macroActionType} from './MacroAction';
|
||||
import { UhkBuffer } from '../../UhkBuffer';
|
||||
import { MacroAction, MacroActionId, macroActionType } from './MacroAction';
|
||||
|
||||
export class TextMacroAction extends MacroAction {
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import {Directive, ElementRef, EventEmitter, Input, OnChanges, Output, Renderer, SimpleChanges } from '@angular/core';
|
||||
import { Directive, ElementRef, EventEmitter, Input, OnChanges, Output, Renderer, SimpleChanges } from '@angular/core';
|
||||
|
||||
const KEY_ENTER = 13;
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import {Component, ViewEncapsulation} from '@angular/core';
|
||||
import { Component, ViewEncapsulation } from '@angular/core';
|
||||
|
||||
@Component({
|
||||
selector: 'main-app',
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import { Injectable } from '@angular/core';
|
||||
|
||||
import {SvgModule} from '../components/svg/module/svg-module.model';
|
||||
import { SvgModule } from '../components/svg/module/svg-module.model';
|
||||
|
||||
@Injectable()
|
||||
export class DataProviderService {
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
import { Injectable } from '@angular/core';
|
||||
|
||||
import {UhkConfiguration} from '../config-serializer/config-items/UhkConfiguration';
|
||||
import { UhkConfiguration } from '../config-serializer/config-items/UhkConfiguration';
|
||||
|
||||
import {DataProviderService} from './data-provider.service';
|
||||
import { DataProviderService } from './data-provider.service';
|
||||
|
||||
@Injectable()
|
||||
export class UhkConfigurationService {
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
var usb = require('usb');
|
||||
var R = require('ramda');
|
||||
var s = require('underscore.string')
|
||||
var s = require('underscore.string');
|
||||
|
||||
var UhkConnection = function(selectedLogLevel) {
|
||||
'use strict';
|
||||
|
||||
Reference in New Issue
Block a user