Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
Raptor Engineering Public Development
dsview
Commits
9bc3bf7e
Commit
9bc3bf7e
authored
8 years ago
by
DreamSourceLab
Browse files
Options
Download
Email Patches
Plain Diff
Improve performance of protocol decoder
parent
093824e6
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
82 additions
and
0 deletions
+82
-0
DSView/dsapplication.cpp
DSView/dsapplication.cpp
+45
-0
DSView/dsapplication.h
DSView/dsapplication.h
+37
-0
No files found.
DSView/dsapplication.cpp
0 → 100644
View file @
9bc3bf7e
/*
* This file is part of the DSView project.
* DSView is based on PulseView.
*
* Copyright (C) 2016 DreamSourceLab <dreamsourcelab@dreamsourcelab.com>
*
* 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 2 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, write to the Free Software
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
*/
#include "dsapplication.h"
#include <QMessageBox>
DSApplication
::
DSApplication
(
int
&
argc
,
char
**
argv
)
:
QApplication
(
argc
,
argv
)
{
}
bool
DSApplication
::
notify
(
QObject
*
receiver_
,
QEvent
*
event_
)
{
try
{
return
QApplication
::
notify
(
receiver_
,
event_
);
}
catch
(
std
::
exception
&
e
)
{
QMessageBox
msg
(
NULL
);
msg
.
setText
(
"Application Error"
);
msg
.
setInformativeText
(
e
.
what
());
msg
.
setStandardButtons
(
QMessageBox
::
Ok
);
msg
.
setIcon
(
QMessageBox
::
Warning
);
msg
.
exec
();
//QMessageBox::warning(NULL, "Application Error", e.what())
return
false
;
}
}
This diff is collapsed.
Click to expand it.
DSView/dsapplication.h
0 → 100644
View file @
9bc3bf7e
/*
* This file is part of the DSView project.
* DSView is based on PulseView.
*
* Copyright (C) 2016 DreamSourceLab <dreamsourcelab@dreamsourcelab.com>
*
* 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 2 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, write to the Free Software
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
*/
#ifndef DSVIEW_DSAPPLICATION_H
#define DSVIEW_DSAPPLICATION_H
#include <QObject>
#include <QApplication>
class
DSApplication
:
public
QApplication
{
public:
DSApplication
(
int
&
argc
,
char
**
argv
);
// ~MyApplication();
private:
bool
notify
(
QObject
*
receiver_
,
QEvent
*
event_
);
};
#endif // DSVIEW_DSAPPLICATION_H
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment