-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
7 changed files
with
147 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
/* | ||
* This file is part of the PulseView project. | ||
* | ||
* Copyright (C) 2014 Joel Holdsworth <[email protected]> | ||
* | ||
* 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 "triggermarker.hpp" | ||
#include "view.hpp" | ||
|
||
#include <QColor> | ||
|
||
#include <libsigrok/libsigrok.hpp> | ||
|
||
using std::shared_ptr; | ||
|
||
namespace pv { | ||
namespace view { | ||
|
||
const QColor Flag::FillColour(0x73, 0xD2, 0x16); | ||
|
||
Flag::Flag(View &view, double time) : | ||
TimeMarker(view, FillColour, time) | ||
{ | ||
} | ||
|
||
Flag::Flag(const Flag &flag) : | ||
TimeMarker(flag.view_, FillColour, flag.time_) | ||
{ | ||
} | ||
|
||
QString Flag::get_text() const | ||
{ | ||
return ""; | ||
} | ||
|
||
} // namespace view | ||
} // namespace pv |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,58 @@ | ||
/* | ||
* This file is part of the PulseView project. | ||
* | ||
* Copyright (C) 2014 Joel Holdsworth <[email protected]> | ||
* | ||
* 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 PULSEVIEW_PV_VIEW_FLAG_H | ||
#define PULSEVIEW_PV_VIEW_FLAG_H | ||
|
||
#include "timemarker.hpp" | ||
|
||
namespace pv { | ||
namespace view { | ||
|
||
class Flag : public TimeMarker | ||
{ | ||
Q_OBJECT | ||
|
||
public: | ||
static const QColor FillColour; | ||
|
||
public: | ||
/** | ||
* Constructor. | ||
* @param view A reference to the view that owns this cursor pair. | ||
* @param time The time to set the flag to. | ||
*/ | ||
Flag(View &view, double time); | ||
|
||
/** | ||
* Copy constructor. | ||
*/ | ||
Flag(const Flag &flag); | ||
|
||
/** | ||
* Gets the text to show in the marker. | ||
*/ | ||
QString get_text() const; | ||
}; | ||
|
||
} // namespace view | ||
} // namespace pv | ||
|
||
#endif // PULSEVIEW_PV_VIEW_FLAG_H |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters