From f6f7c36909fa161efe53c40e9b4c34856e751536 Mon Sep 17 00:00:00 2001 From: Calvin Morrison Date: Tue, 12 May 2026 21:32:53 -0400 Subject: Initial tmix skeleton — model layer + basic UI MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit PulseModel: stable PulseDevice objects keyed by PA index, updated in-place via postEvent reconciliation. No bulk rebuilds. Three signals: deviceAdded, deviceRemoved (device changed handled per-device via volumeChanged/muteChanged/nameChanged). MixerWindow: four-tab layout (Output/Input/Playback/Recording), adds and removes individual DeviceWidgets in response to model signals. Builds and links cleanly against TQt3/TDE + libpulse. Co-Authored-By: Claude Sonnet 4.6 --- src/main.cpp | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 src/main.cpp (limited to 'src/main.cpp') diff --git a/src/main.cpp b/src/main.cpp new file mode 100644 index 0000000..6a8c6a8 --- /dev/null +++ b/src/main.cpp @@ -0,0 +1,35 @@ +#include +#include +#include +#include + +#include "model/pulsemodel.h" +#include "ui/mixerwindow.h" + +static TDECmdLineOptions options[] = { TDECmdLineLastOption }; + +int main( int argc, char **argv ) +{ + TDEAboutData about( + "tmix", I18N_NOOP("TMix"), + "0.1", + I18N_NOOP("Trinity audio mixer"), + TDEAboutData::License_GPL_V2, + "(C) 2024 Trinity Desktop Project" + ); + + TDECmdLineArgs::init( argc, argv, &about ); + TDECmdLineArgs::addCmdLineOptions( options ); + TDEApplication app; + + PulseModel model; + if ( !model.open() ) { + // TODO: show error dialog + return 1; + } + + MixerWindow win( &model ); + win.show(); + + return app.exec(); +} -- cgit v1.2.3