UsTK : Ultrasound ToolKit
version 2.0.1 under development (2025-03-13)
usServerMainWindow.cpp
1
#include "usServerMainWindow.h"
2
3
usServerMainWindow::usServerMainWindow
(QObject *parent)
4
{
5
m_startStopButton =
new
QPushButton(QString(
"Start server"
),
this
);
6
m_isStarted =
false
;
7
8
connect(m_startStopButton, SIGNAL(clicked()),
this
, SLOT(
startStopSlot
()));
9
}
10
11
usServerMainWindow::~usServerMainWindow
() {
12
delete
m_startStopButton;
13
}
14
15
void
usServerMainWindow::startStopSlot
() {
16
if
(m_isStarted) {
17
m_isStarted =
false
;
18
emit(
stopServer
());
19
}
20
else
{
21
m_isStarted =
true
;
22
emit(
startServer
());
23
m_startStopButton->setText(QString(
"Stop server"
));
24
}
25
}
usServerMainWindow::startStopSlot
void startStopSlot()
Definition:
usServerMainWindow.cpp:15
usServerMainWindow::usServerMainWindow
usServerMainWindow(QObject *parent=0)
Definition:
usServerMainWindow.cpp:3
usServerMainWindow::~usServerMainWindow
~usServerMainWindow()
Definition:
usServerMainWindow.cpp:11
usServerMainWindow::stopServer
void stopServer()
usServerMainWindow::startServer
void startServer()
ustk-code
apps
ustk
ultrasonix-server
usServerMainWindow.cpp
Generated by
1.9.1