# Path: madesigner/madgui/combobox_nowheel.py
# class QComboBoxNoWheel(QComboBox):
#     def wheelEvent (self, event):
#         event.ignore()


import sys
from PyQt5.QtWidgets import (QApplication, QWidget,
                             QHBoxLayout, QVBoxLayout, QFrame, QFormLayout,
                             QPushButton, QTabWidget, QGroupBox,
                             QLineEdit, QTextEdit, QLabel, QScrollArea,
                             QInputDialog, QMenu, QMessageBox)
from .combobox_nowheel import QComboBoxNoWheel
        self.edit_end.addItem("-")
        self.edit_end.addItem("1")
        self.edit_end.addItem("2")
        self.edit_end.addItem("3")
        self.edit_end.currentIndexChanged.connect(self.onChange)
        layout1.addWidget(self.edit_end)

        layout1.addStretch(1)

        delete = QPushButton('Delete')
        delete.clicked.connect(self.delete_self)
        layout1.addWidget(delete)
  
        layout2.addWidget( QLabel("<b>Start Pos:</b> ") )

        self.edit_pos1ref = QComboBoxNoWheel()
        self.edit_pos1ref.addItem("Chord %")
        self.edit_pos1ref.addItem("Rel Front")
        self.edit_pos1ref.addItem("Rel Rear")
        self.edit_pos1ref.addItem("Abs Pos")
        self.edit_pos1ref.currentIndexChanged.connect(self.onChange)
        layout2.addWidget(self.edit_pos1ref)

        self.edit_pos1 = QLineEdit()
        self.edit_pos1.setFixedWidth(50)
        self.edit_pos1.textChanged.connect(self.onChange)
        layout2.addWidget( self.edit_pos1 )

        layout2.addWidget( QLabel("<b>End Pos:</b> ") )


# Path: madesigner/madgui/combobox_nowheel.py
# class QComboBoxNoWheel(QComboBox):
#     def wheelEvent (self, event):
#         event.ignore()


# Path: madesigner/madgui/shaped_hole_ui.py
import sys
from PyQt5.QtWidgets import (QApplication, QWidget,
                             QHBoxLayout, QVBoxLayout, QFrame, QFormLayout,
                             QPushButton, QTabWidget, QGroupBox,
                             QLineEdit, QTextEdit, QLabel, QScrollArea,
                             QInputDialog, QMenu, QMessageBox)
from .combobox_nowheel import QComboBoxNoWheel

        self.edit_end.addItem("-")
        self.edit_end.addItem("1")
        self.edit_end.addItem("2")
        self.edit_end.addItem("3")
        self.edit_end.currentIndexChanged.connect(self.onChange)
        layout1.addWidget(self.edit_end)

        layout1.addStretch(1)

        delete = QPushButton('Delete')
        delete.clicked.connect(self.delete_self)
        layout1.addWidget(delete)
  
        layout2.addWidget( QLabel("<b>Start Pos:</b> ") )

        self.edit_pos1ref = QComboBoxNoWheel()
        self.edit_pos1ref.addItem("Chord %")
        self.edit_pos1ref.addItem("Rel Front")
        self.edit_pos1ref.addItem("Rel Rear")
        self.edit_pos1ref.addItem("Abs Pos")
        self.edit_pos1ref.currentIndexChanged.connect(self.onChange)
        layout2.addWidget(self.edit_pos1ref)

        self.edit_pos1 = QLineEdit()
        self.edit_pos1.setFixedWidth(50)
        self.edit_pos1.textChanged.connect(self.onChange)
        layout2.addWidget( self.edit_pos1 )

        layout2.addWidget( QLabel("<b>End Pos:</b> ") )


        self.edit_pos2ref = QComboBoxNoWheel()