Files
EqualizerAPO/Configurator/Configurator.h
T
jthedering a1be4cc70f Improved: The Configuration Editor now saves most of its state (window positions, open files, etc.) when closing and restores it when run again.
Fixed: The GUI for the Copy command was behaving incorrectly when channels were selected by number instead of name.
Fixed: When the processing caused delay (e.g. via Delay command), the remaining audio was not output when the input signal became silence (e.g. pausing a music player), but only when the silence ended.
Fixed: The checks for missing registry values in Configuration Editor/Configurator should now be sufficient to reanimate E-APO after an OS upgrade. Also the Configurator did not launch when accepting the question in the Configuration Editor with UAC enabled.
2015-11-22 20:16:39 +00:00

68 lines
1.9 KiB
C++

/*
This file is part of EqualizerAPO, a system-wide equalizer.
Copyright (C) 2012 Jonas Thedering
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License along
with this program; if not, write to the Free Software Foundation, Inc.,
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*/
#pragma once
#include "resource.h"
#include <string>
#include <vector>
#include "DeviceAPOInfo.h"
class Configurator
{
public:
Configurator(HINSTANCE hInstance, const wchar_t* cmdLine);
void onInitDialog(HWND hDlg);
void onLvnItemChanged(unsigned sourceId, LPNMLISTVIEW info);
bool onButtonClicked(unsigned sourceId);
void onTcnSelChange(unsigned sourceId);
bool isAnySelected();
bool isChanged();
bool hasUpgrades();
private:
HINSTANCE hInstance;
HWND hDlg;
HWND categoryTabCtrl;
HWND deviceLists[2];
HWND okButton;
HWND cancelButton;
HWND copyDeviceCommandButton;
HWND requestLabel;
HWND toggleTroubleShooting;
HWND troubleShootingGroup;
HWND preMixLabel;
HWND postMixLabel;
HWND installPreMix;
HWND installPostMix;
HWND useOriginalAPOPreMix;
HWND useOriginalAPOPostMix;
HWND installModeComboBox;
HWND selectOneDeviceLabel;
std::wstring cmdLine;
void expandTroubleShooting(bool expand);
HDWP moveWindow(HDWP hdwp, HWND hWnd, int x, int y);
void updateList(int listIndex, int itemIndex);
void updateButtons(int listIndex);
std::vector<DeviceAPOInfo> apoInfos[2];
bool askForReboot = false;
};