mirror of
https://github.com/Bismuth-Forge/bismuth.git
synced 2024-09-17 11:37:10 +03:00
refactor: rename Driver class and interface
This commit is contained in:
parent
dd6b9d81ee
commit
2ed3cb4499
@ -7,7 +7,7 @@ import { Engine, EngineImpl } from "../engine";
|
|||||||
import { EngineWindow } from "../engine/window";
|
import { EngineWindow } from "../engine/window";
|
||||||
import { WindowState } from "../engine/window";
|
import { WindowState } from "../engine/window";
|
||||||
|
|
||||||
import { DriverContext, KWinDriver } from "../driver";
|
import { Driver, DriverImpl } from "../driver";
|
||||||
import { DriverSurface } from "../driver/surface";
|
import { DriverSurface } from "../driver/surface";
|
||||||
|
|
||||||
import Config from "../config";
|
import Config from "../config";
|
||||||
@ -148,7 +148,7 @@ export interface Controller {
|
|||||||
|
|
||||||
export class ControllerImpl implements Controller {
|
export class ControllerImpl implements Controller {
|
||||||
private engine: Engine;
|
private engine: Engine;
|
||||||
private driver: DriverContext;
|
private driver: Driver;
|
||||||
public constructor(
|
public constructor(
|
||||||
qmlObjects: Bismuth.Qml.Main,
|
qmlObjects: Bismuth.Qml.Main,
|
||||||
kwinApi: KWin.Api,
|
kwinApi: KWin.Api,
|
||||||
@ -156,7 +156,7 @@ export class ControllerImpl implements Controller {
|
|||||||
private log: Log
|
private log: Log
|
||||||
) {
|
) {
|
||||||
this.engine = new EngineImpl(this, config, log);
|
this.engine = new EngineImpl(this, config, log);
|
||||||
this.driver = new KWinDriver(qmlObjects, kwinApi, this, config, log);
|
this.driver = new DriverImpl(qmlObjects, kwinApi, this, config, log);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -17,7 +17,7 @@ import { WindowState } from "../engine/window";
|
|||||||
import Config from "../config";
|
import Config from "../config";
|
||||||
import { Log } from "../util/log";
|
import { Log } from "../util/log";
|
||||||
|
|
||||||
export interface DriverContext {
|
export interface Driver {
|
||||||
readonly screens: DriverSurface[];
|
readonly screens: DriverSurface[];
|
||||||
|
|
||||||
currentSurface: DriverSurface;
|
currentSurface: DriverSurface;
|
||||||
@ -37,7 +37,7 @@ export interface DriverContext {
|
|||||||
* signals (Qt/KDE term for binding events), and providing specific utility
|
* signals (Qt/KDE term for binding events), and providing specific utility
|
||||||
* functions.
|
* functions.
|
||||||
*/
|
*/
|
||||||
export class KWinDriver implements DriverContext {
|
export class DriverImpl implements Driver {
|
||||||
public get currentSurface(): DriverSurface {
|
public get currentSurface(): DriverSurface {
|
||||||
return new DriverSurfaceImpl(
|
return new DriverSurfaceImpl(
|
||||||
this.kwinApi.workspace.activeClient
|
this.kwinApi.workspace.activeClient
|
||||||
|
Loading…
Reference in New Issue
Block a user