src/actions/actionfilesaveas.h \
src/actions/actioninfoangle.h \
src/actions/actioninfoarea.h \
- src/actions/actioninfoinside.h \
src/actions/actioninfodist.h \
src/actions/actioninfodist2.h \
+ src/actions/actioninfoinside.h \
src/actions/actioninfototallength.h \
src/actions/actionlayersadd.h \
src/actions/actionlayersedit.h \
src/actions/actionmodifydeletefree.h \
src/actions/actionmodifydeletequick.h \
src/actions/actionmodifyentity.h \
+ src/actions/actionmodifyexplodetext.h \
src/actions/actionmodifymirror.h \
src/actions/actionmodifymove.h \
src/actions/actionmodifymoverotate.h \
src/actions/actionmodifystretch.h \
src/actions/actionmodifytrim.h \
src/actions/actionmodifytrimamount.h \
- src/actions/actionmodifyexplodetext.h \
src/actions/actionoptionsdrawing.h \
src/actions/actionprintpreview.h \
src/actions/actionselect.h \
src/actions/actionselectcontour.h \
src/actions/actionselectintersected.h \
src/actions/actionselectinvert.h \
+ src/actions/actionselectlayer.h \
src/actions/actionselectsingle.h \
src/actions/actionselectwindow.h \
- src/actions/actionselectlayer.h \
src/actions/actionsetrelativezero.h \
src/actions/actionsetsnapmode.h \
src/actions/actionsetsnaprestriction.h \
src/actions/actionfilesaveas.cpp \
src/actions/actioninfoangle.cpp \
src/actions/actioninfoarea.cpp \
- src/actions/actioninfoinside.cpp \
src/actions/actioninfodist.cpp \
src/actions/actioninfodist2.cpp \
+ src/actions/actioninfoinside.cpp \
src/actions/actioninfototallength.cpp \
src/actions/actionlayersadd.cpp \
src/actions/actionlayersedit.cpp \
src/actions/actionmodifydeletefree.cpp \
src/actions/actionmodifydeletequick.cpp \
src/actions/actionmodifyentity.cpp \
+ src/actions/actionmodifyexplodetext.cpp \
src/actions/actionmodifymirror.cpp \
src/actions/actionmodifymove.cpp \
src/actions/actionmodifymoverotate.cpp \
src/actions/actionmodifystretch.cpp \
src/actions/actionmodifytrim.cpp \
src/actions/actionmodifytrimamount.cpp \
- src/actions/actionmodifyexplodetext.cpp \
src/actions/actionoptionsdrawing.cpp \
src/actions/actionprintpreview.cpp \
src/actions/actionselect.cpp \
src/actions/actionselectcontour.cpp \
src/actions/actionselectintersected.cpp \
src/actions/actionselectinvert.cpp \
+ src/actions/actionselectlayer.cpp \
src/actions/actionselectsingle.cpp \
src/actions/actionselectwindow.cpp \
- src/actions/actionselectlayer.cpp \
src/actions/actionsetrelativezero.cpp \
src/actions/actionsetsnapmode.cpp \
src/actions/actionsetsnaprestriction.cpp \
src/forms/exitdialog.h \
src/forms/imageoptions.h \
src/forms/insertoptions.h \
- src/forms/libraryinsertoptions.h \
src/forms/layerdialog.h \
+ src/forms/libraryinsertoptions.h \
src/forms/librarywidget.h \
src/forms/lineangleoptions.h \
src/forms/linebisectoroptions.h \
src/forms/exitdialog.cpp \
src/forms/imageoptions.cpp \
src/forms/insertoptions.cpp \
- src/forms/libraryinsertoptions.cpp \
src/forms/layerdialog.cpp \
+ src/forms/libraryinsertoptions.cpp \
src/forms/librarywidget.cpp \
src/forms/lineangleoptions.cpp \
src/forms/linebisectoroptions.cpp \
#include "rs.h"
#include "rs_commandevent.h"
+#include "rs_debug.h"
#include "rs_dialogfactory.h"
#include "rs_line.h"
#include "rs_modification.h"
#include "rs_commandevent.h"
#include "rs_constructionline.h"
+#include "rs_debug.h"
#include "rs_dialogfactory.h"
#include "graphicview.h"
#include "rs_preview.h"
#include "actiondimangular.h"
#include "rs_commandevent.h"
+#include "rs_debug.h"
#include "rs_dialogfactory.h"
#include "graphicview.h"
#include "rs_information.h"
#include "actiondimdiametric.h"
#include "rs_commandevent.h"
+#include "rs_debug.h"
#include "rs_dialogfactory.h"
#include "graphicview.h"
#include "rs_preview.h"
#include "actiondimleader.h"
#include "rs_commandevent.h"
+#include "rs_debug.h"
#include "rs_dialogfactory.h"
#include "graphicview.h"
#include "rs_preview.h"
#include "rs_commandevent.h"
#include "rs_constructionline.h"
+#include "rs_debug.h"
#include "rs_dialogfactory.h"
#include "graphicview.h"
#include "rs_preview.h"
#include "actiondimradial.h"
#include "rs_commandevent.h"
+#include "rs_debug.h"
#include "rs_dialogfactory.h"
#include "graphicview.h"
#include "rs_preview.h"
#include "rs_commandevent.h"
#include "commands.h"
+#include "rs_debug.h"
#include "rs_dialogfactory.h"
#include "graphicview.h"
#include "rs_preview.h"
#include "actiondrawarctangential.h"
#include "rs_commandevent.h"
+#include "rs_debug.h"
#include "rs_dialogfactory.h"
#include "graphicview.h"
#include "rs_preview.h"
#include "actiondrawcircle.h"
#include "rs_commandevent.h"
+#include "rs_debug.h"
#include "rs_dialogfactory.h"
#include "graphicview.h"
#include "rs_preview.h"
#include "actiondrawcirclecr.h"
#include "rs_commandevent.h"
+#include "rs_debug.h"
#include "rs_dialogfactory.h"
#include "graphicview.h"
#include "rs_preview.h"
#include "actiondrawellipseaxis.h"
#include "rs_commandevent.h"
+#include "rs_debug.h"
#include "rs_dialogfactory.h"
#include "graphicview.h"
#include "rs_preview.h"
#include "actiondrawhatch.h"
+#include "rs_debug.h"
#include "rs_dialogfactory.h"
#include "graphicview.h"
#include "rs_information.h"
#include "actioneditundo.h"
#include "rs_commandevent.h"
#include "commands.h"
+#include "rs_debug.h"
#include "rs_dialogfactory.h"
#include "graphicview.h"
#include "rs_preview.h"
#include "actiondrawlineangle.h"
#include "rs_commandevent.h"
+#include "rs_debug.h"
#include "rs_dialogfactory.h"
#include "graphicview.h"
#include "rs_preview.h"
#include "rs_commandevent.h"
#include "rs_creation.h"
+#include "rs_debug.h"
#include "rs_dialogfactory.h"
#include "graphicview.h"
#include "rs_preview.h"
#include "actiondrawlinefree.h"
+#include "rs_debug.h"
#include "rs_dialogfactory.h"
#include "graphicview.h"
#include "rs_polyline.h"
#include "actiondrawlinehorvert.h"
+#include "rs_debug.h"
#include "rs_dialogfactory.h"
#include "graphicview.h"
#include "rs_preview.h"
#include "rs_commandevent.h"
#include "commands.h"
#include "rs_creation.h"
+#include "rs_debug.h"
#include "rs_dialogfactory.h"
#include "graphicview.h"
#include "rs_preview.h"
#include "rs_commandevent.h"
#include "rs_creation.h"
+#include "rs_debug.h"
#include "rs_dialogfactory.h"
#include "graphicview.h"
#include "rs_preview.h"
#include "rs_commandevent.h"
#include "rs_creation.h"
+#include "rs_debug.h"
#include "rs_dialogfactory.h"
#include "graphicview.h"
#include "rs_preview.h"
#include "rs_commandevent.h"
#include "rs_creation.h"
+#include "rs_debug.h"
#include "rs_dialogfactory.h"
#include "graphicview.h"
#include "rs_preview.h"
#include "actiondrawlinerectangle.h"
#include "rs_commandevent.h"
+#include "rs_debug.h"
#include "rs_dialogfactory.h"
#include "graphicview.h"
#include "rs_preview.h"
#include "rs_commandevent.h"
#include "rs_creation.h"
+#include "rs_debug.h"
#include "rs_dialogfactory.h"
#include "graphicview.h"
#include "rs_preview.h"
#include "actiondrawlinetangent1.h"
#include "rs_creation.h"
+#include "rs_debug.h"
#include "rs_dialogfactory.h"
#include "graphicview.h"
#include "rs_preview.h"
#include "actiondrawlinetangent2.h"
#include "rs_creation.h"
+#include "rs_debug.h"
#include "rs_dialogfactory.h"
#include "graphicview.h"
#include "rs_preview.h"
#include "rs_commandevent.h"
#include "commands.h"
+#include "rs_debug.h"
#include "rs_dialogfactory.h"
#include "graphicview.h"
#include "rs_preview.h"
#include "actiondrawtext.h"
#include "rs_commandevent.h"
+#include "rs_debug.h"
#include "rs_dialogfactory.h"
#include "graphicview.h"
#include "rs_preview.h"
#include "actioninfoangle.h"
+#include "rs_debug.h"
#include "rs_dialogfactory.h"
#include "graphicview.h"
#include "rs_information.h"
#include "actioninfoarea.h"
+#include "rs_debug.h"
#include "rs_dialogfactory.h"
#include "graphicview.h"
#include "rs_preview.h"
#include "actioninfodist.h"
+#include "rs_debug.h"
#include "rs_dialogfactory.h"
#include "graphicview.h"
#include "rs_preview.h"
#include "actioninfodist2.h"
+#include "rs_debug.h"
#include "rs_dialogfactory.h"
#include "graphicview.h"
#include "rs_preview.h"
#include "actioninfototallength.h"
+#include "rs_debug.h"
#include "rs_dialogfactory.h"
ActionInfoTotalLength::ActionInfoTotalLength(RS_EntityContainer & container, GraphicView & graphicView): ActionInterface("Info Total Length",
#include "actionmodifybevel.h"
#include "rs_commandevent.h"
+#include "rs_debug.h"
#include "rs_dialogfactory.h"
#include "rs_information.h"
#include "actionmodifycut.h"
+#include "rs_debug.h"
#include "rs_dialogfactory.h"
#include "graphicview.h"
#include "rs_modification.h"
#include "actionmodifydelete.h"
+#include "rs_debug.h"
#include "rs_dialogfactory.h"
#include "graphicview.h"
#include "rs_modification.h"
#include "actionmodifydeletequick.h"
+#include "rs_debug.h"
#include "rs_dialogfactory.h"
#include "graphicview.h"
#include "actionmodifyentity.h"
+#include "rs_debug.h"
#include "rs_dialogfactory.h"
#include "graphicview.h"
#include "actionmodifymirror.h"
+#include "rs_debug.h"
#include "rs_dialogfactory.h"
#include "rs_preview.h"
#include "actionmodifymove.h"
+#include "rs_debug.h"
#include "rs_dialogfactory.h"
#include "rs_preview.h"
#include "actionmodifymoverotate.h"
#include "rs_commandevent.h"
+#include "rs_debug.h"
#include "rs_dialogfactory.h"
#include "rs_preview.h"
#include "actionmodifyrotate.h"
+#include "rs_debug.h"
#include "rs_dialogfactory.h"
ActionModifyRotate::ActionModifyRotate(RS_EntityContainer & container, GraphicView & graphicView):
#include "actionmodifyrotate2.h"
+#include "rs_debug.h"
#include "rs_dialogfactory.h"
ActionModifyRotate2::ActionModifyRotate2(
#include "actionmodifyround.h"
#include "rs_commandevent.h"
+#include "rs_debug.h"
#include "rs_dialogfactory.h"
#include "rs_information.h"
#include "rs_preview.h"
#include "actionmodifyscale.h"
+#include "rs_debug.h"
#include "rs_dialogfactory.h"
ActionModifyScale::ActionModifyScale(RS_EntityContainer & container, GraphicView & graphicView):
#include "actionmodifystretch.h"
+#include "rs_debug.h"
#include "rs_dialogfactory.h"
#include "rs_modification.h"
#include "rs_preview.h"
#include "actionmodifytrim.h"
+#include "rs_debug.h"
#include "rs_dialogfactory.h"
#include "rs_modification.h"
#include "actionmodifytrimamount.h"
#include "rs_commandevent.h"
+#include "rs_debug.h"
#include "rs_dialogfactory.h"
#include "rs_modification.h"
#include "actionselectcontour.h"
+#include "rs_debug.h"
#include "rs_dialogfactory.h"
+#include "graphicview.h"
#include "rs_selection.h"
ActionSelectContour::ActionSelectContour(RS_EntityContainer & container,
#include "actionselectintersected.h"
+#include "rs_debug.h"
#include "rs_dialogfactory.h"
+#include "graphicview.h"
#include "rs_selection.h"
#include "rs_preview.h"
#include "actionselectlayer.h"
+#include "rs_debug.h"
#include "rs_dialogfactory.h"
+#include "graphicview.h"
#include "rs_selection.h"
ActionSelectLayer::ActionSelectLayer(RS_EntityContainer & container, GraphicView & graphicView):
#include "actionselectsingle.h"
+#include "rs_debug.h"
#include "rs_dialogfactory.h"
+#include "graphicview.h"
#include "rs_selection.h"
ActionSelectSingle::ActionSelectSingle(RS_EntityContainer & container, GraphicView & graphicView):
#include "actionselectwindow.h"
+#include "rs_debug.h"
#include "rs_dialogfactory.h"
+#include "graphicview.h"
#include "rs_selection.h"
#include "rs_preview.h"
#include "actionsnapintersectionmanual.h"
+#include "rs_debug.h"
#include "rs_dialogfactory.h"
#include "graphicview.h"
#include "rs_information.h"
#include "actiontoolregeneratedimensions.h"
+#include "rs_debug.h"
#include "rs_dialogfactory.h"
#include "rs_dimension.h"
#include "graphicview.h"
#include "actionzoomwindow.h"
+#include "rs_debug.h"
#include "rs_dialogfactory.h"
#include "graphicview.h"
#include "rs_preview.h"
#include "rs_staticgraphicview.h"
+#include "rs_debug.h"
+
/**
* Constructor.
*
// Q3DictIterator<RS_Variable> it(d.variables);
QHashIterator<QString, RS_Variable *> it(d.variables);
-// for(; it.current(); ++it)
while (it.hasNext())
{
it.next();
-//Hmm, not sure about this...
-#warning "Not sure if this is correct usage (.toAscii().data())... !!! FIX !!!"
os << it.key().toAscii().data() << ": ";
+
switch (it.value()->getType())
{
case RS2::VariableVoid:
#include "actiondrawarc.h"
#include "actioninterface.h"
+#include "rs_debug.h"
#include "settings.h"
ArcOptions::ArcOptions(QToolBar * parent/*= 0*/, Qt::WindowFlags flags/*= 0*/):
#include "arctangentialoptions.h"
#include "actiondrawarctangential.h"
+#include "rs_debug.h"
#include "settings.h"
ArcTangentialOptions::ArcTangentialOptions(QToolBar * parent/*= 0*/, Qt::WindowFlags flags/*= 0*/):
#include "rs.h"
#include "actioninterface.h"
#include "actionmodifybevel.h"
+#include "rs_debug.h"
#include "settings.h"
BevelOptions::BevelOptions(QToolBar * parent/*= 0*/, Qt::WindowFlags flags/*= 0*/):
#include "blockdialog.h"
#include "rs_blocklist.h"
+#include "rs_debug.h"
BlockDialog::BlockDialog(QWidget * parent/*= 0*/, Qt::WindowFlags flags/*= 0*/):
QDialog(parent, flags), blockList(NULL)
/**
* @return Pointer to action handler or NULL.
*/
-QG_ActionHandler * CadToolBar::getActionHandler()
+ActionHandler * CadToolBar::getActionHandler()
{
return actionHandler;
}
*
* @param ah Pointer to action handler which will deal with the actions in this tool bar.
*/
-void CadToolBar::createSubToolBars(QG_ActionHandler * ah)
+void CadToolBar::createSubToolBars(ActionHandler * ah)
{
actionHandler = ah;
tbMain = new CadToolBarMain(this);
#include <QtGui>
class ActionInterface;
-class QG_ActionHandler;
+class ActionHandler;
class CadToolBarSplines;
class CadToolBarInfo;
class CadToolBarMain;
CadToolBar(QWidget * parent = 0, Qt::WindowFlags flags = 0);
~CadToolBar();
- QG_ActionHandler * getActionHandler();
+ ActionHandler * getActionHandler();
public slots:
void back();
void forceNext();
void mouseReleaseEvent(QMouseEvent * e);
void contextMenuEvent(QContextMenuEvent * e);
- void createSubToolBars(QG_ActionHandler * ah);
+ void createSubToolBars(ActionHandler * ah);
void showToolBar(int id);
void showToolBarMain();
void showToolBarPoints();
void signalNext();
protected:
- QG_ActionHandler * actionHandler;
+ ActionHandler * actionHandler;
QWidget * currentTb;
CadToolBarSplines * tbSplines;
CadToolBarInfo * tbInfo;
#include "cadtoolbarmain.h"
-#include "qg_actionhandler.h"
+#include "actionhandler.h"
#include "cadtoolbar.h"
CadToolBarMain::CadToolBarMain(CadToolBar * parent/*= 0*/, Qt::WindowFlags flags/*= 0*/):
QWidget((QWidget *)parent, flags)
{
- QG_ActionHandler * actionHandler = parent->getActionHandler();
+ ActionHandler * actionHandler = parent->getActionHandler();
gridLayout = new QGridLayout(this);
gridLayout->setSpacing(0);
#include "cadtoolbarselect.h"
-#include "qg_actionhandler.h"
+#include "actionhandler.h"
#include "actioninterface.h"
#include "cadtoolbar.h"
#include "createqtactions.h"
#include <QtGui>
class CadToolBar;
-class QG_ActionHandler;
+class ActionHandler;
class ActionInterface;
class CadToolBarSelect: public QWidget
private:
QToolButton * doit;
- QG_ActionHandler * actionHandler;
+ ActionHandler * actionHandler;
ActionInterface * selectAction;
int nextAction;
};
#include "rs.h"
#include "actioninterface.h"
#include "actiondrawcirclecr.h"
+#include "rs_debug.h"
#include "settings.h"
CircleOptions::CircleOptions(QToolBar * parent/*= 0*/, Qt::WindowFlags flags/*= 0*/):
#include "commandwidget.h"
#include "commands.h"
-#include "qg_actionhandler.h"
+#include "actionhandler.h"
CommandWidget::CommandWidget(QWidget * parent/*= 0*/, Qt::WindowFlags flags/*= 0*/):
QWidget(parent, flags), actionHandler(NULL)
}
}*/
-void CommandWidget::setActionHandler(QG_ActionHandler * ah)
+void CommandWidget::setActionHandler(ActionHandler * ah)
{
actionHandler = ah;
}
#include "ui_commandwidget.h"
-class QG_ActionHandler;
+class ActionHandler;
class CommandWidget: public QWidget
{
void trigger();
void tabPressed();
void escape();
- void setActionHandler(QG_ActionHandler * ah);
+ void setActionHandler(ActionHandler * ah);
void setCommandMode();
void setNormalMode();
private:
- QG_ActionHandler * actionHandler;
+ ActionHandler * actionHandler;
private:
Ui::CommandWidget ui;
</widget>
</item>
<item>
- <widget class="QG_CommandEdit" name="leCommand" native="true">
+ <widget class="CommandEdit" name="leCommand" native="true">
<property name="sizePolicy">
<sizepolicy hsizetype="MinimumExpanding" vsizetype="Preferred">
<horstretch>0</horstretch>
<layoutdefault spacing="6" margin="11"/>
<customwidgets>
<customwidget>
- <class>QG_CommandEdit</class>
+ <class>CommandEdit</class>
<extends>QWidget</extends>
- <header>qg_commandedit.h</header>
+ <header>commandedit.h</header>
</customwidget>
</customwidgets>
<resources/>
#include "actiondimlinear.h"
#include "actioninterface.h"
+#include "rs_debug.h"
#include "settings.h"
DimLinearOptions::DimLinearOptions(QToolBar * parent/*= 0*/, Qt::WindowFlags flags/*= 0*/):
#include "actiondimension.h"
#include "actioninterface.h"
+#include "rs_debug.h"
#include "settings.h"
DimOptions::DimOptions(QToolBar * parent/*= 0*/, Qt::WindowFlags flags/*= 0*/):
</widget>
</item>
<item>
- <widget class="QG_LayerBox" name="cbLayer" native="true"/>
+ <widget class="LayerBox" name="cbLayer" native="true"/>
</item>
</layout>
</item>
<layoutdefault spacing="6" margin="11"/>
<customwidgets>
<customwidget>
- <class>QG_LayerBox</class>
+ <class>LayerBox</class>
<extends>QWidget</extends>
- <header>qg_layerbox.h</header>
+ <header>layerbox.h</header>
</customwidget>
<customwidget>
<class>WidgetPen</class>
</widget>
</item>
<item>
- <widget class="QG_LayerBox" name="cbLayer" native="true"/>
+ <widget class="LayerBox" name="cbLayer" native="true"/>
</item>
</layout>
</item>
<header>widgetpen.h</header>
</customwidget>
<customwidget>
- <class>QG_LayerBox</class>
+ <class>LayerBox</class>
<extends>QWidget</extends>
- <header>qg_layerbox.h</header>
+ <header>layerbox.h</header>
</customwidget>
</customwidgets>
<resources/>
</widget>
</item>
<item>
- <widget class="QG_LayerBox" name="cbLayer" native="true"/>
+ <widget class="LayerBox" name="cbLayer" native="true"/>
</item>
</layout>
</item>
<layoutdefault spacing="6" margin="11"/>
<customwidgets>
<customwidget>
- <class>QG_LayerBox</class>
+ <class>LayerBox</class>
<extends>QWidget</extends>
- <header>qg_layerbox.h</header>
+ <header>layerbox.h</header>
</customwidget>
<customwidget>
<class>WidgetPen</class>
</widget>
</item>
<item>
- <widget class="QG_LayerBox" name="cbLayer" native="true"/>
+ <widget class="LayerBox" name="cbLayer" native="true"/>
</item>
</layout>
</item>
<layoutdefault spacing="6" margin="11"/>
<customwidgets>
<customwidget>
- <class>QG_LayerBox</class>
+ <class>LayerBox</class>
<extends>QWidget</extends>
- <header>qg_layerbox.h</header>
+ <header>layerbox.h</header>
</customwidget>
<customwidget>
<class>WidgetPen</class>
</widget>
</item>
<item>
- <widget class="QG_LayerBox" name="cbLayer" native="true"/>
+ <widget class="LayerBox" name="cbLayer" native="true"/>
</item>
</layout>
</item>
<layoutdefault spacing="6" margin="11"/>
<customwidgets>
<customwidget>
- <class>QG_LayerBox</class>
+ <class>LayerBox</class>
<extends>QWidget</extends>
- <header>qg_layerbox.h</header>
+ <header>layerbox.h</header>
</customwidget>
<customwidget>
<class>WidgetPen</class>
</widget>
</item>
<item>
- <widget class="QG_LayerBox" name="cbLayer" native="true"/>
+ <widget class="LayerBox" name="cbLayer" native="true"/>
</item>
</layout>
</item>
<layoutdefault spacing="6" margin="11"/>
<customwidgets>
<customwidget>
- <class>QG_LayerBox</class>
+ <class>LayerBox</class>
<extends>QWidget</extends>
- <header>qg_layerbox.h</header>
+ <header>layerbox.h</header>
</customwidget>
<customwidget>
<class>WidgetPen</class>
</widget>
</item>
<item row="1" column="0" colspan="2">
- <widget class="QG_PatternBox" name="cbPattern" native="true"/>
+ <widget class="PatternBox" name="cbPattern" native="true"/>
</item>
<item row="0" column="0" colspan="2">
<widget class="QCheckBox" name="cbSolid">
<layoutdefault spacing="6" margin="11"/>
<customwidgets>
<customwidget>
- <class>QG_PatternBox</class>
+ <class>PatternBox</class>
<extends>QWidget</extends>
- <header>qg_patternbox.h</header>
+ <header>patternbox.h</header>
</customwidget>
<customwidget>
<class>QG_GraphicView</class>
</widget>
</item>
<item>
- <widget class="QG_LayerBox" name="cbLayer" native="true"/>
+ <widget class="LayerBox" name="cbLayer" native="true"/>
</item>
</layout>
</item>
<layoutdefault spacing="6" margin="11"/>
<customwidgets>
<customwidget>
- <class>QG_LayerBox</class>
+ <class>LayerBox</class>
<extends>QWidget</extends>
- <header>qg_layerbox.h</header>
+ <header>layerbox.h</header>
</customwidget>
<customwidget>
<class>WidgetPen</class>
</widget>
</item>
<item>
- <widget class="QG_LayerBox" name="cbLayer" native="true"/>
+ <widget class="LayerBox" name="cbLayer" native="true"/>
</item>
</layout>
</item>
<layoutdefault spacing="6" margin="11"/>
<customwidgets>
<customwidget>
- <class>QG_LayerBox</class>
+ <class>LayerBox</class>
<extends>QWidget</extends>
- <header>qg_layerbox.h</header>
+ <header>layerbox.h</header>
</customwidget>
<customwidget>
<class>WidgetPen</class>
</widget>
</item>
<item>
- <widget class="QG_LayerBox" name="cbLayer" native="true"/>
+ <widget class="LayerBox" name="cbLayer" native="true"/>
</item>
</layout>
</item>
<layoutdefault spacing="6" margin="11"/>
<customwidgets>
<customwidget>
- <class>QG_LayerBox</class>
+ <class>LayerBox</class>
<extends>QWidget</extends>
- <header>qg_layerbox.h</header>
+ <header>layerbox.h</header>
</customwidget>
<customwidget>
<class>WidgetPen</class>
</widget>
</item>
<item>
- <widget class="QG_LayerBox" name="cbLayer" native="true"/>
+ <widget class="LayerBox" name="cbLayer" native="true"/>
</item>
</layout>
</item>
<header>widgetpen.h</header>
</customwidget>
<customwidget>
- <class>QG_LayerBox</class>
+ <class>LayerBox</class>
<extends>QWidget</extends>
- <header>qg_layerbox.h</header>
+ <header>layerbox.h</header>
</customwidget>
</customwidgets>
<tabstops>
</spacer>
</item>
<item row="0" column="0" colspan="2">
- <widget class="QG_FontBox" name="cbFont" native="true">
+ <widget class="FontBox" name="cbFont" native="true">
<property name="sizePolicy">
<sizepolicy hsizetype="Expanding" vsizetype="Fixed">
<horstretch>0</horstretch>
<layoutdefault spacing="6" margin="11"/>
<customwidgets>
<customwidget>
- <class>QG_FontBox</class>
+ <class>FontBox</class>
<extends>QWidget</extends>
- <header>qg_fontbox.h</header>
+ <header>fontbox.h</header>
</customwidget>
</customwidgets>
<resources>
#include "imageoptions.h"
#include "rs.h"
-#include "settings.h"
#include "actiondrawimage.h"
#include "actioninterface.h"
+#include "rs_debug.h"
+#include "settings.h"
ImageOptions::ImageOptions(QWidget * parent/*= NULL*/, Qt::WindowFlags flags/*= 0*/):
QWidget(parent, flags)
{
}
-void LibraryWidget::setActionHandler(QG_ActionHandler * ah)
+void LibraryWidget::setActionHandler(ActionHandler * ah)
{
actionHandler = ah;
}
* Appends the given directory to the given list view item. Called recursively until all
* library directories are appended.
*/
-void LibraryWidget::appendTree(QG_ListViewItem * item, QString directory)
+void LibraryWidget::appendTree(ListViewItem * item, QString directory)
{
#if 0
QStringList::Iterator it;
{
QStringList lDirectoryList = dir.entryList(QDir::Dirs, QDir::Name);
- QG_ListViewItem* newItem;
- QG_ListViewItem* searchItem;
+ ListViewItem* newItem;
+ ListViewItem* searchItem;
for(it=lDirectoryList.begin(); it!=lDirectoryList.end(); ++it)
{
// Look for an item already existing and take this
// instead of making a new one:
if (item != NULL)
- searchItem = (QG_ListViewItem *)item->firstChild();
+ searchItem = (ListViewItem *)item->firstChild();
else
- searchItem = (QG_ListViewItem *)lvDirectory->firstChild();
+ searchItem = (ListViewItem *)lvDirectory->firstChild();
while (searchItem != NULL)
{
break;
}
- searchItem = (QG_ListViewItem *)searchItem->nextSibling();
+ searchItem = (ListViewItem *)searchItem->nextSibling();
}
// Create new item if no existing was found:
if (newItem == NULL)
{
if (item)
- newItem = new QG_ListViewItem(item, (*it));
+ newItem = new ListViewItem(item, (*it));
else
- newItem = new QG_ListViewItem(lvDirectory, (*it));
+ newItem = new ListViewItem(lvDirectory, (*it));
}
appendTree(newItem, directory + "/" + (*it));
#include "ui_librarywidget.h"
class QListWidgetItem;
-class QG_ActionHandler;
-class QG_ListViewItem;
+class ActionHandler;
+class ListViewItem;
class LibraryWidget: public QWidget
{
QString getPathToPixmap(const QString & dir, const QString & dxfFile, const QString & dxfPath);
public slots:
- void setActionHandler(QG_ActionHandler * ah);
+ void setActionHandler(ActionHandler * ah);
void keyPressEvent(QKeyEvent * e);
void insert();
- void appendTree(QG_ListViewItem * item, QString directory);
+ void appendTree(ListViewItem * item, QString directory);
// void updatePreview(Q3ListViewItem * item);
void updatePreview(QListWidgetItem * item);
void escape();
private:
- QG_ActionHandler * actionHandler;
+ ActionHandler * actionHandler;
private:
Ui::LibraryWidget ui;
#include "lineangleoptions.h"
#include "actiondrawlineangle.h"
+#include "rs_debug.h"
#include "settings.h"
LineAngleOptions::LineAngleOptions(QToolBar * parent/*= 0*/, Qt::WindowFlags flags/*= 0*/):
#include "linebisectoroptions.h"
#include "actiondrawlinebisector.h"
+#include "rs_debug.h"
#include "settings.h"
LineBisectorOptions::LineBisectorOptions(QToolBar * parent/*= 0*/, Qt::WindowFlags flags/*= 0*/):
#include "rs.h"
#include "actiondrawline.h"
#include "actioninterface.h"
+#include "rs_debug.h"
LineOptions::LineOptions(QToolBar * parent/*= 0*/, Qt::WindowFlags flags/*= 0*/):
QWidget(parent, flags), action(NULL),
#include "lineparalleloptions.h"
#include "actiondrawlineparallel.h"
+#include "rs_debug.h"
#include "settings.h"
LineParallelOptions::LineParallelOptions(QToolBar * parent/*= 0*/, Qt::WindowFlags flags/*= 0*/):
#include "lineparallelthroughoptions.h"
#include "actiondrawlineparallelthrough.h"
+#include "rs_debug.h"
#include "settings.h"
LineParallelThroughOptions::LineParallelThroughOptions(QToolBar * parent/*= 0*/, Qt::WindowFlags flags/*= 0*/):
#include "linerelangleoptions.h"
#include "actiondrawlinerelangle.h"
+#include "rs_debug.h"
#include "settings.h"
LineRelAngleOptions::LineRelAngleOptions(QToolBar * parent/*= 0*/, Qt::WindowFlags flags/*= 0*/):
#include "moverotateoptions.h"
#include "actionmodifymoverotate.h"
+#include "rs_debug.h"
#include "settings.h"
MoveRotateOptions::MoveRotateOptions(QToolBar * parent/*= 0*/, Qt::WindowFlags flags/*= 0*/):
#include "roundoptions.h"
#include "actionmodifyround.h"
+#include "rs_debug.h"
#include "settings.h"
RoundOptions::RoundOptions(QToolBar * parent/*= 0*/, Qt::WindowFlags flags/*= 0*/):
#include "actiondrawspline.h"
#include "actioninterface.h"
+#include "rs_debug.h"
#include "settings.h"
SplineOptions::SplineOptions(QToolBar * parent/*= 0*/, Qt::WindowFlags flags/*= 0*/):
#include "actiondrawtext.h"
#include "actioninterface.h"
+#include "rs_debug.h"
TextOptions::TextOptions(QToolBar * parent/*= 0*/, Qt::WindowFlags flags/*= 0*/):
QWidget(parent, flags)
</widget>
</item>
<item row="0" column="1">
- <widget class="QG_ColorBox" name="cbColor" native="true">
+ <widget class="ColorBox" name="cbColor" native="true">
<property name="sizePolicy">
<sizepolicy hsizetype="MinimumExpanding" vsizetype="Preferred">
<horstretch>0</horstretch>
</widget>
</item>
<item row="1" column="1">
- <widget class="QG_WidthBox" name="cbWidth" native="true">
+ <widget class="WidthBox" name="cbWidth" native="true">
<property name="sizePolicy">
<sizepolicy hsizetype="MinimumExpanding" vsizetype="Preferred">
<horstretch>0</horstretch>
</widget>
</item>
<item row="2" column="1">
- <widget class="QG_LineTypeBox" name="cbLineType" native="true">
+ <widget class="LineTypeBox" name="cbLineType" native="true">
<property name="sizePolicy">
<sizepolicy hsizetype="MinimumExpanding" vsizetype="Preferred">
<horstretch>0</horstretch>
</widget>
<customwidgets>
<customwidget>
- <class>QG_ColorBox</class>
+ <class>ColorBox</class>
<extends>QWidget</extends>
- <header>qg_colorbox.h</header>
+ <header>colorbox.h</header>
</customwidget>
<customwidget>
- <class>QG_WidthBox</class>
+ <class>WidthBox</class>
<extends>QWidget</extends>
- <header>qg_widthbox.h</header>
+ <header>widthbox.h</header>
</customwidget>
<customwidget>
- <class>QG_LineTypeBox</class>
+ <class>LineTypeBox</class>
<extends>QWidget</extends>
- <header>qg_linetypebox.h</header>
+ <header>linetypebox.h</header>
</customwidget>
</customwidgets>
<includes>
- <include location="local">qg_linetypebox.h</include>
- <include location="local">qg_colorbox.h</include>
- <include location="local">qg_widthbox.h</include>
+ <include location="local">linetypebox.h</include>
+ <include location="local">colorbox.h</include>
+ <include location="local">widthbox.h</include>
</includes>
<resources/>
<connections/>
#include "rs_simulationcontrols.h"
#endif
-#include "qg_colorbox.h"
-#include "qg_filedialog.h"
-#include "qg_pentoolbar.h"
+#include "colorbox.h"
+#include "filedialog.h"
+#include "pentoolbar.h"
#include "recentfiles.h"
#include "cadtoolbar.h"
#include "cadtoolbarmain.h"
CreateQtActions(this);
RS_DEBUG->print("ApplicationWindow::ApplicationWindow: creating action handler");
- actionHandler = new QG_ActionHandler(this);
+ actionHandler = new ActionHandler(this);
RS_DEBUG->print("ApplicationWindow::ApplicationWindow: creating action handler: OK");
#ifdef RS_SCRIPTING
// zoomToolBar = new Q3ToolBar(this, "Zoom Operations");
zoomToolBar = addToolBar(tr("Zoom Operations"));
zoomToolBar->setObjectName("zoom");
- penToolBar = new QG_PenToolBar(this, "Pen Selection");
+ penToolBar = new PenToolBar(this, "Pen Selection");
penToolBar->setObjectName("pen");
connect(penToolBar, SIGNAL(penChanged(RS_Pen)), this, SLOT(slotPenChanged(RS_Pen)));
// dw = new QDockWidget(QDockWidget::InDock, this, "Layer");
dw = new QDockWidget(tr("Layer List"), this);
dw->setObjectName("layer");
- layerWidget = new QG_LayerWidget(actionHandler, dw, "Layer");
+ layerWidget = new LayerWidget(actionHandler, dw, "Layer");
layerWidget->setFocusPolicy(Qt::NoFocus);
connect(layerWidget, SIGNAL(escape()), this, SLOT(slotFocus()));
connect(this, SIGNAL(windowsChanged(bool)), layerWidget, SLOT(setEnabled(bool)));
// dw = new QDockWidget(QDockWidget::InDock, this, "Block");
dw = new QDockWidget(tr("Block List"), this);
dw->setObjectName("block");
- blockWidget = new QG_BlockWidget(actionHandler, dw, "Block");
+ blockWidget = new BlockWidget(actionHandler, dw, "Block");
blockWidget->setFocusPolicy(Qt::NoFocus);
connect(blockWidget, SIGNAL(escape()), this, SLOT(slotFocus()));
connect(this, SIGNAL(windowsChanged(bool)), blockWidget, SLOT(setEnabled(bool)));
RS_DEBUG->print("ApplicationWindow::slotFileOpen() 001");
RS2::FormatType type = RS2::FormatUnknown;
RS_DEBUG->print("ApplicationWindow::slotFileOpen() 002");
- QString fileName = QG_FileDialog::getOpenFileName(this, &type);
+ QString fileName = FileDialog::getOpenFileName(this, &type);
RS_DEBUG->print("ApplicationWindow::slotFileOpen() 003");
slotFileOpen(fileName, type);
RS_DEBUG->print("ApplicationWindow::slotFileOpen(): OK");
/**
* @return Pointer to action handler. Implementation from QG_MainWindowInterface.
*/
-/*virtual*/ QG_ActionHandler * ApplicationWindow::getActionHandler()
+/*virtual*/ ActionHandler * ApplicationWindow::getActionHandler()
{
return actionHandler;
}
#include "rs_document.h"
#include "qc_dialogfactory.h"
#include "mdiwindow.h"
-#include "qg_actionhandler.h"
-#include "qg_blockwidget.h"
-#include "qg_layerwidget.h"
+#include "actionhandler.h"
+#include "blockwidget.h"
+#include "layerwidget.h"
#include "qg_mainwindowinterface.h"
-#include "qg_pentoolbar.h"
+#include "pentoolbar.h"
#include "cadtoolbar.h"
#include "commandwidget.h"
#include "librarywidget.h"
virtual RS_Document * getDocument();
virtual void createNewDocument(const QString & fileName = QString::null, RS_Document * doc = NULL);
virtual QMainWindow * GetMainWindow();
- virtual QG_ActionHandler * getActionHandler();
+ virtual ActionHandler * getActionHandler();
virtual void showSimulationControls();
//virtual QToolBar* createToolBar(const QString& name);
QC_DialogFactory * dialogFactory;
/** Layer list widget */
- QG_LayerWidget * layerWidget;
+ LayerWidget * layerWidget;
/** Block list widget */
- QG_BlockWidget * blockWidget;
+ BlockWidget * blockWidget;
/** Library browser widget */
LibraryWidget * libraryWidget;
#ifdef RS_CAM
RecentFiles * recentFiles;
/** Action handler. */
- QG_ActionHandler * actionHandler;
+ ActionHandler * actionHandler;
#ifdef RS_SCRIPTING
/** Scripting interface. */
QToolBar * zoomToolBar;
// Toolbar for selecting the current pen
- QG_PenToolBar * penToolBar;
+ PenToolBar * penToolBar;
// Toolbar for CAD tools
CadToolBar * cadToolBar;
#include "drawing.h"
#include "rs_eventhandler.h"
#include "exitdialog.h"
-#include "qg_filedialog.h"
+#include "filedialog.h"
#include "qg_graphicview.h"
// Class variable
cancelled = false;
RS2::FormatType t = RS2::FormatDXF;
- QString fn = QG_FileDialog::getSaveFileName(this, &t);
+ QString fn = FileDialog::getSaveFileName(this, &t);
if (document != NULL && !fn.isEmpty())
{
#define QC_MDIWINDOW_H
#include <QtGui>
-#include "qg_layerwidget.h"
-#include "qg_pentoolbar.h"
#include "rs_document.h"
+#include "layerwidget.h"
+#include "pentoolbar.h"
class RS_EventHandler;
class QG_GraphicView;
#include "qc_dialogfactory.h"
#include "applicationwindow.h"
+#include "rs_blocklist.h"
#include "qg_graphicview.h"
QC_DialogFactory::QC_DialogFactory(QWidget * parent, QToolBar * ow): QG_DialogFactory(parent, ow)
/**
* Constructor
*/
-QG_ActionHandler::QG_ActionHandler(QG_MainWindowInterface * mw)
+ActionHandler::ActionHandler(QG_MainWindowInterface * mw)
{
- RS_DEBUG->print("QG_ActionHandler::QG_ActionHandler");
+ RS_DEBUG->print("ActionHandler::ActionHandler");
mainWindow = mw;
snapFree = NULL;
restrictVertical = NULL;
lockRelativeZero = NULL;
- RS_DEBUG->print("QG_ActionHandler::QG_ActionHandler: OK");
+ RS_DEBUG->print("ActionHandler::ActionHandler: OK");
}
/**
* Destructor
*/
-QG_ActionHandler::~QG_ActionHandler()
+ActionHandler::~ActionHandler()
{
- RS_DEBUG->print("QG_ActionHandler::~QG_ActionHandler");
- RS_DEBUG->print("QG_ActionHandler::~QG_ActionHandler: OK");
+ RS_DEBUG->print("ActionHandler::~ActionHandler");
+ RS_DEBUG->print("ActionHandler::~ActionHandler: OK");
}
/**
* Kills all running selection actions. Called when a selection action
* is launched to reduce confusion.
*/
-void QG_ActionHandler::killSelectActions()
+void ActionHandler::killSelectActions()
{
GraphicView * gv = mainWindow->getGraphicView();
/**
* @return Current action or NULL.
*/
-ActionInterface * QG_ActionHandler::getCurrentAction()
+ActionInterface * ActionHandler::getCurrentAction()
{
GraphicView * gv = mainWindow->getGraphicView();
#if 0
Instead of the following giant switch statement, you could something like the following:
-ActionInterface * QG_ActionHandler::setCurrentAction(ActionInterface * action)
+ActionInterface * ActionHandler::setCurrentAction(ActionInterface * action)
{
GraphicView * gv = mainWindow->getGraphicView();
RS_Document * doc = mainWindow->getDocument();
*
* @return Pointer to the created action or NULL.
*/
-ActionInterface * QG_ActionHandler::setCurrentAction(RS2::ActionType id)
+ActionInterface * ActionHandler::setCurrentAction(RS2::ActionType id)
{
- RS_DEBUG->print("QG_ActionHandler::setCurrentAction()");
+ RS_DEBUG->print("ActionHandler::setCurrentAction()");
GraphicView * gv = mainWindow->getGraphicView();
RS_Document * doc = mainWindow->getDocument();
if (gv == NULL || doc == NULL)
{
RS_DEBUG->print(RS_Debug::D_WARNING,
- "QG_ActionHandler::setCurrentAction: graphic view or document is NULL");
+ "ActionHandler::setCurrentAction: graphic view or document is NULL");
return NULL;
}
default:
RS_DEBUG->print(RS_Debug::D_WARNING,
- "QG_ActionHandler::setCurrentAction(): No such action found.");
+ "ActionHandler::setCurrentAction(): No such action found.");
break;
}
if (a)
gv->setCurrentAction(a);
- RS_DEBUG->print("QG_ActionHandler::setCurrentAction(): OK");
+ RS_DEBUG->print("ActionHandler::setCurrentAction(): OK");
return a;
}
/**
* @return Available commands of the application or the current action.
*/
-QStringList QG_ActionHandler::getAvailableCommands()
+QStringList ActionHandler::getAvailableCommands()
{
ActionInterface * currentAction = getCurrentAction();
* false: the command is not known and was probably intended for a
* running action.
*/
-bool QG_ActionHandler::keycode(const QString & code)
+bool ActionHandler::keycode(const QString & code)
{
QString c = code.toLower();
* false: the command is not known and was probably intended for a
* running action.
*/
-bool QG_ActionHandler::command(const QString & cmd)
+bool ActionHandler::command(const QString & cmd)
{
- RS_DEBUG->print("QG_ActionHandler::command: %s", cmd.toLatin1().data());
+ RS_DEBUG->print("ActionHandler::command: %s", cmd.toLatin1().data());
QString c = cmd.toLower();
if (c == "\n")
if (gv)
gv->back();
- RS_DEBUG->print("QG_ActionHandler::command: back");
+ RS_DEBUG->print("ActionHandler::command: back");
return true;
}
if (gv)
{
- RS_DEBUG->print("QG_ActionHandler::command: trigger command event in graphic view");
+ RS_DEBUG->print("ActionHandler::command: trigger command event in graphic view");
gv->commandEvent(&e);
}
// it might be intended to launch a new command
if (!e.isAccepted())
{
- RS_DEBUG->print("QG_ActionHandler::command: convert cmd to action type");
+ RS_DEBUG->print("ActionHandler::command: convert cmd to action type");
// command for new action:
RS2::ActionType type = RS_COMMANDS->cmdToAction(cmd);
if (type != RS2::ActionNone)
{
- RS_DEBUG->print("QG_ActionHandler::command: setting current action");
+ RS_DEBUG->print("ActionHandler::command: setting current action");
setCurrentAction(type);
- RS_DEBUG->print("QG_ActionHandler::command: current action set");
+ RS_DEBUG->print("ActionHandler::command: current action set");
return true;
}
}
- RS_DEBUG->print("QG_ActionHandler::command: current action not set");
+ RS_DEBUG->print("ActionHandler::command: current action not set");
return false;
}
-//void QG_ActionHandler::slotFileNew() {
+//void ActionHandler::slotFileNew() {
// setCurrentAction(RS2::ActionFileNew);
//}
-void QG_ActionHandler::slotFileOpen()
+void ActionHandler::slotFileOpen()
{
setCurrentAction(RS2::ActionFileOpen);
}
/*
-void QG_ActionHandler::slotFileSave() {
+void ActionHandler::slotFileSave() {
setCurrentAction(RS2::ActionFileSave);
}
*/
-void QG_ActionHandler::slotFileSaveAs()
+void ActionHandler::slotFileSaveAs()
{
setCurrentAction(RS2::ActionFileSaveAs);
}
/*
-void QG_ActionHandler::slotFileClose()
+void ActionHandler::slotFileClose()
{
setCurrentAction(RS2::ActionFileClose);
}
-void QG_ActionHandler::slotFilePrint()
+void ActionHandler::slotFilePrint()
{
setCurrentAction(RS2::ActionFilePrint);
}
*/
-void QG_ActionHandler::slotZoomIn()
+void ActionHandler::slotZoomIn()
{
setCurrentAction(RS2::ActionZoomIn);
}
-void QG_ActionHandler::slotZoomOut()
+void ActionHandler::slotZoomOut()
{
setCurrentAction(RS2::ActionZoomOut);
}
-void QG_ActionHandler::slotZoomAuto()
+void ActionHandler::slotZoomAuto()
{
setCurrentAction(RS2::ActionZoomAuto);
}
-void QG_ActionHandler::slotZoomWindow()
+void ActionHandler::slotZoomWindow()
{
setCurrentAction(RS2::ActionZoomWindow);
}
-void QG_ActionHandler::slotZoomPan()
+void ActionHandler::slotZoomPan()
{
setCurrentAction(RS2::ActionZoomPan);
}
-void QG_ActionHandler::slotZoomPrevious()
+void ActionHandler::slotZoomPrevious()
{
setCurrentAction(RS2::ActionZoomPrevious);
}
-void QG_ActionHandler::slotZoomRedraw()
+void ActionHandler::slotZoomRedraw()
{
setCurrentAction(RS2::ActionZoomRedraw);
}
-void QG_ActionHandler::slotToolRegenerateDimensions()
+void ActionHandler::slotToolRegenerateDimensions()
{
setCurrentAction(RS2::ActionToolRegenerateDimensions);
}
-void QG_ActionHandler::slotEditUndo()
+void ActionHandler::slotEditUndo()
{
setCurrentAction(RS2::ActionEditUndo);
}
-void QG_ActionHandler::slotEditRedo()
+void ActionHandler::slotEditRedo()
{
setCurrentAction(RS2::ActionEditRedo);
}
-void QG_ActionHandler::slotEditCut()
+void ActionHandler::slotEditCut()
{
setCurrentAction(RS2::ActionEditCut);
}
-void QG_ActionHandler::slotEditCopy()
+void ActionHandler::slotEditCopy()
{
setCurrentAction(RS2::ActionEditCopy);
}
-void QG_ActionHandler::slotEditPaste()
+void ActionHandler::slotEditPaste()
{
setCurrentAction(RS2::ActionEditPaste);
}
-void QG_ActionHandler::slotSelectSingle()
+void ActionHandler::slotSelectSingle()
{
setCurrentAction(RS2::ActionSelectSingle);
}
-void QG_ActionHandler::slotSelectContour()
+void ActionHandler::slotSelectContour()
{
setCurrentAction(RS2::ActionSelectContour);
}
-void QG_ActionHandler::slotSelectWindow()
+void ActionHandler::slotSelectWindow()
{
setCurrentAction(RS2::ActionSelectWindow);
}
-void QG_ActionHandler::slotDeselectWindow()
+void ActionHandler::slotDeselectWindow()
{
setCurrentAction(RS2::ActionDeselectWindow);
}
-void QG_ActionHandler::slotSelectAll()
+void ActionHandler::slotSelectAll()
{
setCurrentAction(RS2::ActionSelectAll);
}
-void QG_ActionHandler::slotDeselectAll()
+void ActionHandler::slotDeselectAll()
{
setCurrentAction(RS2::ActionDeselectAll);
}
-void QG_ActionHandler::slotSelectInvert()
+void ActionHandler::slotSelectInvert()
{
setCurrentAction(RS2::ActionSelectInvert);
}
-void QG_ActionHandler::slotSelectIntersected()
+void ActionHandler::slotSelectIntersected()
{
setCurrentAction(RS2::ActionSelectIntersected);
}
-void QG_ActionHandler::slotDeselectIntersected()
+void ActionHandler::slotDeselectIntersected()
{
setCurrentAction(RS2::ActionDeselectIntersected);
}
-void QG_ActionHandler::slotSelectLayer()
+void ActionHandler::slotSelectLayer()
{
setCurrentAction(RS2::ActionSelectLayer);
}
-void QG_ActionHandler::slotDrawPoint()
+void ActionHandler::slotDrawPoint()
{
setCurrentAction(RS2::ActionDrawPoint);
}
-void QG_ActionHandler::slotDrawLine()
+void ActionHandler::slotDrawLine()
{
setCurrentAction(RS2::ActionDrawLine);
}
-void QG_ActionHandler::slotDrawLineAngle()
+void ActionHandler::slotDrawLineAngle()
{
setCurrentAction(RS2::ActionDrawLineAngle);
}
-void QG_ActionHandler::slotDrawLineHorizontal()
+void ActionHandler::slotDrawLineHorizontal()
{
setCurrentAction(RS2::ActionDrawLineHorizontal);
}
-void QG_ActionHandler::slotDrawLineHorVert()
+void ActionHandler::slotDrawLineHorVert()
{
setCurrentAction(RS2::ActionDrawLineHorVert);
}
-void QG_ActionHandler::slotDrawLineVertical()
+void ActionHandler::slotDrawLineVertical()
{
setCurrentAction(RS2::ActionDrawLineVertical);
}
-void QG_ActionHandler::slotDrawLineFree()
+void ActionHandler::slotDrawLineFree()
{
setCurrentAction(RS2::ActionDrawLineFree);
}
-void QG_ActionHandler::slotDrawLineParallel()
+void ActionHandler::slotDrawLineParallel()
{
setCurrentAction(RS2::ActionDrawLineParallel);
}
-void QG_ActionHandler::slotDrawLineParallelThrough()
+void ActionHandler::slotDrawLineParallelThrough()
{
setCurrentAction(RS2::ActionDrawLineParallelThrough);
}
-void QG_ActionHandler::slotDrawLineRectangle()
+void ActionHandler::slotDrawLineRectangle()
{
setCurrentAction(RS2::ActionDrawLineRectangle);
}
-void QG_ActionHandler::slotDrawLineBisector()
+void ActionHandler::slotDrawLineBisector()
{
setCurrentAction(RS2::ActionDrawLineBisector);
}
-void QG_ActionHandler::slotDrawLineTangent1()
+void ActionHandler::slotDrawLineTangent1()
{
setCurrentAction(RS2::ActionDrawLineTangent1);
}
-void QG_ActionHandler::slotDrawLineTangent2()
+void ActionHandler::slotDrawLineTangent2()
{
setCurrentAction(RS2::ActionDrawLineTangent2);
}
-void QG_ActionHandler::slotDrawLineOrthogonal()
+void ActionHandler::slotDrawLineOrthogonal()
{
setCurrentAction(RS2::ActionDrawLineOrthogonal);
}
-void QG_ActionHandler::slotDrawLineRelAngle()
+void ActionHandler::slotDrawLineRelAngle()
{
setCurrentAction(RS2::ActionDrawLineRelAngle);
}
-void QG_ActionHandler::slotDrawPolyline()
+void ActionHandler::slotDrawPolyline()
{
setCurrentAction(RS2::ActionDrawPolyline);
}
-void QG_ActionHandler::slotPolylineAdd()
+void ActionHandler::slotPolylineAdd()
{
setCurrentAction(RS2::ActionPolylineAdd);
}
-void QG_ActionHandler::slotPolylineAppend()
+void ActionHandler::slotPolylineAppend()
{
setCurrentAction(RS2::ActionPolylineAppend);
}
-void QG_ActionHandler::slotPolylineDel()
+void ActionHandler::slotPolylineDel()
{
setCurrentAction(RS2::ActionPolylineDel);
}
-void QG_ActionHandler::slotPolylineDelBetween()
+void ActionHandler::slotPolylineDelBetween()
{
setCurrentAction(RS2::ActionPolylineDelBetween);
}
-void QG_ActionHandler::slotPolylineTrim()
+void ActionHandler::slotPolylineTrim()
{
setCurrentAction(RS2::ActionPolylineTrim);
}
-void QG_ActionHandler::slotDrawLinePolygon()
+void ActionHandler::slotDrawLinePolygon()
{
setCurrentAction(RS2::ActionDrawLinePolygon);
}
-void QG_ActionHandler::slotDrawLinePolygon2()
+void ActionHandler::slotDrawLinePolygon2()
{
setCurrentAction(RS2::ActionDrawLinePolygon2);
}
-void QG_ActionHandler::slotDrawCircle()
+void ActionHandler::slotDrawCircle()
{
setCurrentAction(RS2::ActionDrawCircle);
}
-void QG_ActionHandler::slotDrawCircleCR()
+void ActionHandler::slotDrawCircleCR()
{
setCurrentAction(RS2::ActionDrawCircleCR);
}
-void QG_ActionHandler::slotDrawCircle2P()
+void ActionHandler::slotDrawCircle2P()
{
setCurrentAction(RS2::ActionDrawCircle2P);
}
-void QG_ActionHandler::slotDrawCircle3P()
+void ActionHandler::slotDrawCircle3P()
{
setCurrentAction(RS2::ActionDrawCircle3P);
}
-void QG_ActionHandler::slotDrawCircleParallel()
+void ActionHandler::slotDrawCircleParallel()
{
setCurrentAction(RS2::ActionDrawCircleParallel);
}
-void QG_ActionHandler::slotDrawArc()
+void ActionHandler::slotDrawArc()
{
setCurrentAction(RS2::ActionDrawArc);
}
-void QG_ActionHandler::slotDrawArc3P()
+void ActionHandler::slotDrawArc3P()
{
setCurrentAction(RS2::ActionDrawArc3P);
}
-void QG_ActionHandler::slotDrawArcParallel()
+void ActionHandler::slotDrawArcParallel()
{
setCurrentAction(RS2::ActionDrawArcParallel);
}
-void QG_ActionHandler::slotDrawArcTangential()
+void ActionHandler::slotDrawArcTangential()
{
setCurrentAction(RS2::ActionDrawArcTangential);
}
-void QG_ActionHandler::slotDrawEllipseAxis()
+void ActionHandler::slotDrawEllipseAxis()
{
setCurrentAction(RS2::ActionDrawEllipseAxis);
}
-void QG_ActionHandler::slotDrawEllipseArcAxis()
+void ActionHandler::slotDrawEllipseArcAxis()
{
setCurrentAction(RS2::ActionDrawEllipseArcAxis);
}
-void QG_ActionHandler::slotDrawSpline()
+void ActionHandler::slotDrawSpline()
{
setCurrentAction(RS2::ActionDrawSpline);
}
-void QG_ActionHandler::slotDrawText()
+void ActionHandler::slotDrawText()
{
setCurrentAction(RS2::ActionDrawText);
}
-void QG_ActionHandler::slotDrawHatch()
+void ActionHandler::slotDrawHatch()
{
setCurrentAction(RS2::ActionDrawHatch);
}
-void QG_ActionHandler::slotDrawImage()
+void ActionHandler::slotDrawImage()
{
setCurrentAction(RS2::ActionDrawImage);
}
-void QG_ActionHandler::slotDimAligned()
+void ActionHandler::slotDimAligned()
{
setCurrentAction(RS2::ActionDimAligned);
}
-void QG_ActionHandler::slotDimLinear()
+void ActionHandler::slotDimLinear()
{
setCurrentAction(RS2::ActionDimLinear);
}
-void QG_ActionHandler::slotDimLinearHor()
+void ActionHandler::slotDimLinearHor()
{
setCurrentAction(RS2::ActionDimLinearHor);
}
-void QG_ActionHandler::slotDimLinearVer()
+void ActionHandler::slotDimLinearVer()
{
setCurrentAction(RS2::ActionDimLinearVer);
}
-void QG_ActionHandler::slotDimRadial()
+void ActionHandler::slotDimRadial()
{
setCurrentAction(RS2::ActionDimRadial);
}
-void QG_ActionHandler::slotDimDiametric()
+void ActionHandler::slotDimDiametric()
{
setCurrentAction(RS2::ActionDimDiametric);
}
-void QG_ActionHandler::slotDimAngular()
+void ActionHandler::slotDimAngular()
{
setCurrentAction(RS2::ActionDimAngular);
}
-void QG_ActionHandler::slotDimLeader()
+void ActionHandler::slotDimLeader()
{
setCurrentAction(RS2::ActionDimLeader);
}
-void QG_ActionHandler::slotModifyAttributes()
+void ActionHandler::slotModifyAttributes()
{
setCurrentAction(RS2::ActionModifyAttributes);
}
-void QG_ActionHandler::slotModifyDelete()
+void ActionHandler::slotModifyDelete()
{
setCurrentAction(RS2::ActionModifyDelete);
}
-void QG_ActionHandler::slotModifyDeleteQuick()
+void ActionHandler::slotModifyDeleteQuick()
{
//setCurrentAction(RS2::ActionModifyDeleteQuick);
setCurrentAction(RS2::ActionModifyDeleteNoSelect);
}
-void QG_ActionHandler::slotModifyDeleteFree()
+void ActionHandler::slotModifyDeleteFree()
{
setCurrentAction(RS2::ActionModifyDeleteFree);
}
-void QG_ActionHandler::slotModifyMove()
+void ActionHandler::slotModifyMove()
{
setCurrentAction(RS2::ActionModifyMove);
}
-void QG_ActionHandler::slotModifyRotate()
+void ActionHandler::slotModifyRotate()
{
setCurrentAction(RS2::ActionModifyRotate);
}
-void QG_ActionHandler::slotModifyScale()
+void ActionHandler::slotModifyScale()
{
setCurrentAction(RS2::ActionModifyScale);
}
-void QG_ActionHandler::slotModifyStretch()
+void ActionHandler::slotModifyStretch()
{
setCurrentAction(RS2::ActionModifyStretch);
}
-void QG_ActionHandler::slotModifyBevel()
+void ActionHandler::slotModifyBevel()
{
setCurrentAction(RS2::ActionModifyBevel);
}
-void QG_ActionHandler::slotModifyRound()
+void ActionHandler::slotModifyRound()
{
setCurrentAction(RS2::ActionModifyRound);
}
-void QG_ActionHandler::slotModifyMirror()
+void ActionHandler::slotModifyMirror()
{
setCurrentAction(RS2::ActionModifyMirror);
}
-void QG_ActionHandler::slotModifyMoveRotate()
+void ActionHandler::slotModifyMoveRotate()
{
setCurrentAction(RS2::ActionModifyMoveRotate);
}
-void QG_ActionHandler::slotModifyRotate2()
+void ActionHandler::slotModifyRotate2()
{
setCurrentAction(RS2::ActionModifyRotate2);
}
-void QG_ActionHandler::slotModifyEntity()
+void ActionHandler::slotModifyEntity()
{
setCurrentAction(RS2::ActionModifyEntity);
}
-void QG_ActionHandler::slotModifyTrim()
+void ActionHandler::slotModifyTrim()
{
setCurrentAction(RS2::ActionModifyTrim);
}
-void QG_ActionHandler::slotModifyTrim2()
+void ActionHandler::slotModifyTrim2()
{
setCurrentAction(RS2::ActionModifyTrim2);
}
-void QG_ActionHandler::slotModifyTrimAmount()
+void ActionHandler::slotModifyTrimAmount()
{
setCurrentAction(RS2::ActionModifyTrimAmount);
}
-void QG_ActionHandler::slotModifyCut()
+void ActionHandler::slotModifyCut()
{
setCurrentAction(RS2::ActionModifyCut);
}
-void QG_ActionHandler::slotModifyExplodeText()
+void ActionHandler::slotModifyExplodeText()
{
setCurrentAction(RS2::ActionModifyExplodeText);
}
-void QG_ActionHandler::slotSnapFree()
+void ActionHandler::slotSnapFree()
{
disableSnaps();
setCurrentAction(RS2::ActionSnapFree);
}
-void QG_ActionHandler::slotSnapGrid()
+void ActionHandler::slotSnapGrid()
{
disableSnaps();
setCurrentAction(RS2::ActionSnapGrid);
}
-void QG_ActionHandler::slotSnapEndpoint()
+void ActionHandler::slotSnapEndpoint()
{
disableSnaps();
setCurrentAction(RS2::ActionSnapEndpoint);
}
-void QG_ActionHandler::slotSnapOnEntity()
+void ActionHandler::slotSnapOnEntity()
{
disableSnaps();
if (snapOnEntity)
setCurrentAction(RS2::ActionSnapOnEntity);
}
-void QG_ActionHandler::slotSnapCenter()
+void ActionHandler::slotSnapCenter()
{
disableSnaps();
setCurrentAction(RS2::ActionSnapCenter);
}
-void QG_ActionHandler::slotSnapMiddle()
+void ActionHandler::slotSnapMiddle()
{
disableSnaps();
setCurrentAction(RS2::ActionSnapMiddle);
}
-void QG_ActionHandler::slotSnapDist()
+void ActionHandler::slotSnapDist()
{
disableSnaps();
setCurrentAction(RS2::ActionSnapDist);
}
-void QG_ActionHandler::slotSnapIntersection()
+void ActionHandler::slotSnapIntersection()
{
disableSnaps();
setCurrentAction(RS2::ActionSnapIntersection);
}
-void QG_ActionHandler::slotSnapIntersectionManual()
+void ActionHandler::slotSnapIntersectionManual()
{
//disableSnaps();
/*if (snapIntersectionManual) {
setCurrentAction(RS2::ActionSnapIntersectionManual);
}
-void QG_ActionHandler::disableSnaps()
+void ActionHandler::disableSnaps()
{
if (snapFree)
snapFree->setChecked(false);
#endif
}
-void QG_ActionHandler::slotRestrictNothing()
+void ActionHandler::slotRestrictNothing()
{
disableRestrictions();
setCurrentAction(RS2::ActionRestrictNothing);
}
-void QG_ActionHandler::slotRestrictOrthogonal()
+void ActionHandler::slotRestrictOrthogonal()
{
disableRestrictions();
setCurrentAction(RS2::ActionRestrictOrthogonal);
}
-void QG_ActionHandler::slotRestrictHorizontal()
+void ActionHandler::slotRestrictHorizontal()
{
disableRestrictions();
setCurrentAction(RS2::ActionRestrictHorizontal);
}
-void QG_ActionHandler::slotRestrictVertical()
+void ActionHandler::slotRestrictVertical()
{
disableRestrictions();
setCurrentAction(RS2::ActionRestrictVertical);
}
-void QG_ActionHandler::disableRestrictions()
+void ActionHandler::disableRestrictions()
{
if (restrictNothing)
restrictNothing->setChecked(false);
* Updates the snap mode for the current document from the selected menu.
* Used after the active window changed.
*/
-void QG_ActionHandler::updateSnapMode()
+void ActionHandler::updateSnapMode()
{
if (snapFree && snapFree->isChecked())
slotSnapFree();
slotLockRelativeZero(lockRelativeZero->isChecked());
}
-void QG_ActionHandler::slotSetRelativeZero()
+void ActionHandler::slotSetRelativeZero()
{
setCurrentAction(RS2::ActionSetRelativeZero);
}
-void QG_ActionHandler::slotLockRelativeZero(bool on)
+void ActionHandler::slotLockRelativeZero(bool on)
{
if (lockRelativeZero)
lockRelativeZero->setChecked(on);
#endif
}
-void QG_ActionHandler::slotInfoInside()
+void ActionHandler::slotInfoInside()
{
setCurrentAction(RS2::ActionInfoInside);
}
-void QG_ActionHandler::slotInfoDist()
+void ActionHandler::slotInfoDist()
{
setCurrentAction(RS2::ActionInfoDist);
}
-void QG_ActionHandler::slotInfoDist2()
+void ActionHandler::slotInfoDist2()
{
setCurrentAction(RS2::ActionInfoDist2);
}
-void QG_ActionHandler::slotInfoAngle()
+void ActionHandler::slotInfoAngle()
{
setCurrentAction(RS2::ActionInfoAngle);
}
-void QG_ActionHandler::slotInfoTotalLength()
+void ActionHandler::slotInfoTotalLength()
{
setCurrentAction(RS2::ActionInfoTotalLength);
}
-void QG_ActionHandler::slotInfoArea()
+void ActionHandler::slotInfoArea()
{
setCurrentAction(RS2::ActionInfoArea);
}
-void QG_ActionHandler::slotLayersDefreezeAll()
+void ActionHandler::slotLayersDefreezeAll()
{
setCurrentAction(RS2::ActionLayersDefreezeAll);
}
-void QG_ActionHandler::slotLayersFreezeAll()
+void ActionHandler::slotLayersFreezeAll()
{
setCurrentAction(RS2::ActionLayersFreezeAll);
}
-void QG_ActionHandler::slotLayersAdd()
+void ActionHandler::slotLayersAdd()
{
setCurrentAction(RS2::ActionLayersAdd);
}
-void QG_ActionHandler::slotLayersRemove()
+void ActionHandler::slotLayersRemove()
{
setCurrentAction(RS2::ActionLayersRemove);
}
-void QG_ActionHandler::slotLayersEdit()
+void ActionHandler::slotLayersEdit()
{
setCurrentAction(RS2::ActionLayersEdit);
}
-void QG_ActionHandler::slotLayersToggleView()
+void ActionHandler::slotLayersToggleView()
{
setCurrentAction(RS2::ActionLayersToggleView);
}
-void QG_ActionHandler::slotLayersToggleLock()
+void ActionHandler::slotLayersToggleLock()
{
setCurrentAction(RS2::ActionLayersToggleLock);
}
-void QG_ActionHandler::slotBlocksDefreezeAll()
+void ActionHandler::slotBlocksDefreezeAll()
{
setCurrentAction(RS2::ActionBlocksDefreezeAll);
}
-void QG_ActionHandler::slotBlocksFreezeAll()
+void ActionHandler::slotBlocksFreezeAll()
{
setCurrentAction(RS2::ActionBlocksFreezeAll);
}
-void QG_ActionHandler::slotBlocksAdd()
+void ActionHandler::slotBlocksAdd()
{
setCurrentAction(RS2::ActionBlocksAdd);
}
-void QG_ActionHandler::slotBlocksRemove()
+void ActionHandler::slotBlocksRemove()
{
setCurrentAction(RS2::ActionBlocksRemove);
}
-void QG_ActionHandler::slotBlocksAttributes()
+void ActionHandler::slotBlocksAttributes()
{
setCurrentAction(RS2::ActionBlocksAttributes);
}
-void QG_ActionHandler::slotBlocksEdit()
+void ActionHandler::slotBlocksEdit()
{
setCurrentAction(RS2::ActionBlocksEdit);
}
-void QG_ActionHandler::slotBlocksInsert()
+void ActionHandler::slotBlocksInsert()
{
setCurrentAction(RS2::ActionBlocksInsert);
}
-void QG_ActionHandler::slotBlocksToggleView()
+void ActionHandler::slotBlocksToggleView()
{
setCurrentAction(RS2::ActionBlocksToggleView);
}
-void QG_ActionHandler::slotBlocksCreate()
+void ActionHandler::slotBlocksCreate()
{
setCurrentAction(RS2::ActionBlocksCreate);
}
-void QG_ActionHandler::slotBlocksExplode()
+void ActionHandler::slotBlocksExplode()
{
setCurrentAction(RS2::ActionBlocksExplode);
}
-void QG_ActionHandler::slotOptionsDrawing()
+void ActionHandler::slotOptionsDrawing()
{
setCurrentAction(RS2::ActionOptionsDrawing);
}
-void QG_ActionHandler::slotCamExportAuto()
+void ActionHandler::slotCamExportAuto()
{
#ifdef RS_CAM
setCurrentAction(RS2::ActionCamExportAuto);
#endif
}
-void QG_ActionHandler::slotCamReorder()
+void ActionHandler::slotCamReorder()
{
#ifdef RS_CAM
setCurrentAction(RS2::ActionCamReorder);
#endif
}
-void QG_ActionHandler::slotFocusNormal()
+void ActionHandler::slotFocusNormal()
{
//QG_GraphicView* gv = mainWindow->getGraphicView();
//if (gv) {
//}
}
-void QG_ActionHandler::setActionSnapFree(QAction * a)
+void ActionHandler::setActionSnapFree(QAction * a)
{
snapFree = a;
}
-void QG_ActionHandler::setActionSnapGrid(QAction * a)
+void ActionHandler::setActionSnapGrid(QAction * a)
{
snapGrid = a;
}
-void QG_ActionHandler::setActionSnapEndpoint(QAction * a)
+void ActionHandler::setActionSnapEndpoint(QAction * a)
{
snapEndpoint = a;
}
-void QG_ActionHandler::setActionSnapOnEntity(QAction * a)
+void ActionHandler::setActionSnapOnEntity(QAction * a)
{
snapOnEntity = a;
}
-void QG_ActionHandler::setActionSnapCenter(QAction * a)
+void ActionHandler::setActionSnapCenter(QAction * a)
{
snapCenter = a;
}
-void QG_ActionHandler::setActionSnapMiddle(QAction * a)
+void ActionHandler::setActionSnapMiddle(QAction * a)
{
snapMiddle = a;
}
-void QG_ActionHandler::setActionSnapDist(QAction * a)
+void ActionHandler::setActionSnapDist(QAction * a)
{
snapDist = a;
}
-void QG_ActionHandler::setActionSnapIntersection(QAction * a)
+void ActionHandler::setActionSnapIntersection(QAction * a)
{
snapIntersection = a;
}
-void QG_ActionHandler::setActionSnapIntersectionManual(QAction * a)
+void ActionHandler::setActionSnapIntersectionManual(QAction * a)
{
snapIntersectionManual = a;
}
-void QG_ActionHandler::setActionRestrictNothing(QAction * a)
+void ActionHandler::setActionRestrictNothing(QAction * a)
{
restrictNothing = a;
}
-void QG_ActionHandler::setActionRestrictOrthogonal(QAction * a)
+void ActionHandler::setActionRestrictOrthogonal(QAction * a)
{
restrictOrthogonal = a;
}
-void QG_ActionHandler::setActionRestrictHorizontal(QAction * a)
+void ActionHandler::setActionRestrictHorizontal(QAction * a)
{
restrictHorizontal = a;
}
-void QG_ActionHandler::setActionRestrictVertical(QAction * a)
+void ActionHandler::setActionRestrictVertical(QAction * a)
{
restrictVertical = a;
}
-void QG_ActionHandler::setActionLockRelativeZero(QAction * a)
+void ActionHandler::setActionLockRelativeZero(QAction * a)
{
lockRelativeZero = a;
}
* Creates link to snap tool bar so we can update the button
* state if the snapping action changes.
*/
-void QG_ActionHandler::setCadToolBarSnap(CadToolBarSnap * tb)
+void ActionHandler::setCadToolBarSnap(CadToolBarSnap * tb)
{
cadToolBarSnap = tb;
}
/**
* This class can trigger actions (from menus, buttons, ...).
*/
-class QG_ActionHandler: public QObject
+class ActionHandler: public QObject
{
Q_OBJECT
public:
- QG_ActionHandler(QG_MainWindowInterface * mw);
- virtual ~QG_ActionHandler();
+ ActionHandler(QG_MainWindowInterface * mw);
+ virtual ~ActionHandler();
ActionInterface * getCurrentAction();
ActionInterface * setCurrentAction(RS2::ActionType id);
/**
* Constructor.
*/
-QG_BlockWidget::QG_BlockWidget(QG_ActionHandler * ah, QWidget * parent, const char * name, Qt::WFlags f):
+BlockWidget::BlockWidget(ActionHandler * ah, QWidget * parent, const char * name, Qt::WFlags f):
// QWidget(parent, name, f),
QWidget(parent, f),
pxmVisible(":/res/visibleblock.xpm"),
/**
* Destructor
*/
-QG_BlockWidget::~QG_BlockWidget()
+BlockWidget::~BlockWidget()
{
delete listBox;
}
-void QG_BlockWidget::setBlockList(RS_BlockList * blockList)
+void BlockWidget::setBlockList(RS_BlockList * blockList)
{
this->blockList = blockList;
update();
}
-RS_BlockList * QG_BlockWidget::getBlockList()
+RS_BlockList * BlockWidget::getBlockList()
{
return blockList;
}
/**
* Updates the block box from the blocks in the graphic.
*/
-void QG_BlockWidget::update()
+void BlockWidget::update()
{
- RS_DEBUG->print("QG_BlockWidget::update()");
+ RS_DEBUG->print("BlockWidget::update()");
#warning "!!!"
// int yPos = listBox->contentsY();
if (!blockList)
{
- RS_DEBUG->print("QG_BlockWidget::update(): blockList is NULL");
+ RS_DEBUG->print("BlockWidget::update(): blockList is NULL");
return;
}
//highlightBlock(blockList->getActiveBlock());
//listBox->setContentsPos(0, yPos);
- RS_DEBUG->print("QG_BlockWidget::update() done");
+ RS_DEBUG->print("BlockWidget::update() done");
}
/**
* Highlights (activates) the given block and makes it
* the active block in the blocklist.
*/
-void QG_BlockWidget::highlightBlock(RS_Block * block)
+void BlockWidget::highlightBlock(RS_Block * block)
{
- RS_DEBUG->print("QG_BlockWidget::highlightBlock()");
+ RS_DEBUG->print("BlockWidget::highlightBlock()");
if (!block || !listBox)
return;
}
}
-/*virtual*/ void QG_BlockWidget::blockAdded(RS_Block *)
+/*virtual*/ void BlockWidget::blockAdded(RS_Block *)
{
update();
}
-/*virtual*/ void QG_BlockWidget::blockEdited(RS_Block *)
+/*virtual*/ void BlockWidget::blockEdited(RS_Block *)
{
update();
}
-/*virtual*/ void QG_BlockWidget::blockRemoved(RS_Block *)
+/*virtual*/ void BlockWidget::blockRemoved(RS_Block *)
{
update();
}
-/*virtual*/ void QG_BlockWidget::blockToggled(RS_Block *)
+/*virtual*/ void BlockWidget::blockToggled(RS_Block *)
{
update();
}
* an item is double clicked.
*/
/*
-void QG_BlockWidget::slotToggleView(QListBoxItem* item) {
- RS_DEBUG->print("QG_BlockWidget::slotToggleView()");
+void BlockWidget::slotToggleView(QListBoxItem* item) {
+ RS_DEBUG->print("BlockWidget::slotToggleView()");
if (item==NULL || blockList==NULL) {
return;
/**
* Called when the user activates (highlights) a block.
*/
-//void QG_BlockWidget::slotActivated(const QString & blockName)
-void QG_BlockWidget::slotActivated(void)
+//void BlockWidget::slotActivated(const QString & blockName)
+void BlockWidget::slotActivated(void)
{
QString blockName = listBox->currentItem()->text();
- RS_DEBUG->print("QG_BlockWidget::slotActivated(): %s", blockName.toLatin1().data());
+ RS_DEBUG->print("BlockWidget::slotActivated(): %s", blockName.toLatin1().data());
if (!blockList)
return;
/**
* Called for every mouse click.
*/
-//void QG_BlockWidget::slotMouseButtonClicked(int /*button*/, Q3ListBoxItem* item, const QPoint& pos)
-void QG_BlockWidget::slotMouseButtonClicked(QListWidgetItem * item)
+//void BlockWidget::slotMouseButtonClicked(int /*button*/, Q3ListBoxItem* item, const QPoint& pos)
+void BlockWidget::slotMouseButtonClicked(QListWidgetItem * item)
{
QPoint p = mapFromGlobal(QCursor::pos());
RS_Block * b = lastBlock;
/**
* Shows a context menu for the block widget. Launched with a right click.
*/
-void QG_BlockWidget::contextMenuEvent(QContextMenuEvent * e)
+void BlockWidget::contextMenuEvent(QContextMenuEvent * e)
{
#if 0
//QListBoxItem* item = listBox->selectedItem();
/**
* Escape releases focus.
*/
-void QG_BlockWidget::keyPressEvent(QKeyEvent * e)
+void BlockWidget::keyPressEvent(QKeyEvent * e)
{
switch (e->key())
{
class RS_Block;
class RS_BlockList;
-class QG_ActionHandler;
+class ActionHandler;
/**
* This is the Qt implementation of a widget which can view a
* block list.
*/
-class QG_BlockWidget: public QWidget
+class BlockWidget: public QWidget
{
Q_OBJECT
public:
- QG_BlockWidget(QG_ActionHandler * ah, QWidget * parent,
+ BlockWidget(ActionHandler * ah, QWidget * parent,
const char * name = 0, Qt::WFlags f = 0);
- ~QG_BlockWidget();
+ ~BlockWidget();
void setBlockList(RS_BlockList * blockList);
RS_BlockList * getBlockList();
QPixmap pxmInsert;
QPixmap pxmDefreezeAll;
QPixmap pxmFreezeAll;
- QG_ActionHandler * actionHandler;
+ ActionHandler * actionHandler;
};
#endif // __BLOCKWIDGET_H__
* Default Constructor. You must call init manually if you choose
* to use this constructor.
*/
-QG_ColorBox::QG_ColorBox(QWidget * parent/*= 0*/, const char */*name = 0*/):
+ColorBox::ColorBox(QWidget * parent/*= 0*/, const char */*name = 0*/):
QComboBox(parent)
{
showByLayer = false;
*
* @param showByLayer true: Show attribute ByLayer, ByBlock.
*/
-QG_ColorBox::QG_ColorBox(bool showByLayer, bool showUnchanged, QWidget * parent/*= 0*/,
+ColorBox::ColorBox(bool showByLayer, bool showUnchanged, QWidget * parent/*= 0*/,
const char */*name = 0*/): QComboBox(parent)
{
unchanged = false;
/**
* Destructor
*/
-QG_ColorBox::~QG_ColorBox()
+ColorBox::~ColorBox()
{
}
-RS_Color QG_ColorBox::getColor()
+RS_Color ColorBox::getColor()
{
return currentColor;
}
*
* @param showByLayer true: Show attribute ByLayer, ByBlock.
*/
-void QG_ColorBox::init(bool showByLayer, bool showUnchanged)
+void ColorBox::init(bool showByLayer, bool showUnchanged)
{
this->showByLayer = showByLayer;
this->showUnchanged = showUnchanged;
slotColorChanged(currentIndex());
}
-bool QG_ColorBox::isUnchanged()
+bool ColorBox::isUnchanged()
{
return unchanged;
}
/**
* Sets the color shown in the combobox to the given color.
*/
-void QG_ColorBox::setColor(const RS_Color & color)
+void ColorBox::setColor(const RS_Color & color)
{
//#warning "!!! Color is being misreported here !!!"
/*
* Sets the color of the pixmap next to the "By Layer" item
* to the given color.
*/
-void QG_ColorBox::setLayerColor(const RS_Color & color)
+void ColorBox::setLayerColor(const RS_Color & color)
{
if (showByLayer)
{
* offers a dialog to the user that allows him/ her to
* choose an individual color.
*/
-void QG_ColorBox::slotColorChanged(int index)
+void ColorBox::slotColorChanged(int index)
{
currentColor.resetFlags();
/**
* A combobox for choosing a color.
*/
-class QG_ColorBox: public QComboBox
+class ColorBox: public QComboBox
{
Q_OBJECT
public:
- QG_ColorBox(QWidget * parent = 0, const char * name = 0);
- QG_ColorBox(bool showByLayer, bool showUnchanged,
+ ColorBox(QWidget * parent = 0, const char * name = 0);
+ ColorBox(bool showByLayer, bool showUnchanged,
QWidget * parent = 0, const char * name = 0);
- virtual ~QG_ColorBox();
+ virtual ~ColorBox();
RS_Color getColor();
void setColor(const RS_Color & color);
* Default Constructor. You must call init manually if you choose
* to use this constructor.
*/
-QG_CommandEdit::QG_CommandEdit(QWidget * parent, const char */*name*/):
+CommandEdit::CommandEdit(QWidget * parent, const char */*name*/):
// QLineEdit(parent, name)
QLineEdit(parent)
{
/**
* Destructor
*/
-QG_CommandEdit::~QG_CommandEdit()
+CommandEdit::~CommandEdit()
{
it = 0;
}
/**
* Bypass for key press events from the tab key.
*/
-bool QG_CommandEdit::event(QEvent * e)
+bool CommandEdit::event(QEvent * e)
{
if (e->type() == QEvent::KeyPress)
{
/**
* History (arrow key up/down) support, tab.
*/
-void QG_CommandEdit::keyPressEvent(QKeyEvent * e)
+void CommandEdit::keyPressEvent(QKeyEvent * e)
{
switch (e->key())
{
}
}
-void QG_CommandEdit::focusInEvent(QFocusEvent * e)
+void CommandEdit::focusInEvent(QFocusEvent * e)
{
emit focusIn();
QLineEdit::focusInEvent(e);
}
-void QG_CommandEdit::focusOutEvent(QFocusEvent * e)
+void CommandEdit::focusOutEvent(QFocusEvent * e)
{
emit focusOut();
QLineEdit::focusOutEvent(e);
* A command line edit with some typical console features
* (uparrow for the history, tab, ..).
*/
-class QG_CommandEdit: public QLineEdit
+class CommandEdit: public QLineEdit
{
Q_OBJECT
public:
- QG_CommandEdit(QWidget * parent = 0, const char * name = 0);
- virtual ~QG_CommandEdit();
+ CommandEdit(QWidget * parent = 0, const char * name = 0);
+ virtual ~CommandEdit();
protected:
virtual bool event(QEvent * e);
* @return File name with path and extension to determine the file type
* or an empty string if the dialog was cancelled.
*/
-QString QG_FileDialog::getSaveFileName(QWidget * parent, RS2::FormatType * type)
+QString FileDialog::getSaveFileName(QWidget * parent, RS2::FormatType * type)
{
// read default settings:
settings.beginGroup("Paths");
* @return File name with path and extension to determine the file type
* or an empty string if the dialog was cancelled.
*/
-QString QG_FileDialog::getOpenFileName(QWidget * parent, RS2::FormatType * type)
+QString FileDialog::getOpenFileName(QWidget * parent, RS2::FormatType * type)
{
- RS_DEBUG->print("QG_FileDialog::getOpenFileName");
+ RS_DEBUG->print("FileDialog::getOpenFileName");
// read default settings:
settings.beginGroup("/Paths");
QG_GraphicView * prev = new QG_GraphicView(parent);
prev->setContainer(gr);
prev->setBorders(1, 1, 1, 1);
-#warning "!!! QG_FileDialog: Commented out Qt3 previews !!!"
+#warning "!!! FileDialog: Commented out Qt3 previews !!!"
// fileDlg->setContentsPreviewEnabled(true);
// fileDlg->setContentsPreview(prev, prev);
settings.endGroup();
}
- RS_DEBUG->print("QG_FileDialog::getOpenFileName: fileName: %s", fn.toLatin1().data());
- RS_DEBUG->print("QG_FileDialog::getOpenFileName: OK");
+ RS_DEBUG->print("FileDialog::getOpenFileName: fileName: %s", fn.toLatin1().data());
+ RS_DEBUG->print("FileDialog::getOpenFileName: OK");
delete prev;
delete gr;
/**
* File Open / Save dialogs.
*/
-class QG_FileDialog
+class FileDialog
{
public:
- //QG_FileDialog(QWidget* parent=0, const char* name=0, WFlags f=0);
- //virtual ~QG_FileDialog();
+ //FileDialog(QWidget* parent=0, const char* name=0, WFlags f=0);
+ //virtual ~FileDialog();
static QString getOpenFileName(QWidget * parent, RS2::FormatType * type = NULL);
static QString getSaveFileName(QWidget * parent, RS2::FormatType * type = NULL);
* Default Constructor. You must call init manually if you choose
* to use this constructor.
*/
-QG_FontBox::QG_FontBox(QWidget * parent/*= 0*/, const char */*name = 0*/): QComboBox(parent)
+FontBox::FontBox(QWidget * parent/*= 0*/, const char */*name = 0*/): QComboBox(parent)
{
}
/**
* Destructor
*/
-QG_FontBox::~QG_FontBox()
+FontBox::~FontBox()
{
}
* Initialisation (called from constructor or manually but only
* once).
*/
-void QG_FontBox::init()
+void FontBox::init()
{
QStringList fonts;
slotFontChanged(currentIndex());
}
-RS_Font * QG_FontBox::getFont()
+RS_Font * FontBox::getFont()
{
return currentFont;
}
/**
* Sets the currently selected width item to the given width.
*/
-void QG_FontBox::setFont(const QString & fName)
+void FontBox::setFont(const QString & fName)
{
- RS_DEBUG->print("QG_FontBox::setFont %s\n", fName.toLatin1().data());
+ RS_DEBUG->print("FontBox::setFont %s\n", fName.toLatin1().data());
// setCurrentText(fName);
setItemText(currentIndex(), fName);
// slotFontChanged(currentItem());
* Called when the font has changed. This method
* sets the current font to the value chosen.
*/
-void QG_FontBox::slotFontChanged(int index)
+void FontBox::slotFontChanged(int index)
{
- RS_DEBUG->print("QG_FontBox::slotFontChanged %d\n", index);
+ RS_DEBUG->print("FontBox::slotFontChanged %d\n", index);
currentFont = RS_FONTLIST->requestFont(currentText());
if (currentFont != NULL)
/**
* A combobox for choosing a font name.
*/
-class QG_FontBox: public QComboBox
+class FontBox: public QComboBox
{
Q_OBJECT
public:
- QG_FontBox(QWidget * parent = 0, const char * name = 0);
- virtual ~QG_FontBox();
+ FontBox(QWidget * parent = 0, const char * name = 0);
+ virtual ~FontBox();
void init();
RS_Font * getFont();
* Default Constructor. You must call init manually before using
* this class.
*/
-QG_LayerBox::QG_LayerBox(QWidget * parent, const char */*name*/): QComboBox(parent)
+LayerBox::LayerBox(QWidget * parent, const char */*name*/): QComboBox(parent)
{
showByBlock = false;
showUnchanged = false;
/**
* Destructor
*/
-QG_LayerBox::~QG_LayerBox()
+LayerBox::~LayerBox()
{
}
-RS_Layer * QG_LayerBox::getLayer()
+RS_Layer * LayerBox::getLayer()
{
return currentLayer;
}
* available.
* @param showByBlock true: Show attribute ByBlock.
*/
-void QG_LayerBox::init(RS_LayerList & layerList, bool showByBlock, bool showUnchanged)
+void LayerBox::init(RS_LayerList & layerList, bool showByBlock, bool showUnchanged)
{
this->showByBlock = showByBlock;
this->showUnchanged = showUnchanged;
/**
* Sets the layer shown in the combobox to the given layer.
*/
-void QG_LayerBox::setLayer(RS_Layer & layer)
+void LayerBox::setLayer(RS_Layer & layer)
{
currentLayer = &layer;
/**
* Sets the layer shown in the combobox to the given layer.
*/
-void QG_LayerBox::setLayer(QString & layer)
+void LayerBox::setLayer(QString & layer)
{
//if (layer.getName()=="ByBlock" && showByBlock) {
// setCurrentItem(0);
//}
}
-bool QG_LayerBox::isUnchanged()
+bool LayerBox::isUnchanged()
{
return unchanged;
}
* offers a dialog to the user that allows him/ her to
* choose an individual color.
*/
-void QG_LayerBox::slotLayerChanged(int index)
+void LayerBox::slotLayerChanged(int index)
{
//currentLayer.resetFlags();
/**
* A combobox for choosing a layer.
*/
-class QG_LayerBox: public QComboBox
+class LayerBox: public QComboBox
{
Q_OBJECT
public:
- QG_LayerBox(QWidget * parent = 0, const char * name = 0);
- virtual ~QG_LayerBox();
+ LayerBox(QWidget * parent = 0, const char * name = 0);
+ virtual ~LayerBox();
RS_Layer * getLayer();
void setLayer(RS_Layer & layer);
/**
* Constructor.
*/
-QG_LayerWidget::QG_LayerWidget(QG_ActionHandler * ah, QWidget * parent,
+LayerWidget::LayerWidget(ActionHandler * ah, QWidget * parent,
const char * name, Qt::WindowFlags f):
QWidget(parent, f),
pxmLayerStatus00(":/res/layerstatus_00.xpm"),
/**
* Destructor
*/
-QG_LayerWidget::~QG_LayerWidget()
+LayerWidget::~LayerWidget()
{
delete listBox;
//delete pxmVisible;
* it exists.
* false: don't show special layer "ByBlock"
*/
-void QG_LayerWidget::setLayerList(RS_LayerList * layerList, bool showByBlock)
+void LayerWidget::setLayerList(RS_LayerList * layerList, bool showByBlock)
{
this->layerList = layerList;
this->showByBlock = showByBlock;
/**
* Updates the layer box from the layers in the graphic.
*/
-void QG_LayerWidget::update()
+void LayerWidget::update()
{
- RS_DEBUG->print("QG_LayerWidget::update() begin");
+ RS_DEBUG->print("LayerWidget::update() begin");
#warning "!!!"
// int yPos = listBox->contentsY();
if (layerList != NULL)
activeLayer = layerList->getActive();
- RS_DEBUG->print("QG_LayerWidget::update() clearing listBox");
+ RS_DEBUG->print("LayerWidget::update() clearing listBox");
listBox->clear();
if (layerList == NULL)
{
- RS_DEBUG->print("QG_LayerWidget::update() abort");
+ RS_DEBUG->print("LayerWidget::update() abort");
return;
}
- RS_DEBUG->print("QG_LayerWidget::update() filling in layers");
+ RS_DEBUG->print("LayerWidget::update() filling in layers");
for(uint i=0; i<layerList->count(); ++i)
{
}
}
- RS_DEBUG->print("QG_LayerWidget::update() sorting");
+ RS_DEBUG->print("LayerWidget::update() sorting");
// listBox->sort();
listBox->sortItems(Qt::AscendingOrder);
- RS_DEBUG->print("QG_LayerWidget::update() reactivating current layer");
+ RS_DEBUG->print("LayerWidget::update() reactivating current layer");
RS_Layer * l = lastLayer;
highlightLayer(activeLayer);
#warning "!!!"
// listBox->setContentsPos(0, yPos);
- RS_DEBUG->print("QG_LayerWidget::update() end");
+ RS_DEBUG->print("LayerWidget::update() end");
}
/**
* Highlights (activates) the given layer and makes it
* the active layer in the layerlist.
*/
-void QG_LayerWidget::highlightLayer(RS_Layer * layer)
+void LayerWidget::highlightLayer(RS_Layer * layer)
{
- RS_DEBUG->print("QG_LayerWidget::highlightLayer() begin");
+ RS_DEBUG->print("LayerWidget::highlightLayer() begin");
if (layer == NULL || layerList == NULL)
{
- RS_DEBUG->print("QG_LayerWidget::highlightLayer() abort");
+ RS_DEBUG->print("LayerWidget::highlightLayer() abort");
return;
}
QString name = layer->getName();
highlightLayer(name);
- RS_DEBUG->print("QG_LayerWidget::highlightLayer() end");
+ RS_DEBUG->print("LayerWidget::highlightLayer() end");
}
/**
* Highlights (activates) the given layer and makes it
* the active layer in the layerlist.
*/
-void QG_LayerWidget::highlightLayer(const QString & name)
+void LayerWidget::highlightLayer(const QString & name)
{
- RS_DEBUG->print("QG_LayerWidget::highlightLayer(name) begin");
+ RS_DEBUG->print("LayerWidget::highlightLayer(name) begin");
if (layerList == NULL)
{
- RS_DEBUG->print("QG_LayerWidget::highlightLayer(name) abort");
+ RS_DEBUG->print("LayerWidget::highlightLayer(name) abort");
return;
}
}
}
- RS_DEBUG->print("QG_LayerWidget::highlightLayer(name) end");
+ RS_DEBUG->print("LayerWidget::highlightLayer(name) end");
}
-/*virtual*/ void QG_LayerWidget::layerActivated(RS_Layer * layer)
+/*virtual*/ void LayerWidget::layerActivated(RS_Layer * layer)
{
highlightLayer(layer);
}
-/*virtual*/ void QG_LayerWidget::layerAdded(RS_Layer * layer)
+/*virtual*/ void LayerWidget::layerAdded(RS_Layer * layer)
{
update();
highlightLayer(layer);
}
-/*virtual*/ void QG_LayerWidget::layerEdited(RS_Layer *)
+/*virtual*/ void LayerWidget::layerEdited(RS_Layer *)
{
update();
}
-/*virtual*/ void QG_LayerWidget::layerRemoved(RS_Layer *)
+/*virtual*/ void LayerWidget::layerRemoved(RS_Layer *)
{
update();
highlightLayer(layerList->at(0));
}
-/*virtual*/ void QG_LayerWidget::layerToggled(RS_Layer *)
+/*virtual*/ void LayerWidget::layerToggled(RS_Layer *)
{
update();
}
/**
* Called when the user activates (highlights) a layer.
*/
-//void QG_LayerWidget::slotActivated(const QString & layerName)
-void QG_LayerWidget::slotActivated(void)
+//void LayerWidget::slotActivated(const QString & layerName)
+void LayerWidget::slotActivated(void)
{
QString layerName = listBox->currentItem()->text();
- RS_DEBUG->print("QG_LayerWidget::slotActivated(): %s", layerName.toLatin1().data());
+ RS_DEBUG->print("LayerWidget::slotActivated(): %s", layerName.toLatin1().data());
if (layerList == NULL)
return;
/**
* Called for every mouse click.
*/
-//void QG_LayerWidget::slotMouseButtonClicked(int /*button*/, Q3ListBoxItem * item, const QPoint & pos)
-void QG_LayerWidget::slotMouseButtonClicked(QListWidgetItem * item)
+//void LayerWidget::slotMouseButtonClicked(int /*button*/, Q3ListBoxItem * item, const QPoint & pos)
+void LayerWidget::slotMouseButtonClicked(QListWidgetItem * item)
{
- RS_DEBUG->print("QG_LayerWidget::slotMouseButtonClicked()");
+ RS_DEBUG->print("LayerWidget::slotMouseButtonClicked()");
QPoint p = mapFromGlobal(QCursor::pos());
// only change state / no activation
RS_Layer * l = lastLayer;
/**
* Shows a context menu for the layer widget. Launched with a right click.
*/
-void QG_LayerWidget::contextMenuEvent(QContextMenuEvent * e)
+void LayerWidget::contextMenuEvent(QContextMenuEvent * e)
{
#warning "Needs porting to Qt4... !!! FIX !!!"
#if 0
/**
* Escape releases focus.
*/
-void QG_LayerWidget::keyPressEvent(QKeyEvent * e)
+void LayerWidget::keyPressEvent(QKeyEvent * e)
{
switch (e->key())
{
#include <QtGui>
-class QG_ActionHandler;
+class ActionHandler;
class RS_Layer;
class RS_LayerList;
* This is the Qt implementation of a widget which can view a
* layer list and provides a user interface for basic layer actions.
*/
-class QG_LayerWidget: public QWidget
+class LayerWidget: public QWidget
{
Q_OBJECT
public:
- QG_LayerWidget(QG_ActionHandler * ah, QWidget * parent,
+ LayerWidget(ActionHandler * ah, QWidget * parent,
const char * name = 0, Qt::WindowFlags f = 0);
- ~QG_LayerWidget();
+ ~LayerWidget();
void setLayerList(RS_LayerList *, bool showByBlock);
void update();
QPixmap pxmEdit;
QPixmap pxmDefreezeAll;
QPixmap pxmFreezeAll;
- QG_ActionHandler * actionHandler;
+ ActionHandler * actionHandler;
};
#endif // __LAYERWIDGET_H__
* Default Constructor. You must call init manually if you choose
* to use this constructor.
*/
-QG_LineTypeBox::QG_LineTypeBox(QWidget * parent, const char */*name*/): QComboBox(parent)
+LineTypeBox::LineTypeBox(QWidget * parent, const char */*name*/): QComboBox(parent)
{
showByLayer = false;
showUnchanged = false;
*
* @param showByLayer true: Show attribute ByLayer, ByBlock.
*/
-QG_LineTypeBox::QG_LineTypeBox(bool showByLayer, bool showUnchanged, QWidget * parent,
+LineTypeBox::LineTypeBox(bool showByLayer, bool showUnchanged, QWidget * parent,
const char */*name*/): QComboBox(parent)
{
unchanged = false;
/**
* Destructor
*/
-QG_LineTypeBox::~QG_LineTypeBox()
+LineTypeBox::~LineTypeBox()
{
}
*
* @param showByLayer true: Show attribute ByLayer, ByBlock.
*/
-void QG_LineTypeBox::init(bool showByLayer, bool showUnchanged)
+void LineTypeBox::init(bool showByLayer, bool showUnchanged)
{
this->showByLayer = showByLayer;
this->showUnchanged = showUnchanged;
slotLineTypeChanged(currentIndex());
}
-RS2::LineType QG_LineTypeBox::getLineType()
+RS2::LineType LineTypeBox::getLineType()
{
return currentLineType;
}
/**
* Sets the currently selected linetype item to the given linetype.
*/
-void QG_LineTypeBox::setLineType(RS2::LineType t)
+void LineTypeBox::setLineType(RS2::LineType t)
{
- RS_DEBUG->print("QG_LineTypeBox::setLineType %d\n", (int)t);
+ RS_DEBUG->print("LineTypeBox::setLineType %d\n", (int)t);
int offset = (int)showByLayer * 2 + (int)showUnchanged;
if (showByLayer)
setCurrentIndex(0 + (int)showUnchanged);
else
- RS_DEBUG->print(RS_Debug::D_WARNING, "QG_LineTypeBox::setLineType: "
+ RS_DEBUG->print(RS_Debug::D_WARNING, "LineTypeBox::setLineType: "
"Combobox doesn't support linetype BYLAYER");
break;
case RS2::LineByBlock:
if (showByLayer)
setCurrentIndex(1 + (int)showUnchanged);
else
- RS_DEBUG->print(RS_Debug::D_WARNING, "QG_LineTypeBox::setLineType: "
+ RS_DEBUG->print(RS_Debug::D_WARNING, "LineTypeBox::setLineType: "
"Combobox doesn't support linetype BYBLOCK");
break;
*
* @todo needs an update, but not used currently
*/
-void QG_LineTypeBox::setLayerLineType(RS2::LineType t)
+void LineTypeBox::setLayerLineType(RS2::LineType t)
{
if (showByLayer)
{
}
}
-bool QG_LineTypeBox::isUnchanged()
+bool LineTypeBox::isUnchanged()
{
return unchanged;
}
* offers a dialog to the user that allows him/ her to
* choose an individual linetype.
*/
-void QG_LineTypeBox::slotLineTypeChanged(int index)
+void LineTypeBox::slotLineTypeChanged(int index)
{
- RS_DEBUG->print("QG_LineTypeBox::slotLineTypeChanged %d\n", index);
+ RS_DEBUG->print("LineTypeBox::slotLineTypeChanged %d\n", index);
unchanged = false;
/**
* A combobox for choosing a line type.
*/
-class QG_LineTypeBox: public QComboBox
+class LineTypeBox: public QComboBox
{
Q_OBJECT
public:
- QG_LineTypeBox(QWidget * parent = 0, const char * name = 0);
- QG_LineTypeBox(bool showByLayer, bool showUnchanged, QWidget * parent = 0, const char * name = 0);
- virtual ~QG_LineTypeBox();
+ LineTypeBox(QWidget * parent = 0, const char * name = 0);
+ LineTypeBox(bool showByLayer, bool showUnchanged, QWidget * parent = 0, const char * name = 0);
+ virtual ~LineTypeBox();
void init(bool showByLayer, bool showUnchanged);
RS2::LineType getLineType();
/**
* Constructor for root items.
*/
-QG_ListViewItem::QG_ListViewItem(QListWidget * par, const QString & label,
+ListViewItem::ListViewItem(QListWidget * par, const QString & label,
bool open, int id): QListWidgetItem(par)
{
par = 0;
/**
* Constructor for list view items with a folder icon.
*/
-QG_ListViewItem::QG_ListViewItem(QG_ListViewItem * par, const QString & label,
+ListViewItem::ListViewItem(ListViewItem * par, const QString & label,
bool open, int id): QListWidgetItem((QListWidget *)par)
{
this->par = par;
/**
* Opens or closes the item.
*/
-void QG_ListViewItem::setOpen(bool open)
+void ListViewItem::setOpen(bool open)
{
if (open == true)
// setPixmap(0, QPixmap(folderopen_xpm));
/**
* Called in the beginning.
*/
-void QG_ListViewItem::setup()
+void ListViewItem::setup()
{
// Q3ListViewItem::setup();
#warning "!!!"
/**
* Returns the "path" of this item (like: "Project/Page1/Paragraph1/").
*/
-QString QG_ListViewItem::getFullPath()
+QString ListViewItem::getFullPath()
{
QString s;
/**
* Returns the text of the given column of this item.
*/
-QString QG_ListViewItem::text(int column) const
+QString ListViewItem::text(int column) const
{
if (column == 0)
return label;
return "Column1";
}
-QString QG_ListViewItem::getLabel() const
+QString ListViewItem::getLabel() const
{
return label;
}
-void QG_ListViewItem::setId(int id)
+void ListViewItem::setId(int id)
{
this->id = id;
}
-int QG_ListViewItem::getId()
+int ListViewItem::getId()
{
return id;
}
/**
* An item in a hierarchical list view with a nice folder icon.
*/
-//class QG_ListViewItem : public Q3ListViewItem
-class QG_ListViewItem : public QListWidgetItem
+//class ListViewItem : public Q3ListViewItem
+class ListViewItem : public QListWidgetItem
{
public:
-// QG_ListViewItem(Q3ListView * par, const QString & label,
- QG_ListViewItem(QListWidget * par, const QString & label,
+// ListViewItem(Q3ListView * par, const QString & label,
+ ListViewItem(QListWidget * par, const QString & label,
bool open = false, int id = -1);
- QG_ListViewItem(QG_ListViewItem * par, const QString & label,
+ ListViewItem(ListViewItem * par, const QString & label,
bool open = false, int id = -1);
QString getFullPath();
int getId();
private:
- QG_ListViewItem * par;
+ ListViewItem * par;
QString label;
QString object;
int id;
* Default Constructor. You must call init manually if you choose
* to use this constructor.
*/
-QG_PatternBox::QG_PatternBox(QWidget * parent, const char */*name*/): QComboBox(parent)
+PatternBox::PatternBox(QWidget * parent, const char */*name*/): QComboBox(parent)
{
}
/**
* Destructor
*/
-QG_PatternBox::~QG_PatternBox()
+PatternBox::~PatternBox()
{
}
/**
* Initialisation (called manually and only once).
*/
-void QG_PatternBox::init()
+void PatternBox::init()
{
QStringList patterns;
slotPatternChanged(currentIndex());
}
-RS_Pattern * QG_PatternBox::getPattern()
+RS_Pattern * PatternBox::getPattern()
{
return currentPattern;
}
/**
* Sets the currently selected width item to the given width.
*/
-void QG_PatternBox::setPattern(const QString & pName)
+void PatternBox::setPattern(const QString & pName)
{
- RS_DEBUG->print("QG_PatternBox::setPattern %s\n", pName.toLatin1().data());
+ RS_DEBUG->print("PatternBox::setPattern %s\n", pName.toLatin1().data());
// setCurrentText(pName);
setItemText(currentIndex(), pName);
slotPatternChanged(currentIndex());
* Called when the pattern has changed. This method
* sets the current pattern to the value chosen.
*/
-void QG_PatternBox::slotPatternChanged(int index)
+void PatternBox::slotPatternChanged(int index)
{
- RS_DEBUG->print("QG_PatternBox::slotPatternChanged %d\n", index);
+ RS_DEBUG->print("PatternBox::slotPatternChanged %d\n", index);
currentPattern = RS_PATTERNLIST->requestPattern(currentText());
if (currentPattern!=NULL)
/**
* A combobox for choosing a pattern name.
*/
-class QG_PatternBox: public QComboBox
+class PatternBox: public QComboBox
{
Q_OBJECT
public:
- QG_PatternBox(QWidget * parent = 0, const char * name = 0);
- virtual ~QG_PatternBox();
+ PatternBox(QWidget * parent = 0, const char * name = 0);
+ virtual ~PatternBox();
void init();
RS_Pattern * getPattern();
/**
* Constructor.
*/
-QG_PenToolBar::QG_PenToolBar(QMainWindow * parent/*= NULL*/, const char * name/*= NULL*/):
+PenToolBar::PenToolBar(QMainWindow * parent/*= NULL*/, const char * name/*= NULL*/):
QToolBar(parent),
- colorBox(new QG_ColorBox(true, false, this, "colorbox")),
- widthBox(new QG_WidthBox(true, false, this, "widthbox")),
- lineTypeBox(new QG_LineTypeBox(true, false, this, "lineTypebox"))
+ colorBox(new ColorBox(true, false, this, "colorbox")),
+ widthBox(new WidthBox(true, false, this, "widthbox")),
+ lineTypeBox(new LineTypeBox(true, false, this, "lineTypebox"))
{
setWindowTitle(name);
/**
* Destructor
*/
-QG_PenToolBar::~QG_PenToolBar()
+PenToolBar::~PenToolBar()
{
delete colorBox;
delete widthBox;
delete lineTypeBox;
}
-RS_Pen QG_PenToolBar::getPen()
+RS_Pen PenToolBar::getPen()
{
return currentPen;
}
* Called by the layer list if this object was added as a listener
* to a layer list.
*/
-void QG_PenToolBar::layerActivated(RS_Layer * l)
+void PenToolBar::layerActivated(RS_Layer * l)
{
- //printf("QG_PenToolBar::layerActivated\n");
+ //printf("PenToolBar::layerActivated\n");
if (l == NULL)
return;
* Called by the layer list (if this object was previously
* added as a listener to a layer list).
*/
-void QG_PenToolBar::layerEdited(RS_Layer *)
+void PenToolBar::layerEdited(RS_Layer *)
{
}
/**
* Called when the color was changed by the user.
*/
-void QG_PenToolBar::slotColorChanged(const RS_Color & color)
+void PenToolBar::slotColorChanged(const RS_Color & color)
{
currentPen.setColor(color);
//printf(" color changed\n");
/**
* Called when the width was changed by the user.
*/
-void QG_PenToolBar::slotWidthChanged(RS2::LineWidth w)
+void PenToolBar::slotWidthChanged(RS2::LineWidth w)
{
currentPen.setWidth(w);
//printf(" width changed\n");
/**
* Called when the linetype was changed by the user.
*/
-void QG_PenToolBar::slotLineTypeChanged(RS2::LineType w)
+void PenToolBar::slotLineTypeChanged(RS2::LineType w)
{
currentPen.setLineType(w);
//printf(" line type changed\n");
//#include "rs_layerlistlistener.h"
#include "rs_pen.h"
-class QG_ColorBox;
-class QG_WidthBox;
-class QG_LineTypeBox;
+class ColorBox;
+class WidthBox;
+class LineTypeBox;
class RS_Layer;
/**
* A toolbar that offers all widgets for choosing a pen.
*/
-class QG_PenToolBar: public QToolBar//, public RS_LayerListListener
+class PenToolBar: public QToolBar//, public RS_LayerListListener
{
Q_OBJECT
public:
- QG_PenToolBar(QMainWindow * parent = NULL, const char * name = NULL);
- virtual ~QG_PenToolBar();
+ PenToolBar(QMainWindow * parent = NULL, const char * name = NULL);
+ virtual ~PenToolBar();
RS_Pen getPen();
private:
RS_Pen currentPen;
- QG_ColorBox * colorBox;
- QG_WidthBox * widthBox;
- QG_LineTypeBox * lineTypeBox;
+ ColorBox * colorBox;
+ WidthBox * widthBox;
+ LineTypeBox * lineTypeBox;
};
#endif // __PENTOOLBAR_H__
#include "qg_dialogfactory.h"
#include "graphicview.h"
-#include "qg_layerwidget.h"
+#include "layerwidget.h"
#include "qg_mainwindowinterface.h"
#include "actiondimlinear.h"
#include "actioninterface.h"
#include "rs_mainwindowinterface.h"
class QMainWindow;
-class QG_ActionHandler;
+class ActionHandler;
/**
* Interface for main application windows.
virtual ~QG_MainWindowInterface() {}
virtual QMainWindow * GetMainWindow() = 0;
- virtual QG_ActionHandler * getActionHandler() = 0;
+ virtual ActionHandler * getActionHandler() = 0;
virtual void setFocus2() = 0;
};
* Default Constructor. You must call init manually if you choose
* to use this constructor.
*/
-QG_WidthBox::QG_WidthBox(QWidget * parent, const char */*name*/): QComboBox(parent)
+WidthBox::WidthBox(QWidget * parent, const char */*name*/): QComboBox(parent)
{
showByLayer = false;
showUnchanged = false;
*
* @param showByLayer true: Show attributes ByLayer, ByBlock
*/
-QG_WidthBox::QG_WidthBox(bool showByLayer, bool showUnchanged, QWidget * parent, const char */*name*/):
+WidthBox::WidthBox(bool showByLayer, bool showUnchanged, QWidget * parent, const char */*name*/):
QComboBox(parent)
{
init(showByLayer, showUnchanged);
/**
* Destructor
*/
-QG_WidthBox::~QG_WidthBox()
+WidthBox::~WidthBox()
{
}
*
* @param showByLayer true: Show attributes ByLayer, ByBlock
*/
-void QG_WidthBox::init(bool showByLayer, bool showUnchanged)
+void WidthBox::init(bool showByLayer, bool showUnchanged)
{
this->showByLayer = showByLayer;
this->showUnchanged = showUnchanged;
slotWidthChanged(currentIndex());
}
-RS2::LineWidth QG_WidthBox::getWidth()
+RS2::LineWidth WidthBox::getWidth()
{
return currentWidth;
}
/**
* Sets the currently selected width item to the given width.
*/
-void QG_WidthBox::setWidth(RS2::LineWidth w)
+void WidthBox::setWidth(RS2::LineWidth w)
{
- RS_DEBUG->print("QG_WidthBox::setWidth %d\n", (int)w);
+ RS_DEBUG->print("WidthBox::setWidth %d\n", (int)w);
int offset = (int)showByLayer * 2 + (int)showUnchanged;
switch (w)
if (showByLayer)
setCurrentIndex(0 + (int)showUnchanged);
else
- RS_DEBUG->print(RS_Debug::D_WARNING, "QG_WidthBox::setWidth: Unsupported width.");
+ RS_DEBUG->print(RS_Debug::D_WARNING, "WidthBox::setWidth: Unsupported width.");
break;
case RS2::WidthByBlock:
if (showByLayer)
setCurrentIndex(1 + (int)showUnchanged);
else
- RS_DEBUG->print(RS_Debug::D_WARNING, "QG_WidthBox::setWidth: Unsupported width.");
+ RS_DEBUG->print(RS_Debug::D_WARNING, "WidthBox::setWidth: Unsupported width.");
break;
case RS2::WidthDefault:
setCurrentIndex(0 + offset);
/**
* Sets the pixmap showing the width of the "By Layer" item.
*/
-void QG_WidthBox::setLayerWidth(RS2::LineWidth w)
+void WidthBox::setLayerWidth(RS2::LineWidth w)
{
if (showByLayer)
{
}
}
-bool QG_WidthBox::isUnchanged()
+bool WidthBox::isUnchanged()
{
return unchanged;
}
* offers a dialog to the user that allows him/ her to
* choose an individual width.
*/
-void QG_WidthBox::slotWidthChanged(int index)
+void WidthBox::slotWidthChanged(int index)
{
- RS_DEBUG->print("QG_WidthBox::slotWidthChanged %d\n", index);
+ RS_DEBUG->print("WidthBox::slotWidthChanged %d\n", index);
bool done = false;
/**
* A combobox for choosing a line width.
*/
-class QG_WidthBox: public QComboBox
+class WidthBox: public QComboBox
{
Q_OBJECT
public:
- QG_WidthBox(QWidget * parent = 0, const char * name = 0);
- QG_WidthBox(bool showByLayer, bool showUnchanged, QWidget * parent = 0, const char * name = 0);
- virtual ~QG_WidthBox();
+ WidthBox(QWidget * parent = 0, const char * name = 0);
+ WidthBox(bool showByLayer, bool showUnchanged, QWidget * parent = 0, const char * name = 0);
+ virtual ~WidthBox();
void init(bool showByLayer, bool showUnchanged);
RS2::LineWidth getWidth();