Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
G
gofbpm
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
cs
gui
gofbpm
Commits
513d91f4
Commit
513d91f4
authored
7 months ago
by
Giacomo Strangolino
Browse files
Options
Downloads
Patches
Plain Diff
set up new project - cumbia 2.1 cuuimake free
parent
1f07ab8b
No related branches found
No related tags found
No related merge requests found
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
gofbpm.pro
+3
-24
3 additions, 24 deletions
gofbpm.pro
src/gofbpm.cpp
+5
-9
5 additions, 9 deletions
src/gofbpm.cpp
src/gofbpm.h
+2
-2
2 additions, 2 deletions
src/gofbpm.h
src/gofbpm.ui
+0
-0
0 additions, 0 deletions
src/gofbpm.ui
src/main.cpp
+11
-12
11 additions, 12 deletions
src/main.cpp
with
21 additions
and
47 deletions
gofbpm.pro
+
3
−
24
View file @
513d91f4
...
...
@@ -31,23 +31,11 @@ HEADERS += \
src
/
gofbpm
.
h
\
src
/
gofbpmplot
.
h
#
cuuimake
runs
uic
#
FORMS
=
src
/
bpm
.
ui
#
FORMS
=
src
/
gofbpm
.
ui
#
but
we
need
to
include
ui_xxxx
.
h
file
amongst
the
headers
#
in
order
to
be
recompiled
when
it
changes
#
HEADERS
+=
\
ui_bpm
.
h
#
-
ui
:
where
to
find
cuuimake
ui_
*.
h
files
#
since
FORMS
is
not
used
#
-
src
:
where
to
find
headers
included
by
#
ui_
*.
h
(
e
.
g
.
for
custom
widget
promoted
#
from
the
Qt
designer
)
#
INCLUDEPATH
+=
ui
src
INCLUDEPATH
+=
src
TARGET
=
gofbpm
-
gui
!
wasm
-
emscripten
{
...
...
@@ -82,13 +70,4 @@ TARGET = gofbpm-gui
# unix:INCLUDEPATH += . ../../src
message("-")
message("NOTE")
message("You need to run cuuimake in order to build the project")
message("-")
message(" cuuimake --show-config to see cuuimake configuration options")
message(" cuuimake --configure to configure cuuimake")
message(" cuuimake -jN to execute cuuimake and then make -jN")
message(" cuuimake --make to run cuuimake and then make")
message("-")
This diff is collapsed.
Click to expand it.
src/gofbpm.cpp
+
5
−
9
View file @
513d91f4
...
...
@@ -48,18 +48,14 @@
#include
<qulabelbase.h>
#include
<quplotoptions.h>
#include
<quwatcher.h>
#include
<quapplication.h>
gofbpm
::
gofbpm
(
CumbiaPool
*
cumbia_pool
,
QWidget
*
parent
)
:
QWidget
(
parent
)
{
gofbpm
::
gofbpm
(
QWidget
*
parent
)
:
QWidget
(
parent
)
{
// cumbia
CuModuleLoader
mloader
(
cumbia_pool
,
&
m_ctrl_factory_pool
,
&
m_log_impl
);
cu_pool
=
cumbia_pool
;
QuApplication
*
a
=
static_cast
<
QuApplication
*>
(
QCoreApplication
::
instance
()
);
CuModuleLoader
mloader
(
a
->
cumbiaPool
(),
a
->
fpool
(),
&
m_log_impl
)
;
ui
=
new
Ui
::
bpm
;
ui
->
setupUi
(
this
,
cu_pool
,
m_ctrl_factory_pool
);
// provide access to the engine in case of runtime swap
new
CuEngineAccessor
(
this
,
&
cu_pool
,
&
m_ctrl_factory_pool
);
ui
->
setupUi
(
this
);
// mloader.modules() to get the list of loaded modules
// cumbia
...
...
This diff is collapsed.
Click to expand it.
src/gofbpm.h
+
2
−
2
View file @
513d91f4
...
...
@@ -29,7 +29,7 @@ class CumbiaPool;
class
QuLabelBase
;
// cumbia
#include
"ui_
libera
bpm.h"
#include
"ui_
gof
bpm.h"
class
gofbpm
:
public
QWidget
...
...
@@ -39,7 +39,7 @@ class gofbpm: public QWidget
public:
enum
Pages
{
Slow
=
0
,
Fast
,
FastFFT
,
Event
,
EventFFT
,
RAW
};
gofbpm
(
CumbiaPool
*
cu_p
,
QWidget
*
=
NULL
);
gofbpm
(
QWidget
*
=
NULL
);
~
gofbpm
(){};
protected
:
...
...
This diff is collapsed.
Click to expand it.
src/
libera
bpm.ui
→
src/
gof
bpm.ui
+
0
−
0
View file @
513d91f4
File moved
This diff is collapsed.
Click to expand it.
src/main.cpp
+
11
−
12
View file @
513d91f4
...
...
@@ -19,15 +19,16 @@
***************************************************************************/
#include
<cuengineaccessor.h>
#include
<cucontrolsfactorypool.h>
#include
<cumbiapool.h>
#include
<cuthreadfactoryimpl.h>
#include
<qthreadseventbridgefactory.h>
#include
<quapplication.h>
#include
"gofbpm.h"
int
main
(
int
argc
,
char
**
argv
)
{
CumbiaPool
*
p
=
new
CumbiaPool
();
CuControlsFactoryPool
fpool
;
QuApplication
qu_app
(
argc
,
argv
,
p
,
&
fpool
);
QString
version
(
"2.0"
);
QuApplication
qu_app
(
argc
,
argv
);
qu_app
.
setOrganizationName
(
"Elettra"
);
qu_app
.
setApplicationName
(
"LiberaBpm"
);
qu_app
.
setApplicationVersion
(
version
);
...
...
@@ -42,21 +43,19 @@ int main( int argc, char ** argv ) {
exit
(
1
);
}
Cu
mbiaPool
*
cu_p
=
new
CumbiaP
ool
(
);
gofbpm
*
w
=
new
gofbpm
(
cu_p
,
0
);
Cu
EngineAccessor
*
a
=
new
CuEngineAccessor
(
&
qu_app
,
&
p
,
&
fp
ool
);
gofbpm
*
w
=
new
gofbpm
(
nullptr
);
w
->
show
();
int
ret
=
qu_app
.
exec
();
// delete resources and return
// make sure to be operating on a valid cu_p in case of engine swap at runtime
CuEngineAccessor
*
c
=
w
->
findChild
<
CuEngineAccessor
*>
();
if
(
c
)
cu_p
=
c
->
cu_pool
();
// make sure to be operating on a valid cumbia pool in case of engine swap at runtime
p
=
a
->
cu_pool
();
delete
w
;
for
(
std
::
string
n
:
cu_
p
->
names
())
if
(
cu_
p
->
get
(
n
))
delete
cu_
p
->
get
(
n
);
for
(
std
::
string
n
:
p
->
names
())
if
(
p
->
get
(
n
))
delete
p
->
get
(
n
);
return
ret
;
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment