File tree 16 files changed +208
-4
lines changed
common/tier4_state_rviz_plugin/src
16 files changed +208
-4
lines changed Original file line number Diff line number Diff line change
1
+ // Copyright 2024 The Autoware Contributors
2
+ //
3
+ // Licensed under the Apache License, Version 2.0 (the "License");
4
+ // you may not use this file except in compliance with the License.
5
+ // You may obtain a copy of the License at
6
+ //
7
+ // http://www.apache.org/licenses/LICENSE-2.0
8
+ //
9
+ // Unless required by applicable law or agreed to in writing, software
10
+ // distributed under the License is distributed on an "AS IS" BASIS,
11
+ // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
+ // See the License for the specific language governing permissions and
13
+ // limitations under the License.
1
14
#include " include/custom_button.hpp"
2
15
3
16
CustomElevatedButton::CustomElevatedButton (
Original file line number Diff line number Diff line change
1
+ // Copyright 2024 The Autoware Contributors
2
+ //
3
+ // Licensed under the Apache License, Version 2.0 (the "License");
4
+ // you may not use this file except in compliance with the License.
5
+ // You may obtain a copy of the License at
6
+ //
7
+ // http://www.apache.org/licenses/LICENSE-2.0
8
+ //
9
+ // Unless required by applicable law or agreed to in writing, software
10
+ // distributed under the License is distributed on an "AS IS" BASIS,
11
+ // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
+ // See the License for the specific language governing permissions and
13
+ // limitations under the License.
1
14
#include " include/custom_container.hpp"
2
15
3
16
CustomContainer::CustomContainer (QWidget * parent) : QFrame(parent), cornerRadius(15 )
Original file line number Diff line number Diff line change
1
+ // Copyright 2024 The Autoware Contributors
2
+ //
3
+ // Licensed under the Apache License, Version 2.0 (the "License");
4
+ // you may not use this file except in compliance with the License.
5
+ // You may obtain a copy of the License at
6
+ //
7
+ // http://www.apache.org/licenses/LICENSE-2.0
8
+ //
9
+ // Unless required by applicable law or agreed to in writing, software
10
+ // distributed under the License is distributed on an "AS IS" BASIS,
11
+ // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
+ // See the License for the specific language governing permissions and
13
+ // limitations under the License.
1
14
#include " include/custom_icon_label.hpp"
2
15
3
16
#include < ament_index_cpp/get_package_share_directory.hpp>
Original file line number Diff line number Diff line change
1
+ // Copyright 2024 The Autoware Contributors
2
+ //
3
+ // Licensed under the Apache License, Version 2.0 (the "License");
4
+ // you may not use this file except in compliance with the License.
5
+ // You may obtain a copy of the License at
6
+ //
7
+ // http://www.apache.org/licenses/LICENSE-2.0
8
+ //
9
+ // Unless required by applicable law or agreed to in writing, software
10
+ // distributed under the License is distributed on an "AS IS" BASIS,
11
+ // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
+ // See the License for the specific language governing permissions and
13
+ // limitations under the License.
1
14
#include " include/custom_label.hpp"
2
15
3
16
#include < QColor>
Original file line number Diff line number Diff line change
1
+ // Copyright 2024 The Autoware Contributors
2
+ //
3
+ // Licensed under the Apache License, Version 2.0 (the "License");
4
+ // you may not use this file except in compliance with the License.
5
+ // You may obtain a copy of the License at
6
+ //
7
+ // http://www.apache.org/licenses/LICENSE-2.0
8
+ //
9
+ // Unless required by applicable law or agreed to in writing, software
10
+ // distributed under the License is distributed on an "AS IS" BASIS,
11
+ // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
+ // See the License for the specific language governing permissions and
13
+ // limitations under the License.
1
14
#include " include/custom_segmented_button.hpp"
2
15
3
16
#include < qsizepolicy.h>
Original file line number Diff line number Diff line change
1
+ // Copyright 2024 The Autoware Contributors
2
+ //
3
+ // Licensed under the Apache License, Version 2.0 (the "License");
4
+ // you may not use this file except in compliance with the License.
5
+ // You may obtain a copy of the License at
6
+ //
7
+ // http://www.apache.org/licenses/LICENSE-2.0
8
+ //
9
+ // Unless required by applicable law or agreed to in writing, software
10
+ // distributed under the License is distributed on an "AS IS" BASIS,
11
+ // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
+ // See the License for the specific language governing permissions and
13
+ // limitations under the License.
1
14
#include " include/custom_segmented_button_item.hpp"
2
15
3
16
CustomSegmentedButtonItem::CustomSegmentedButtonItem (const QString & text, QWidget * parent)
Original file line number Diff line number Diff line change
1
+ // Copyright 2024 The Autoware Contributors
2
+ //
3
+ // Licensed under the Apache License, Version 2.0 (the "License");
4
+ // you may not use this file except in compliance with the License.
5
+ // You may obtain a copy of the License at
6
+ //
7
+ // http://www.apache.org/licenses/LICENSE-2.0
8
+ //
9
+ // Unless required by applicable law or agreed to in writing, software
10
+ // distributed under the License is distributed on an "AS IS" BASIS,
11
+ // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
+ // See the License for the specific language governing permissions and
13
+ // limitations under the License.
1
14
#include " include/custom_slider.hpp"
2
15
3
16
CustomSlider::CustomSlider (Qt::Orientation orientation, QWidget * parent)
Original file line number Diff line number Diff line change
1
+ // Copyright 2024 The Autoware Contributors
2
+ //
3
+ // Licensed under the Apache License, Version 2.0 (the "License");
4
+ // you may not use this file except in compliance with the License.
5
+ // You may obtain a copy of the License at
6
+ //
7
+ // http://www.apache.org/licenses/LICENSE-2.0
8
+ //
9
+ // Unless required by applicable law or agreed to in writing, software
10
+ // distributed under the License is distributed on an "AS IS" BASIS,
11
+ // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
+ // See the License for the specific language governing permissions and
13
+ // limitations under the License.
1
14
#include " include/custom_toggle_switch.hpp"
2
15
3
- #include < QDebug>
4
-
5
16
CustomToggleSwitch::CustomToggleSwitch (QWidget * parent) : QCheckBox(parent)
6
17
{
7
18
setSizePolicy (QSizePolicy::Fixed , QSizePolicy::Fixed );
@@ -49,8 +60,6 @@ void CustomToggleSwitch::paintEvent(QPaintEvent *)
49
60
void CustomToggleSwitch::mouseReleaseEvent (QMouseEvent * event)
50
61
{
51
62
if (event->button () == Qt::LeftButton) {
52
- qDebug () << " Mouse release event at x:" << event->pos ().x () << " y:" << event->pos ().y ();
53
-
54
63
int middleX = rect ().center ().x (); // Calculate the middle of the switch
55
64
bool newState = event->pos ().x () >= middleX; // Determine new state based on click position
56
65
Original file line number Diff line number Diff line change
1
+ // Copyright 2024 The Autoware Contributors
2
+ //
3
+ // Licensed under the Apache License, Version 2.0 (the "License");
4
+ // you may not use this file except in compliance with the License.
5
+ // You may obtain a copy of the License at
6
+ //
7
+ // http://www.apache.org/licenses/LICENSE-2.0
8
+ //
9
+ // Unless required by applicable law or agreed to in writing, software
10
+ // distributed under the License is distributed on an "AS IS" BASIS,
11
+ // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
+ // See the License for the specific language governing permissions and
13
+ // limitations under the License.
1
14
#ifndef CUSTOM_BUTTON_HPP_
2
15
#define CUSTOM_BUTTON_HPP_
3
16
Original file line number Diff line number Diff line change
1
+ // Copyright 2024 The Autoware Contributors
2
+ //
3
+ // Licensed under the Apache License, Version 2.0 (the "License");
4
+ // you may not use this file except in compliance with the License.
5
+ // You may obtain a copy of the License at
6
+ //
7
+ // http://www.apache.org/licenses/LICENSE-2.0
8
+ //
9
+ // Unless required by applicable law or agreed to in writing, software
10
+ // distributed under the License is distributed on an "AS IS" BASIS,
11
+ // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
+ // See the License for the specific language governing permissions and
13
+ // limitations under the License.
1
14
#ifndef CUSTOM_CONTAINER_HPP_
2
15
#define CUSTOM_CONTAINER_HPP_
3
16
Original file line number Diff line number Diff line change
1
+ // Copyright 2024 The Autoware Contributors
2
+ //
3
+ // Licensed under the Apache License, Version 2.0 (the "License");
4
+ // you may not use this file except in compliance with the License.
5
+ // You may obtain a copy of the License at
6
+ //
7
+ // http://www.apache.org/licenses/LICENSE-2.0
8
+ //
9
+ // Unless required by applicable law or agreed to in writing, software
10
+ // distributed under the License is distributed on an "AS IS" BASIS,
11
+ // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
+ // See the License for the specific language governing permissions and
13
+ // limitations under the License.
1
14
#ifndef CUSTOM_ICON_LABEL_HPP_
2
15
#define CUSTOM_ICON_LABEL_HPP_
3
16
Original file line number Diff line number Diff line change
1
+ // Copyright 2024 The Autoware Contributors
2
+ //
3
+ // Licensed under the Apache License, Version 2.0 (the "License");
4
+ // you may not use this file except in compliance with the License.
5
+ // You may obtain a copy of the License at
6
+ //
7
+ // http://www.apache.org/licenses/LICENSE-2.0
8
+ //
9
+ // Unless required by applicable law or agreed to in writing, software
10
+ // distributed under the License is distributed on an "AS IS" BASIS,
11
+ // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
+ // See the License for the specific language governing permissions and
13
+ // limitations under the License.
1
14
#ifndef CUSTOM_LABEL_HPP_
2
15
#define CUSTOM_LABEL_HPP_
3
16
Original file line number Diff line number Diff line change
1
+ // Copyright 2024 The Autoware Contributors
2
+ //
3
+ // Licensed under the Apache License, Version 2.0 (the "License");
4
+ // you may not use this file except in compliance with the License.
5
+ // You may obtain a copy of the License at
6
+ //
7
+ // http://www.apache.org/licenses/LICENSE-2.0
8
+ //
9
+ // Unless required by applicable law or agreed to in writing, software
10
+ // distributed under the License is distributed on an "AS IS" BASIS,
11
+ // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
+ // See the License for the specific language governing permissions and
13
+ // limitations under the License.
1
14
#ifndef CUSTOM_SEGMENTED_BUTTON_HPP_
2
15
#define CUSTOM_SEGMENTED_BUTTON_HPP_
3
16
Original file line number Diff line number Diff line change
1
+ // Copyright 2024 The Autoware Contributors
2
+ //
3
+ // Licensed under the Apache License, Version 2.0 (the "License");
4
+ // you may not use this file except in compliance with the License.
5
+ // You may obtain a copy of the License at
6
+ //
7
+ // http://www.apache.org/licenses/LICENSE-2.0
8
+ //
9
+ // Unless required by applicable law or agreed to in writing, software
10
+ // distributed under the License is distributed on an "AS IS" BASIS,
11
+ // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
+ // See the License for the specific language governing permissions and
13
+ // limitations under the License.
1
14
#ifndef CUSTOM_SEGMENTED_BUTTON_ITEM_HPP_
2
15
#define CUSTOM_SEGMENTED_BUTTON_ITEM_HPP_
3
16
Original file line number Diff line number Diff line change
1
+ // Copyright 2024 The Autoware Contributors
2
+ //
3
+ // Licensed under the Apache License, Version 2.0 (the "License");
4
+ // you may not use this file except in compliance with the License.
5
+ // You may obtain a copy of the License at
6
+ //
7
+ // http://www.apache.org/licenses/LICENSE-2.0
8
+ //
9
+ // Unless required by applicable law or agreed to in writing, software
10
+ // distributed under the License is distributed on an "AS IS" BASIS,
11
+ // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
+ // See the License for the specific language governing permissions and
13
+ // limitations under the License.
1
14
#ifndef CUSTOM_SLIDER_HPP_
2
15
#define CUSTOM_SLIDER_HPP_
3
16
Original file line number Diff line number Diff line change
1
+ // Copyright 2024 The Autoware Contributors
2
+ //
3
+ // Licensed under the Apache License, Version 2.0 (the "License");
4
+ // you may not use this file except in compliance with the License.
5
+ // You may obtain a copy of the License at
6
+ //
7
+ // http://www.apache.org/licenses/LICENSE-2.0
8
+ //
9
+ // Unless required by applicable law or agreed to in writing, software
10
+ // distributed under the License is distributed on an "AS IS" BASIS,
11
+ // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
+ // See the License for the specific language governing permissions and
13
+ // limitations under the License.
1
14
#ifndef CUSTOM_TOGGLE_SWITCH_HPP_
2
15
#define CUSTOM_TOGGLE_SWITCH_HPP_
3
16
You can’t perform that action at this time.
0 commit comments