Skip to content

Commit

Permalink
- Updated copyright headers into the New Year. (bis)
Browse files Browse the repository at this point in the history
  • Loading branch information
rncbc committed Jan 2, 2024
1 parent ca5fa3a commit 0e056a4
Show file tree
Hide file tree
Showing 8 changed files with 18 additions and 13 deletions.
8 changes: 5 additions & 3 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,11 +1,14 @@
cmake_minimum_required (VERSION 3.13)

project (qsampler
project (Qsampler
VERSION 0.9.12
DESCRIPTION "A LinuxSampler Qt GUI Interface"
HOMEPAGE_URL "https://qsampler.sourceforge.io"
LANGUAGES C CXX)

set (PROJECT_TITLE "${PROJECT_NAME}")
string (TOLOWER "${PROJECT_TITLE}" PROJECT_NAME)

execute_process (
COMMAND git describe --tags --dirty --abbrev=6
WORKING_DIRECTORY ${CMAKE_SOURCE_DIR}
Expand Down Expand Up @@ -232,8 +235,7 @@ macro (SHOW_OPTION text value)
endif ()
endmacro ()


message ("\n ${PACKAGE_NAME} ${PACKAGE_VERSION} (Qt ${QT_VERSION})")
message ("\n ${PROJECT_TITLE} ${PROJECT_VERSION} (Qt ${QT_VERSION})")
message ("\n Build target . . . . . . . . . . . . . . . . . . .: ${CONFIG_BUILD_TYPE}\n")
show_option (" LSCP instrument name support . . . . . . . . . . ." CONFIG_INSTRUMENT_NAME)
show_option (" LSCP mute/solo support . . . . . . . . . . . . . ." CONFIG_MUTE_SOLO)
Expand Down
3 changes: 3 additions & 0 deletions src/config.h.cmake
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
#ifndef CONFIG_H
#define CONFIG_H

/* Define to the title of this package. */
#cmakedefine PROJECT_TITLE "@PROJECT_TITLE@"

/* Define to the name of this package. */
#cmakedefine PROJECT_NAME "@PROJECT_NAME@"

Expand Down
2 changes: 1 addition & 1 deletion src/qsamplerAbout.h
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@

#include "config.h"

#define QSAMPLER_TITLE "Qsampler"
#define QSAMPLER_TITLE PROJECT_TITLE

#define QSAMPLER_SUBTITLE PROJECT_DESCRIPTION
#define QSAMPLER_WEBSITE PROJECT_HOMEPAGE_URL
Expand Down
6 changes: 3 additions & 3 deletions src/qsamplerMainForm.cpp
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// qsamplerMainForm.cpp
//
/****************************************************************************
Copyright (C) 2004-2023, rncbc aka Rui Nuno Capela. All rights reserved.
Copyright (C) 2004-2024, rncbc aka Rui Nuno Capela. All rights reserved.
Copyright (C) 2007-2019 Christian Schoenebeck
This program is free software; you can redistribute it and/or
Expand Down Expand Up @@ -1109,7 +1109,7 @@ bool MainForm::saveSessionFile ( const QString& sFilename )
int iErrors = 0;
QTextStream ts(&file);
ts << "# " << QSAMPLER_TITLE " - " << tr(QSAMPLER_SUBTITLE) << endl;
ts << "# " << tr("Version") << ": " CONFIG_BUILD_VERSION << endl;
ts << "# " << tr("Version") << ": " PROJECT_VERSION << endl;
// ts << "# " << tr("Build") << ": " CONFIG_BUILD_DATE << endl;
ts << "#" << endl;
ts << "# " << tr("File")
Expand Down Expand Up @@ -2101,7 +2101,7 @@ void MainForm::helpAbout (void)
QString sText = "<h1>" QSAMPLER_TITLE "</h1>\n";
sText += "<p>" + tr(QSAMPLER_SUBTITLE) + "<br />\n";
sText += "<br />\n";
sText += tr("Version") + ": <b>" CONFIG_BUILD_VERSION "</b><br />\n";
sText += tr("Version") + ": <b>" PROJECT_VERSION "</b><br />\n";
// sText += "<small>" + tr("Build") + ": " CONFIG_BUILD_DATE "</small><br />\n";
if (!list.isEmpty()) {
sText += "<small><font color=\"red\">";
Expand Down
2 changes: 1 addition & 1 deletion src/qsamplerMainForm.h
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// qsamplerMainForm.h
//
/****************************************************************************
Copyright (C) 2004-2023, rncbc aka Rui Nuno Capela. All rights reserved.
Copyright (C) 2004-2024, rncbc aka Rui Nuno Capela. All rights reserved.
Copyright (C) 2007-2019 Christian Schoenebeck
This program is free software; you can redistribute it and/or
Expand Down
2 changes: 1 addition & 1 deletion src/qsamplerMainForm.ui
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<author>rncbc aka Rui Nuno Capela</author>
<comment>qsampler - A LinuxSampler Qt GUI Interface.

Copyright (C) 2004-2023, rncbc aka Rui Nuno Capela. All rights reserved.
Copyright (C) 2004-2024, rncbc aka Rui Nuno Capela. All rights reserved.
Copyright (C) 2007-2019 Christian Schoenebeck

This program is free software; you can redistribute it and/or
Expand Down
6 changes: 3 additions & 3 deletions src/qsamplerOptions.cpp
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// qsamplerOptions.cpp
//
/****************************************************************************
Copyright (C) 2004-2023, rncbc aka Rui Nuno Capela. All rights reserved.
Copyright (C) 2004-2024, rncbc aka Rui Nuno Capela. All rights reserved.
Copyright (C) 2007,2008,2015 Christian Schoenebeck
This program is free software; you can redistribute it and/or
Expand Down Expand Up @@ -178,7 +178,7 @@ void Options::saveOptions (void)
{
// Make program version available in the future.
m_settings.beginGroup("/Program");
m_settings.setValue("/Version", CONFIG_BUILD_VERSION);
m_settings.setValue("/Version", PROJECT_VERSION);
m_settings.endGroup();

// And go into general options group.
Expand Down Expand Up @@ -446,7 +446,7 @@ bool Options::parse_args ( const QStringList& args )
.arg(::lscp_client_version());
out << QString("%1: %2\n")
.arg(QSAMPLER_TITLE)
.arg(CONFIG_BUILD_VERSION);
.arg(PROJECT_VERSION);
return false;
} else {
// If we don't have one by now,
Expand Down
2 changes: 1 addition & 1 deletion src/qsamplerOptions.h
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// qsamplerOptions.h
//
/****************************************************************************
Copyright (C) 2004-2023, rncbc aka Rui Nuno Capela. All rights reserved.
Copyright (C) 2004-2024, rncbc aka Rui Nuno Capela. All rights reserved.
Copyright (C) 2007,2008,2015 Christian Schoenebeck
This program is free software; you can redistribute it and/or
Expand Down

0 comments on commit 0e056a4

Please sign in to comment.