File indexing completed on 2024-05-12 16:41:07
0001 /*************************************************************************** 0002 begin : Sunday Jun 27 2008 0003 copyright : (C) 2008 by Mathias Soeken 0004 email : msoeken@informatik.uni-bremen.de 0005 ***************************************************************************/ 0006 0007 /*************************************************************************** 0008 * * 0009 * This program is free software; you can redistribute it and/or modify * 0010 * it under the terms of the GNU General Public License as published by * 0011 * the Free Software Foundation; either version 2 of the License, or * 0012 * (at your option) any later version. * 0013 * * 0014 ***************************************************************************/ 0015 0016 #ifndef SELECTFRAMEACTION_H 0017 #define SELECTFRAMEACTION_H 0018 0019 #include <KToolBarPopupAction> 0020 0021 class QToolBar; 0022 class QToolButton; 0023 0024 class QPushButton; 0025 0026 namespace KileDialog { 0027 0028 class TabularFrameWidget; 0029 0030 class SelectFrameAction : public KToolBarPopupAction { 0031 Q_OBJECT 0032 0033 public: 0034 SelectFrameAction(const QString &text, QToolBar *parent); 0035 0036 private: 0037 QIcon generateIcon(); 0038 0039 private: 0040 QToolButton *m_pbNone, *m_pbLeftRight, *m_pbTopBottom, *m_pbAll; 0041 TabularFrameWidget *m_FrameWidget; 0042 QPushButton *m_pbDone; 0043 QToolBar *m_Parent; 0044 int m_CurrentBorder; 0045 0046 private Q_SLOTS: 0047 void slotTriggered(); 0048 void slotNoneClicked(); 0049 void slotLeftRightClicked(); 0050 void slotTopBottomClicked(); 0051 void slotAllClicked(); 0052 void slotDoneClicked(); 0053 0054 Q_SIGNALS: 0055 void borderSelected(int border); 0056 }; 0057 0058 } 0059 0060 #endif