File indexing completed on 2024-04-21 05:43:57

0001 /***************************************************************************
0002  *   Copyright (C) 2005 by David Saxton                                    *
0003  *   david@bluehaze.org                                                    *
0004  *                                                                         *
0005  *   This program is free software; you can redistribute it and/or modify  *
0006  *   it under the terms of the GNU General Public License as published by  *
0007  *   the Free Software Foundation; either version 2 of the License, or     *
0008  *   (at your option) any later version.                                   *
0009  ***************************************************************************/
0010 
0011 #ifndef ICNVIEW_H
0012 #define ICNVIEW_H
0013 
0014 #include <KToolBarPopupAction>
0015 #include <icndocument.h>
0016 #include <itemview.h>
0017 
0018 /**
0019 @author David Saxton
0020 */
0021 class ICNView : public ItemView
0022 {
0023     Q_OBJECT
0024 public:
0025     ICNView(ICNDocument *icnDocument, ViewContainer *viewContainer, uint viewAreaId);
0026     ~ICNView() override;
0027 
0028 protected slots:
0029     void slotSetRoutingMode(QAction *action); // 0 = auto, 1 = manual
0030     void slotSetRoutingAuto();
0031     void slotSetRoutingManual();
0032     void slotUpdateRoutingMode(bool manualRouting);
0033     void slotUpdateRoutingToggles(bool manualRouting);
0034 
0035 protected:
0036     KToolBarPopupAction *m_pRoutingModeToolbarPopup;
0037     QAction *m_pManualRoutingAction;
0038     QAction *m_pAutoRoutingAction;
0039     QAction *m_actMenuRouteAutoRoute;
0040     QAction *m_actMenuRouteManRoute;
0041 };
0042 
0043 #endif