diff --git a/src/app/app.module.ts b/src/app/app.module.ts index 1d233bb..f6546f6 100644 --- a/src/app/app.module.ts +++ b/src/app/app.module.ts @@ -21,7 +21,6 @@ import { WindowComponent } from './shared/system-component/window/window.compone import { FileManagerComponent } from './system-apps/filemanager/filemanager.component'; import { GreetingComponent } from './user-apps/greeting/greeting.component'; import { TaskmanagerComponent } from './system-apps/taskmanager/taskmanager.component'; -import { TaskmanagerMiniComponent } from './system-apps/taskmanager/taskmanager.mini.component'; import { JSdosComponent } from './user-apps/jsdos/jsdos.component'; import { VideoPlayerComponent } from './system-apps/videoplayer/videoplayer.component'; import { AudioPlayerComponent } from './system-apps/audioplayer/audioplayer.component'; @@ -64,7 +63,6 @@ import { KeyPressCaptureDirective } from './system-apps/terminal/key.press.captu FileManagerComponent, GreetingComponent, TaskmanagerComponent, - TaskmanagerMiniComponent, JSdosComponent, VideoPlayerComponent, AudioPlayerComponent, @@ -79,7 +77,6 @@ import { KeyPressCaptureDirective } from './system-apps/terminal/key.press.captu MarkDownViewerComponent, FileTreeViewComponent, CheetahComponent, - HighlightDirective, TaskBarEntryHighlightDirective, diff --git a/src/app/system-apps/taskmanager/taskmanager.mini.component.html b/src/app/system-apps/taskmanager/taskmanager.mini.component.html deleted file mode 100644 index 292b4f2..0000000 --- a/src/app/system-apps/taskmanager/taskmanager.mini.component.html +++ /dev/null @@ -1,34 +0,0 @@ - -
-
-
- - - - - - -
-
- -
{{ process.getProcessName}}
-
-
-
-
- - -
- -
More details
-
-
- - - -
-
-
\ No newline at end of file diff --git a/src/app/system-apps/taskmanager/taskmanager.mini.component.ts b/src/app/system-apps/taskmanager/taskmanager.mini.component.ts deleted file mode 100644 index d131823..0000000 --- a/src/app/system-apps/taskmanager/taskmanager.mini.component.ts +++ /dev/null @@ -1,78 +0,0 @@ -import { Component, OnInit,OnDestroy} from '@angular/core'; -import { Subscription } from 'rxjs'; -import { ProcessIDService } from 'src/app/shared/system-service/process.id.service'; -import { RunningProcessService } from 'src/app/shared/system-service/running.process.service'; -import { StateManagmentService } from 'src/app/shared/system-service/state.management.service'; -import { TriggerProcessService } from 'src/app/shared/system-service/trigger.process.service'; -import { BaseComponent } from 'src/app/system-base/base/base.component'; -import { ComponentType } from 'src/app/system-files/component.types'; -import { FileInfo } from 'src/app/system-files/file.info'; -import { Process } from 'src/app/system-files/process'; - -@Component({ - selector: 'cos-taskmanager-mini', - templateUrl: './taskmanager.mini.component.html', - styleUrls: ['./taskmanager.component.css'] -}) -export class TaskmanagerMiniComponent implements BaseComponent,OnInit,OnDestroy { - - private _processIdService:ProcessIDService; - private _runningProcessService:RunningProcessService; - private _triggerProcessService:TriggerProcessService; - - private _processListChangeSub!: Subscription; - - processes:Process[] =[]; - - hasWindow = true; - icon = 'osdrive/Cheetah/System/Imageres/taskmanager.png'; - name = 'taskmanager'; - processId = 0; - type = ComponentType.System; - displayName = 'Task Manager'; - - - constructor( processIdService:ProcessIDService,runningProcessService:RunningProcessService,triggerProcessService:TriggerProcessService) { - this._processIdService = processIdService; - this._runningProcessService = runningProcessService; - this._triggerProcessService = triggerProcessService; - - this.processId = this._processIdService.getNewProcessId() - this._runningProcessService.addProcess(this.getComponentDetail()); - this._processListChangeSub = this._runningProcessService.processListChangeNotify.subscribe(() =>{this.updateRunningProcess();}) - } - - ngOnInit(): void { - this.processes = this._runningProcessService.getProcesses(); - - } - - ngOnDestroy(): void { - this._processListChangeSub?.unsubscribe(); - } - - onMoreDetailsBtnClick():void{ - const file:FileInfo = new FileInfo(); - file.setIconPath = '/osdrive/Cheetah/System/Imageres/taskmanger.png'; - file.setOpensWith = 'taskmanager'; - file.setFileType ='.png'; - - const processToClose = this._runningProcessService.getProcess(this.processId); - this._triggerProcessService.startApplication(file); - - this._runningProcessService.closeProcessNotify.next(processToClose); - } - - setTaskMangrMiniWindowToFocus(pid: number):void { - this._runningProcessService.focusOnCurrentProcessNotify.next(pid); - } - - updateRunningProcess():void{ - this.processes = this._runningProcessService.getProcesses(); - } - - private getComponentDetail():Process{ - return new Process(this.processId, this.name, this.icon, this.hasWindow, this.type) - } - -} diff --git a/src/app/system-files/constants.ts b/src/app/system-files/constants.ts index 528fa3b..575ddc5 100644 --- a/src/app/system-files/constants.ts +++ b/src/app/system-files/constants.ts @@ -10,6 +10,7 @@ export class Constants{ readonly BASE = 'osdrive'; readonly IMAGE_BASE_PATH = 'osdrive/Cheetah/System/Imageres/'; readonly NEW_FOLDER = 'New Folder'; + readonly CHEETAH = 'cheetah'; readonly DEFAULT_MENU_ORDER = 'DefaultMenuOrder'; readonly DEFAULT_FILE_MENU_ORDER = 'DefaultFileMenuOrder';