refactor(cleanup): remove process picker

we don't need it anymore
This commit is contained in:
PancakeTAS 2025-12-23 21:26:19 +01:00
parent 98c1e8587d
commit 569302dffe
5 changed files with 0 additions and 140 deletions

View file

@ -78,12 +78,6 @@ ApplicationWindow {
placeholderText: "Specify linux binary / exe file / process name"
focus: true
}
Button {
icon.name: "find-location"
onClicked: {
// TODO :3
}
}
Button {
icon.name: "list-add"
onClicked: backend.addActiveIn(active_in_name.text)

View file

@ -1,39 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<interface>
<template class="LSProcessPicker" parent="AdwApplicationWindow">
<property name="title">lsfg-vk Process Picker</property>
<property name="default-width">400</property>
<property name="default-height">600</property>
<property name="content">
<object class="GtkBox">
<property name="orientation">vertical</property>
<property name="margin-top">12</property>
<property name="margin-start">12</property>
<property name="margin-end">12</property>
<property name="margin-bottom">12</property>
<property name="spacing">12</property>
<child>
<object class="GtkScrolledWindow">
<property name="hscrollbar-policy">never</property>
<property name="vscrollbar-policy">automatic</property>
<property name="hexpand">true</property>
<property name="vexpand">true</property>
<child>
<object class="GtkListBox" id="processes">
<property name="selection-mode">single</property>
</object>
</child>
</object>
</child>
<child>
<object class="GtkButton" id="close">
<property name="label">Close</property>
<property name="hexpand">true</property>
<property name="margin-start">12</property>
<property name="margin-end">12</property>
</object>
</child>
</object>
</property>
</template>
</interface>

View file

@ -1,18 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<interface>
<template class="LSProcessEntry" parent="GtkListBoxRow">
<child>
<object class="GtkLabel">
<property name="halign">start</property>
<property name="hexpand">true</property>
<property name="margin-start">12</property>
<property name="margin-end">12</property>
<property name="margin-top">8</property>
<property name="margin-bottom">8</property>
<property name="halign">start</property>
<property name="label"
bind-source="LSProcessEntry" bind-property="exe" bind-flags="sync-create"/>
</object>
</child>
</template>
</interface>

View file

@ -1,39 +0,0 @@
use gtk::subclass::prelude::*;
use adw::subclass::prelude::*;
use gtk::{glib, CompositeTemplate};
#[derive(CompositeTemplate, Default)]
#[template(resource = "/gay/pancake/lsfg-vk/popup/process.ui")]
pub struct ProcessPicker {
#[template_child]
pub processes: TemplateChild<gtk::ListBox>,
#[template_child]
pub close: TemplateChild<gtk::Button>,
}
#[glib::object_subclass]
impl ObjectSubclass for ProcessPicker {
const NAME: &'static str = "LSProcessPicker";
type Type = super::ProcessPicker;
type ParentType = adw::ApplicationWindow;
fn class_init(klass: &mut Self::Class) {
klass.bind_template();
}
fn instance_init(obj: &glib::subclass::InitializingObject<Self>) {
obj.init_template();
}
}
impl ObjectImpl for ProcessPicker {
fn constructed(&self) {
self.parent_constructed();
}
}
impl WidgetImpl for ProcessPicker {}
impl WindowImpl for ProcessPicker {}
impl ApplicationWindowImpl for ProcessPicker {}
impl AdwWindowImpl for ProcessPicker {}
impl AdwApplicationWindowImpl for ProcessPicker {}

View file

@ -1,38 +0,0 @@
use std::cell::RefCell;
use gtk::glib;
use gtk::subclass::prelude::*;
use gtk::prelude::*;
#[derive(gtk::CompositeTemplate, glib::Properties, Default)]
#[properties(wrapper_type = super::ProcessEntry)]
#[template(resource = "/gay/pancake/lsfg-vk/popup/process_entry.ui")]
pub struct ProcessEntry {
#[property(get, set)]
exe: RefCell<String>,
}
#[glib::object_subclass]
impl ObjectSubclass for ProcessEntry {
const NAME: &'static str = "LSProcessEntry";
type Type = super::ProcessEntry;
type ParentType = gtk::ListBoxRow;
fn class_init(klass: &mut Self::Class) {
klass.bind_template();
}
fn instance_init(obj: &glib::subclass::InitializingObject<Self>) {
obj.init_template();
}
}
#[glib::derived_properties]
impl ObjectImpl for ProcessEntry {
fn constructed(&self) {
self.parent_constructed();
}
}
impl WidgetImpl for ProcessEntry {}
impl ListBoxRowImpl for ProcessEntry {}