]> sigrok.org Git - pulseview.git/blobdiff - pv/widgets/decodermenu.hpp
Session: Fix issue #67 by improving error handling
[pulseview.git] / pv / widgets / decodermenu.hpp
index 92c3a82176bbd074b1c3f4a7b707aeb57c10e586..6ef4d2c6bdffcde8827a550069b5b34484b8c788 100644 (file)
  * 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
+ * along with this program; if not, see <http://www.gnu.org/licenses/>.
  */
 
-#ifndef PULSEVIEW_PV_WIDGETS_DECODERMENU_H
-#define PULSEVIEW_PV_WIDGETS_DECODERMENU_H
+#ifndef PULSEVIEW_PV_WIDGETS_DECODERMENU_HPP
+#define PULSEVIEW_PV_WIDGETS_DECODERMENU_HPP
 
 #include <QMenu>
 #include <QSignalMapper>
@@ -34,12 +33,11 @@ class DecoderMenu : public QMenu
        Q_OBJECT;
 
 public:
-       DecoderMenu(QWidget *parent, bool first_level_decoder = false);
+       DecoderMenu(QWidget *parent, const char* input, bool first_level_decoder = false);
 
 private:
        static int decoder_name_cmp(const void *a, const void *b);
 
-
 private Q_SLOTS:
        void on_action(QObject *action);
 
@@ -50,7 +48,7 @@ private:
        QSignalMapper mapper_;
 };
 
-} // widgets
-} // pv
+}  // namespace widgets
+}  // namespace pv
 
-#endif // PULSEVIEW_PV_WIDGETS_DECODERMENU_H
+#endif // PULSEVIEW_PV_WIDGETS_DECODERMENU_HPP