2025-02-24 10:17:46 +03:00
|
|
|
|
/**
|
|
|
|
|
|
|
|
|
|
StopWatch-tr Türkçe bir kronometre uygulamasıdır. Geliştirdikçe farklı diller de gelebilir.
|
|
|
|
|
|
|
|
|
|
Copyright (C) 2025 Emrullah Enis Çetinkaya and contributors
|
|
|
|
|
|
|
|
|
|
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.
|
|
|
|
|
|
|
|
|
|
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, see <https://www.gnu.org/licenses/>.
|
|
|
|
|
|
|
|
|
|
**/
|
|
|
|
|
|
2025-02-19 11:55:03 +03:00
|
|
|
|
#ifndef MAINWINDOW_H
|
|
|
|
|
#define MAINWINDOW_H
|
|
|
|
|
|
|
|
|
|
#include <QMainWindow>
|
|
|
|
|
#include "QTimer"
|
|
|
|
|
#include "QMessageBox"
|
2025-02-19 22:09:37 +03:00
|
|
|
|
#include "QTime"
|
|
|
|
|
#include "QDate"
|
2025-02-23 18:07:34 +03:00
|
|
|
|
#include "second_window.h"
|
2025-02-19 11:55:03 +03:00
|
|
|
|
QT_BEGIN_NAMESPACE
|
|
|
|
|
namespace Ui {
|
|
|
|
|
class MainWindow;
|
|
|
|
|
}
|
|
|
|
|
QT_END_NAMESPACE
|
|
|
|
|
|
|
|
|
|
class MainWindow : public QMainWindow
|
|
|
|
|
{
|
|
|
|
|
Q_OBJECT
|
|
|
|
|
|
|
|
|
|
public:
|
|
|
|
|
MainWindow(QWidget *parent = nullptr);
|
2025-02-23 18:07:34 +03:00
|
|
|
|
void main_window_show2();
|
2025-02-19 11:55:03 +03:00
|
|
|
|
~MainWindow();
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
private slots:
|
|
|
|
|
void on_start_pause_clicked();
|
|
|
|
|
void on_reset_clicked();
|
|
|
|
|
void on_about_triggered();
|
2025-02-23 18:07:34 +03:00
|
|
|
|
void timer_window_open(bool checked);
|
2025-02-19 11:55:03 +03:00
|
|
|
|
|
|
|
|
|
private:
|
|
|
|
|
Ui::MainWindow *ui;
|
2025-02-19 22:09:37 +03:00
|
|
|
|
QTimer *timer,*timer2;
|
|
|
|
|
void main_timer_func();
|
|
|
|
|
void timer_func();
|
2025-02-23 18:07:34 +03:00
|
|
|
|
second_window *timer_window;
|
|
|
|
|
|
2025-02-19 11:55:03 +03:00
|
|
|
|
};
|
|
|
|
|
#endif // MAINWINDOW_H
|