Skip to content

Commit f126bf3

Browse files
committed
Fixed a compile error on Linux and slapped an MIT license header onto the libtlm files
1 parent 2352911 commit f126bf3

File tree

12 files changed

+166
-14
lines changed

12 files changed

+166
-14
lines changed

source/parser/telemetry/container.cpp

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,19 @@
11
//
2-
// Created by Sidney on 09/12/2024.
2+
// container.cpp
3+
// libtlm
4+
//
5+
// Created by Sidney Just
6+
// Copyright (c) 2024 by Laminar Research
7+
// Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated
8+
// documentation files (the "Software"), to deal in the Software without restriction, including without limitation
9+
// the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software,
10+
// and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
11+
// The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
12+
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED,
13+
// INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR
14+
// PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE
15+
// FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
16+
// ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
317
//
418

519
#include <stdexcept>

source/parser/telemetry/container.h

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,19 @@
11
//
2-
// Created by Sidney on 09/12/2024.
2+
// container.h
3+
// libtlm
4+
//
5+
// Created by Sidney Just
6+
// Copyright (c) 2024 by Laminar Research
7+
// Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated
8+
// documentation files (the "Software"), to deal in the Software without restriction, including without limitation
9+
// the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software,
10+
// and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
11+
// The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
12+
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED,
13+
// INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR
14+
// PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE
15+
// FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
16+
// ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
317
//
418

519
#ifndef TELEMETRY_CONTAINER_H

source/parser/telemetry/data.h

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,19 @@
11
//
2-
// Created by Sidney on 09/12/2024.
2+
// data.h
3+
// libtlm
4+
//
5+
// Created by Sidney Just
6+
// Copyright (c) 2024 by Laminar Research
7+
// Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated
8+
// documentation files (the "Software"), to deal in the Software without restriction, including without limitation
9+
// the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software,
10+
// and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
11+
// The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
12+
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED,
13+
// INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR
14+
// PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE
15+
// FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
16+
// ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
317
//
418

519
#ifndef TELEMETRY_DATA_H

source/parser/telemetry/event.cpp

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,19 @@
11
//
2-
// Created by Sidney on 09/12/2024.
2+
// event.cpp
3+
// libtlm
4+
//
5+
// Created by Sidney Just
6+
// Copyright (c) 2024 by Laminar Research
7+
// Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated
8+
// documentation files (the "Software"), to deal in the Software without restriction, including without limitation
9+
// the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software,
10+
// and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
11+
// The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
12+
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED,
13+
// INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR
14+
// PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE
15+
// FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
16+
// ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
317
//
418

519
#include <stdexcept>

source/parser/telemetry/event.h

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,19 @@
11
//
2-
// Created by Sidney on 09/12/2024.
2+
// event.h
3+
// libtlm
4+
//
5+
// Created by Sidney Just
6+
// Copyright (c) 2024 by Laminar Research
7+
// Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated
8+
// documentation files (the "Software"), to deal in the Software without restriction, including without limitation
9+
// the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software,
10+
// and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
11+
// The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
12+
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED,
13+
// INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR
14+
// PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE
15+
// FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
16+
// ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
317
//
418

519
#ifndef TELEMETRY_EVENT_H

source/parser/telemetry/parser.cpp

Lines changed: 15 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,19 @@
11
//
2-
// Created by Sidney on 09/12/2024.
2+
// container.cpp
3+
// libtlm
4+
//
5+
// Created by Sidney Just
6+
// Copyright (c) 2024 by Laminar Research
7+
// Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated
8+
// documentation files (the "Software"), to deal in the Software without restriction, including without limitation
9+
// the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software,
10+
// and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
11+
// The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
12+
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED,
13+
// INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR
14+
// PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE
15+
// FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
16+
// ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
317
//
418

519
#include <cmath>
@@ -8,8 +22,6 @@
822
#include <algorithm>
923
#include "parser.h"
1024

11-
#include <algorithm>
12-
1325
struct file_reader
1426
{
1527
file_reader(const uint8_t *data, size_t size) :

source/parser/telemetry/parser.h

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,19 @@
11
//
2-
// Created by Sidney on 09/12/2024.
2+
// parser.h
3+
// libtlm
4+
//
5+
// Created by Sidney Just
6+
// Copyright (c) 2024 by Laminar Research
7+
// Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated
8+
// documentation files (the "Software"), to deal in the Software without restriction, including without limitation
9+
// the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software,
10+
// and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
11+
// The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
12+
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED,
13+
// INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR
14+
// PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE
15+
// FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
16+
// ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
317
//
418

519
#ifndef TELEMETRY_PARSER_H

source/parser/telemetry/provider.cpp

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,19 @@
11
//
2-
// Created by Sidney on 09/12/2024.
2+
// provider.cpp
3+
// libtlm
4+
//
5+
// Created by Sidney Just
6+
// Copyright (c) 2024 by Laminar Research
7+
// Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated
8+
// documentation files (the "Software"), to deal in the Software without restriction, including without limitation
9+
// the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software,
10+
// and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
11+
// The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
12+
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED,
13+
// INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR
14+
// PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE
15+
// FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
16+
// ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
317
//
418

519
#include <stdexcept>

source/parser/telemetry/provider.h

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,19 @@
11
//
2-
// Created by Sidney on 09/12/2024.
2+
// provider.h
3+
// libtlm
4+
//
5+
// Created by Sidney Just
6+
// Copyright (c) 2024 by Laminar Research
7+
// Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated
8+
// documentation files (the "Software"), to deal in the Software without restriction, including without limitation
9+
// the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software,
10+
// and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
11+
// The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
12+
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED,
13+
// INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR
14+
// PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE
15+
// FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
16+
// ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
317
//
418

519
#ifndef TELEMETRY_PROVIDER_H

source/parser/telemetry/statistic.cpp

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,19 @@
11
//
2-
// Created by Sidney on 09/12/2024.
2+
// statistic.cpp
3+
// libtlm
4+
//
5+
// Created by Sidney Just
6+
// Copyright (c) 2024 by Laminar Research
7+
// Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated
8+
// documentation files (the "Software"), to deal in the Software without restriction, including without limitation
9+
// the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software,
10+
// and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
11+
// The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
12+
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED,
13+
// INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR
14+
// PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE
15+
// FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
16+
// ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
317
//
418

519
#include "statistic.h"

source/parser/telemetry/statistic.h

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,19 @@
11
//
2-
// Created by Sidney on 09/12/2024.
2+
// statistic.h
3+
// libtlm
4+
//
5+
// Created by Sidney Just
6+
// Copyright (c) 2024 by Laminar Research
7+
// Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated
8+
// documentation files (the "Software"), to deal in the Software without restriction, including without limitation
9+
// the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software,
10+
// and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
11+
// The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
12+
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED,
13+
// INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR
14+
// PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE
15+
// FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
16+
// ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
317
//
418

519
#ifndef TELEMETRY_STATISTIC_H

source/viewer/widgets/timeline_widget.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ timeline_span_item::timeline_span_item(const QPalette& p, const telemetry_event&
4545
rect->setFlag(QGraphicsItem::ItemIsSelectable);
4646
rect->setEnabled(true);
4747
rect->setCursor(Qt::PointingHandCursor);
48-
rect->setData(0, QVariant(span.get_id()));
48+
rect->setData(0, QVariant::fromValue(span.get_id()));
4949

5050
auto label_item = new QGraphicsSimpleTextItem(path, rect);
5151
label_item->setBrush(p.text());

0 commit comments

Comments
 (0)