Skip to content

Commit b87faa9

Browse files
committed
Merge branch 'general-fixes' into dev
2 parents 3e0c4c4 + 0690f07 commit b87faa9

18 files changed

+128
-350
lines changed
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
#include "aboutdialog.h"
2+
#include "ui_aboutdialog.h"
3+
4+
AboutDialog::AboutDialog(QWidget *parent)
5+
: QDialog(parent)
6+
, ui(new Ui::AboutDialog)
7+
{
8+
ui->setupUi(this);
9+
}
10+
11+
AboutDialog::~AboutDialog()
12+
{
13+
delete ui;
14+
}
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
#ifndef ABOUTDIALOG_H
2+
#define ABOUTDIALOG_H
3+
4+
#include <QDialog>
5+
6+
namespace Ui {
7+
class AboutDialog;
8+
}
9+
10+
class AboutDialog : public QDialog
11+
{
12+
Q_OBJECT
13+
14+
public:
15+
explicit AboutDialog(QWidget *parent = nullptr);
16+
~AboutDialog();
17+
18+
private:
19+
Ui::AboutDialog *ui;
20+
};
21+
22+
#endif // ABOUTDIALOG_H
Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<ui version="4.0">
3+
<class>AboutDialog</class>
4+
<widget class="QDialog" name="AboutDialog">
5+
<property name="geometry">
6+
<rect>
7+
<x>0</x>
8+
<y>0</y>
9+
<width>250</width>
10+
<height>150</height>
11+
</rect>
12+
</property>
13+
<property name="minimumSize">
14+
<size>
15+
<width>250</width>
16+
<height>150</height>
17+
</size>
18+
</property>
19+
<property name="maximumSize">
20+
<size>
21+
<width>250</width>
22+
<height>150</height>
23+
</size>
24+
</property>
25+
<property name="windowTitle">
26+
<string>VisualFREQ - O programu</string>
27+
</property>
28+
<property name="modal">
29+
<bool>true</bool>
30+
</property>
31+
<layout class="QVBoxLayout" name="verticalLayout">
32+
<item>
33+
<widget class="QLabel" name="label">
34+
<property name="text">
35+
<string>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;&lt;img src=&quot;:/icons/wave-sound.png&quot; width=&quot;30&quot; height=&quot;30&quot;/&gt;&lt;/p&gt;&lt;p&gt;VisualFREQ v1.0.0&lt;/p&gt;&lt;p&gt;Marijan Kovač © 2024&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</string>
36+
</property>
37+
<property name="textFormat">
38+
<enum>Qt::TextFormat::AutoText</enum>
39+
</property>
40+
<property name="alignment">
41+
<set>Qt::AlignmentFlag::AlignCenter</set>
42+
</property>
43+
<property name="wordWrap">
44+
<bool>true</bool>
45+
</property>
46+
</widget>
47+
</item>
48+
</layout>
49+
</widget>
50+
<resources/>
51+
<connections/>
52+
</ui>

Software/audio-visualizer/audio-visualizer.pro

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ CONFIG += c++17
99
#DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0x060000 # disables all the APIs deprecated before Qt 6.0.0
1010

1111
SOURCES += \
12-
audiolistener.cpp \
12+
aboutdialog.cpp \
1313
enginesettings.cpp \
1414
gl3dspectrogramscene.cpp \
1515
glbarspectrumscene.cpp \
@@ -19,15 +19,13 @@ SOURCES += \
1919
main.cpp \
2020
mainwindow.cpp \
2121
settingsdialog.cpp \
22-
settingsmanager.cpp \
23-
signalprocessor.cpp \
2422
engine.cpp \
2523
frequencyspectrum.cpp \
2624
utils.cpp \
2725
spectrumanalyser.cpp
2826

2927
HEADERS += \
30-
audiolistener.h \
28+
aboutdialog.h \
3129
enginesettings.h \
3230
gl3dspectrogramscene.h \
3331
glbarspectrumscene.h \
@@ -37,15 +35,14 @@ HEADERS += \
3735
graphicssettings.h \
3836
mainwindow.h \
3937
settingsdialog.h \
40-
settingsmanager.h \
41-
signalprocessor.h \
4238
engine.h \
4339
frequencyspectrum.h \
4440
spectrum.h \
4541
utils.h \
4642
spectrumanalyser.h
4743

4844
FORMS += \
45+
aboutdialog.ui \
4946
mainwindow.ui \
5047
settingsdialog.ui
5148

@@ -70,5 +67,8 @@ RESOURCES += \
7067
RC_ICONS = visualFREQ2.ico
7168

7269
#DEFINES += LOG_MAINWINDOW LOG_ENGINE LOG_SPECTRUMANALYSER LOG_WAVEFORM
73-
DEFINES += LOG_ENGINE
70+
#DEFINES += LOG_ENGINE
71+
#DEFINES += LOG_GLSCENE
7472
#DEFINES += SPECTRUM_ANALYSER_SEPARATE_THREAD
73+
74+
CONFIG(release, debug|release):DEFINES += QT_NO_DEBUG_OUTPUT

Software/audio-visualizer/audiolistener.cpp

Lines changed: 0 additions & 95 deletions
This file was deleted.

Software/audio-visualizer/audiolistener.h

Lines changed: 0 additions & 50 deletions
This file was deleted.

Software/audio-visualizer/gl3dspectrogramscene.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -366,6 +366,6 @@ void GL3DSpectrogramScene::mouseMoveEvent(QMouseEvent *event)
366366
void GL3DSpectrogramScene::wheelEvent(QWheelEvent *event)
367367
{
368368
m_distance += event->angleDelta().y() / 120.0f; // 120 je korak kotačića miša
369-
qDebug() << "distance" << m_distance;
369+
GLSCENE_DEBUG << "distance" << m_distance;
370370
//update();
371371
}

Software/audio-visualizer/icons.qrc

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,5 +5,7 @@
55
<file>icons/icons8-pause-96-2.png</file>
66
<file>icons/icons8-play-96-2.png</file>
77
<file>icons/icons8-stop-96-2.png</file>
8+
<file>icons/foi_logo.png</file>
9+
<file>icons/wave-sound.png</file>
810
</qresource>
911
</RCC>
31.8 KB
Loading
10.8 KB
Loading

0 commit comments

Comments
 (0)