70 lines
1.7 KiB
C++
70 lines
1.7 KiB
C++
/***************************************************************************
|
|
|
|
miniCash
|
|
Copyright © 2013-2022 christoph holzheuer
|
|
c.holzheuer@sourceworx.org
|
|
|
|
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 3 of the License, or
|
|
(at your option) any later version.
|
|
|
|
***************************************************************************/
|
|
|
|
|
|
#ifndef MCSETUPDIALOG_H
|
|
#define MCSETUPDIALOG_H
|
|
|
|
#include <QDialog>
|
|
#include <QSettings>
|
|
|
|
#include <libMiniCash.h>
|
|
|
|
namespace Ui
|
|
{
|
|
class MCSetupDialog;
|
|
}
|
|
|
|
/**
|
|
* @brief Der Setup-Dialog: Hier werden die Grundeinstellungen vorgenommen.
|
|
*
|
|
* Im Setup-Dialog werden folgende Grundeinstellungen vorgenommen:
|
|
* für den Kassenmodus:
|
|
* - die Kassennummer
|
|
* - das lokale Datenlaufwerk, Vorgabe: E:\
|
|
* - das "Transport"-Laufwerk, auf das die Kassendaten zur Abrechnung kopiert werden
|
|
* für den Abrechnungsmodus:
|
|
* - Das Laufwerk, vom dem die zusammengeführten Kassendaten geladen werden, Vorgabe: E:\
|
|
* - Der Gewinnanteil des Kindergartens in Prozent, Vorgabe: 15%
|
|
* - Ein optionaler Fußzeilentext, wird mit auf die Abrechnungen gedruckt.
|
|
*/
|
|
|
|
class LIBMINICASH_EXPORT MCSetupDialog : public QDialog
|
|
{
|
|
Q_OBJECT
|
|
|
|
public:
|
|
|
|
explicit MCSetupDialog( QWidget* parent, QSettings* settings );
|
|
virtual ~MCSetupDialog();
|
|
|
|
void accept();
|
|
void setupDefaults();
|
|
|
|
public slots:
|
|
|
|
void onReset();
|
|
void onChooseVendorsFile();
|
|
void onViewVendorsFile();
|
|
|
|
protected:
|
|
|
|
Ui::MCSetupDialog* _ui{};
|
|
|
|
QSettings* _settings = nullptr;
|
|
|
|
};
|
|
|
|
|
|
#endif // MCSETUPDIALOG_H
|