<commit_before>package pman.ui.ctrl;

import tannus.io.*;
import tannus.ds.*;
import tannus.geom.*;
import tannus.events.*;
import tannus.graphics.Color;

import gryffin.core.*;
import gryffin.display.*;

import pman.core.*;
import pman.display.*;
import pman.display.media.*;
import pman.ui.*;
import pman.ui.ctrl.PlayerControlButton;

import tannus.math.TMath.*;
import foundation.Tools.*;
import pman.Globals.*;

using StringTools;
using tannus.ds.StringUtils;
using Lambda;
using tannus.ds.ArrayTools;
using Slambda;

/**
  * button used for toggling fullscreen
  */
class TrackMoveToTrashButton extends TrackControlButton {
	/* Constructor Function */
	public function new(c : TrackControlsView):Void {
		super( c );

        iconSize = c.iconSize;
		btnFloat = Right;
		tooltip = 'Move to Trash';
	}

/* === Instance Methods === */

	// set up the icon data
	override function initIcon():Void {
	    _il = [
	        _iconus('deleteIcon', iconSize)
	    ];
	}

	// get the currently active icon at any given time
	override function getIcon():Image {
	    return _il[0];
	}

	// handle click events
	override function click(event : MouseEvent):Void {
	    //TODO
	}
}
<commit_msg>added proper functionality to pman.ui.ctrl.TrackMoveToTrashButton<commit_after>package pman.ui.ctrl;

import tannus.io.*;
import tannus.ds.*;
import tannus.geom.*;
import tannus.events.*;
import tannus.graphics.Color;

import gryffin.core.*;
import gryffin.display.*;

import pman.core.*;
import pman.display.*;
import pman.display.media.*;
import pman.ui.*;
import pman.ui.ctrl.PlayerControlButton;

import tannus.math.TMath.*;
import foundation.Tools.*;
import pman.Globals.*;

using StringTools;
using tannus.ds.StringUtils;
using Lambda;
using tannus.ds.ArrayTools;
using Slambda;

/**
  * button used for toggling fullscreen
  */
class TrackMoveToTrashButton extends TrackControlButton {
	/* Constructor Function */
	public function new(c : TrackControlsView):Void {
		super( c );

        iconSize = c.iconSize;
		btnFloat = Right;
		tooltip = 'Move to Trash';
	}

/* === Instance Methods === */

	// set up the icon data
	override function initIcon():Void {
	    _il = [
	        _iconus('deleteIcon', iconSize)
	    ];
	}

	// get the currently active icon at any given time
	override function getIcon():Image {
	    return _il[0];
	}

	// handle click events
	override function click(event : MouseEvent):Void {
	    @:privateAccess track._delete(function() {
	        trace("Leah's cheeks are babies");
	    });
	}
}

{'fraction_non_alphanumeric': 0.12783751493428913, 'fraction_numerical': 0.0007964954201513341, 'mean_word_length': 3.6346863468634685, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6428145', 'n_tokens_mistral': 838, 'n_tokens_neox': 818, 'n_words': 213}