Skip to content

Commit

Permalink
Rearrange packages
Browse files Browse the repository at this point in the history
  • Loading branch information
andiogenes committed Jan 17, 2021
1 parent 7cd7a69 commit e4336d9
Show file tree
Hide file tree
Showing 34 changed files with 93 additions and 93 deletions.
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ repositories {

jar {
manifest {
attributes "Main-Class": "main.MainKt"
attributes "Main-Class": "com.andiogenes.main.MainKt"
}

from {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
package app
package com.andiogenes.app

import skija.SkijaWindow
import com.andiogenes.skija.SkijaWindow
import org.jetbrains.skija.*
import org.lwjgl.glfw.GLFW.*
import org.lwjgl.glfw.GLFWErrorCallback
import app.ui.core.CoreScreen
import app.ui.display.DisplayObject
import com.andiogenes.app.ui.core.CoreScreen
import com.andiogenes.app.ui.display.DisplayObject

/**
* Запускает приложение.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
package app.logic
package com.andiogenes.app.logic

import be.tarsos.dsp.WaveformSimilarityBasedOverlapAdd
import be.tarsos.dsp.io.jvm.AudioDispatcherFactory
import effects.AudioEffect
import com.andiogenes.effects.AudioEffect
import kotlinx.coroutines.GlobalScope
import kotlinx.coroutines.launch

Expand Down
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
package app.logic

import config.Configuration
import dataflow.Dataflow
import dataflow.Node
import effects.AudioEffectConstructor
import app.logic.bindings.NodeBinding
import app.ui.components.Port
import app.ui.components.Root
package com.andiogenes.app.logic

import com.andiogenes.config.Configuration
import com.andiogenes.dataflow.Dataflow
import com.andiogenes.dataflow.Node
import com.andiogenes.effects.AudioEffectConstructor
import com.andiogenes.app.logic.bindings.NodeBinding
import com.andiogenes.app.ui.components.Port
import com.andiogenes.app.ui.components.Root

/**
* Представитель приложения.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
package app.logic.bindings
package com.andiogenes.app.logic.bindings

import dataflow.Node
import effects.AudioEffectConstructor
import app.ui.components.FlowNode
import app.ui.components.Port
import app.ui.display.DisplayObject
import events.Event
import events.EventDispatcher
import com.andiogenes.dataflow.Node
import com.andiogenes.effects.AudioEffectConstructor
import com.andiogenes.app.ui.components.FlowNode
import com.andiogenes.app.ui.components.Port
import com.andiogenes.app.ui.display.DisplayObject
import com.andiogenes.events.Event
import com.andiogenes.events.EventDispatcher

/**
* Связывание модели и представления узла потока данных.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
package app.ui.components
package com.andiogenes.app.ui.components

import org.jetbrains.skija.*
import org.lwjgl.glfw.GLFW
import app.ui.display.DisplayObject
import app.ui.utils.pointInBox
import com.andiogenes.app.ui.display.DisplayObject
import com.andiogenes.app.ui.utils.pointInBox

/**
* Выпадающее меню.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
package app.ui.components
package com.andiogenes.app.ui.components

import org.jetbrains.skija.*
import org.lwjgl.glfw.GLFW
import app.ui.components.Port.PortEvent
import app.ui.display.DisplayObjectContainer
import events.Event
import app.ui.utils.pointInBox
import com.andiogenes.app.ui.components.Port.PortEvent
import com.andiogenes.app.ui.display.DisplayObjectContainer
import com.andiogenes.events.Event
import com.andiogenes.app.ui.utils.pointInBox

/**
* Компонент узла потока данных.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
package app.ui.components
package com.andiogenes.app.ui.components

import org.jetbrains.skija.*
import org.lwjgl.glfw.GLFW
import app.ui.display.DisplayObject
import events.Event
import com.andiogenes.app.ui.display.DisplayObject
import com.andiogenes.events.Event

/**
* Слой отображения дуг между узлами потока данных.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
package app.ui.components
package com.andiogenes.app.ui.components

import org.jetbrains.skija.Canvas
import org.jetbrains.skija.Paint
import org.jetbrains.skija.PaintMode
import org.lwjgl.glfw.GLFW
import app.ui.display.DisplayObject
import events.Event
import app.ui.utils.pointInCircle
import com.andiogenes.app.ui.display.DisplayObject
import com.andiogenes.events.Event
import com.andiogenes.app.ui.utils.pointInCircle

/**
* Компонент порта узла потока данных.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
package app.ui.components
package com.andiogenes.app.ui.components

import config.Configuration
import app.logic.Presenter
import com.andiogenes.config.Configuration
import com.andiogenes.app.logic.Presenter
import org.jetbrains.skija.Canvas
import org.jetbrains.skija.Paint
import org.lwjgl.glfw.GLFW
import app.ui.display.DisplayObjectContainer
import events.Event
import com.andiogenes.app.ui.display.DisplayObjectContainer
import com.andiogenes.events.Event

/**
* Корневой компонент приложения.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
package app.ui.components
package com.andiogenes.app.ui.components

import org.jetbrains.skija.*
import org.lwjgl.glfw.GLFW
import app.ui.display.DisplayObject
import events.Event
import app.ui.utils.pointInBox
import com.andiogenes.app.ui.display.DisplayObject
import com.andiogenes.events.Event
import com.andiogenes.app.ui.utils.pointInBox
import kotlin.math.abs
import kotlin.properties.Delegates.observable

Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
package app.ui.core
package com.andiogenes.app.ui.core

import org.jetbrains.skija.Canvas
import skija.Screen
import app.ui.display.DisplayObject
import com.andiogenes.skija.Screen
import com.andiogenes.app.ui.display.DisplayObject

/**
* Главный набор обработчиков, инкапсулирующий работу с графом сцены.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package app.ui.core
package com.andiogenes.app.ui.core

import app.ui.display.DisplayObject
import com.andiogenes.app.ui.display.DisplayObject

/**
* Менеджер отображаемых объектов. Поддерживает перечень отображаемых объектов
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
package app.ui.display
package com.andiogenes.app.ui.display

import org.jetbrains.skija.Canvas
import app.ui.core.DisplayObjectManager
import events.Event
import events.EventDispatcher
import com.andiogenes.app.ui.core.DisplayObjectManager
import com.andiogenes.events.Event
import com.andiogenes.events.EventDispatcher

/**
* Отображаемый объект. Узел графа сцены.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package app.ui.display
package com.andiogenes.app.ui.display

/**
* Отображаемый объект, который может иметь дочерние объекты.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package app.ui.utils
package com.andiogenes.app.ui.utils

import kotlin.math.sqrt

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package config
package com.andiogenes.config

import effects.*
import com.andiogenes.effects.*

/**
* Объект, содержащий конфигурацию программы.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package config
package com.andiogenes.config

import effects.AudioEffectConstructor
import effects.IdempotentEffect
import com.andiogenes.effects.AudioEffectConstructor
import com.andiogenes.effects.IdempotentEffect

/**
* Domain-sailed language для конфигурирования программы.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package config
package com.andiogenes.config

import effects.AudioEffectConstructor
import com.andiogenes.effects.AudioEffectConstructor

/**
* Конфигурация обработчика.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package dataflow
package com.andiogenes.dataflow

/**
* Поток данных.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package dataflow
package com.andiogenes.dataflow

/**
* Узел потока данных.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package effects
package com.andiogenes.effects

import be.tarsos.dsp.AudioProcessor

Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
package effects
package com.andiogenes.effects

import be.tarsos.dsp.AudioEvent
import be.tarsos.dsp.effects.DelayEffect
import app.logic.AudioSystem
import com.andiogenes.app.logic.AudioSystem

/**
* Эффект "задержки" - чёткие затухающие повторы (эхо) исходного сигнала.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
package effects
package com.andiogenes.effects

import be.tarsos.dsp.AudioEvent
import be.tarsos.dsp.filters.LowPassSP
import app.logic.AudioSystem
import com.andiogenes.app.logic.AudioSystem
import kotlin.math.abs
import kotlin.math.exp

Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
package effects
package com.andiogenes.effects

import be.tarsos.dsp.AudioEvent
import be.tarsos.dsp.effects.FlangerEffect
import app.logic.AudioSystem
import com.andiogenes.app.logic.AudioSystem

/**
* Эффект "Фланжер". Напоминает "летящее" звучание.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package effects
package com.andiogenes.effects

import be.tarsos.dsp.AudioEvent

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package effects
package com.andiogenes.effects

import be.tarsos.dsp.AudioEvent
import be.tarsos.dsp.GainProcessor
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
package effects
package com.andiogenes.effects

import be.tarsos.dsp.AudioEvent
import be.tarsos.dsp.GainProcessor
import be.tarsos.dsp.io.jvm.AudioPlayer
import app.logic.AudioSystem
import com.andiogenes.app.logic.AudioSystem
import javax.sound.sampled.AudioFormat

/**
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package events
package com.andiogenes.events

/**
* Слушатель события.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package events
package com.andiogenes.events

/**
* Базовый класс для всех классов, отправляющих события.
Expand Down
9 changes: 9 additions & 0 deletions src/main/kotlin/com/andiogenes/main/main.kt
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
package com.andiogenes.main

import com.andiogenes.app.runApp
import com.andiogenes.app.ui.components.Root


fun main() {
runApp("Guitar Processor", Root())
}
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package skija
package com.andiogenes.skija

import org.jetbrains.skija.Canvas

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package skija
package com.andiogenes.skija

import org.jetbrains.skija.*
import org.jetbrains.skija.impl.*
Expand Down Expand Up @@ -161,7 +161,7 @@ class SkijaWindow(

private fun loop() {
GL.createCapabilities()
if ("false" == System.getProperty("skija.staticLoad")) Library.load()
if ("false" == System.getProperty("com.andiogenes.skija.staticLoad")) Library.load()
context = DirectContext.makeGL()

GLFW.glfwSetWindowSizeCallback(window) { _: Long, _: Int, _: Int ->
Expand Down
9 changes: 0 additions & 9 deletions src/main/kotlin/main/main.kt

This file was deleted.

0 comments on commit e4336d9

Please sign in to comment.