mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2025-12-20 08:10:52 +01:00
qetelementeditor: remove old plugin DXFtoQET
This commit is contained in:
@@ -951,39 +951,6 @@ void QETElementEditor::writeSettings() const
|
|||||||
*/
|
*/
|
||||||
void QETElementEditor::setupActions()
|
void QETElementEditor::setupActions()
|
||||||
{
|
{
|
||||||
#if defined(Q_OS_WIN32) || defined(Q_OS_WIN64)
|
|
||||||
ui->m_open_dxf_action -> setStatusTip(tr("To install the plugin DXFtoQET\nVisit https://download.qelectrotech.org/qet/builds/dxf_to_elmt/\n"
|
|
||||||
"\n"
|
|
||||||
">> Install on Windows\n"
|
|
||||||
"Put DXFtoQET.exe binary on C:\\Users\\user_name\\AppData\\Roaming\\qet\\ directory \n"
|
|
||||||
));
|
|
||||||
#elif defined(Q_OS_MAC)
|
|
||||||
ui->m_open_dxf_action -> setStatusTip(tr("To install the plugin DXFtoQET\nVisit https://download.qelectrotech.org/qet/builds/dxf_to_elmt/\n"
|
|
||||||
"\n"
|
|
||||||
">> Install on macOSX\n"
|
|
||||||
"Put DXFtoQET.app binary on /Users/user_name/.qet/ directory \n"
|
|
||||||
));
|
|
||||||
#else
|
|
||||||
ui->m_open_dxf_action -> setStatusTip(tr("To install the plugin DXFtoQET\nVisit https://download.qelectrotech.org/qet/builds/dxf_to_elmt/\n"
|
|
||||||
"\n"
|
|
||||||
">> Install on Linux\n"
|
|
||||||
"Put DXFtoQET binary on your /home/user_name/.qet/ directory\n"
|
|
||||||
"make it executable : chmod +x ./DXFtoQET\n"
|
|
||||||
));
|
|
||||||
#endif
|
|
||||||
|
|
||||||
ui->m_open_dxf_action -> setWhatsThis (tr("To install the plugin DXFtoQET\nVisit https://download.qelectrotech.org/qet/builds/dxf_to_elmt/\n"
|
|
||||||
"\n"
|
|
||||||
">> Install on Linux\n"
|
|
||||||
"Put DXFtoQET binary on your /home/user_name/.qet/ directory\n"
|
|
||||||
"make it executable : chmod +x ./DXFtoQET\n"
|
|
||||||
">> Install on Windows\n"
|
|
||||||
"Put DXFtoQET.exe binary on C:\\Users\\user_name\\AppData\\Roaming\\qet\\ directory \n"
|
|
||||||
"\n"
|
|
||||||
">> Install on macOSX\n"
|
|
||||||
"Put DXFtoQET.app binary on /Users/user_name/.qet/ directory \n"
|
|
||||||
));
|
|
||||||
|
|
||||||
m_undo_action = m_elmt_scene -> undoStack().createUndoAction(this, tr("Annuler"));
|
m_undo_action = m_elmt_scene -> undoStack().createUndoAction(this, tr("Annuler"));
|
||||||
m_redo_action = m_elmt_scene -> undoStack().createRedoAction(this, tr("Refaire"));
|
m_redo_action = m_elmt_scene -> undoStack().createRedoAction(this, tr("Refaire"));
|
||||||
m_undo_action -> setIcon(QET::Icons::EditUndo);
|
m_undo_action -> setIcon(QET::Icons::EditUndo);
|
||||||
@@ -1315,24 +1282,6 @@ void QETElementEditor::on_m_open_from_file_action_triggered()
|
|||||||
openElement(user_filename);
|
openElement(user_filename);
|
||||||
}
|
}
|
||||||
|
|
||||||
void QETElementEditor::on_m_open_dxf_action_triggered()
|
|
||||||
{
|
|
||||||
#ifdef TODO_LIST
|
|
||||||
# pragma message("@TODO Merge 'DXF to GET-2020' code in to Qet")
|
|
||||||
# pragma message("https://github.com/qelectrotech/DXFtoQET-2020")
|
|
||||||
#endif
|
|
||||||
#if defined(Q_OS_WIN32) || defined(Q_OS_WIN64)
|
|
||||||
QString program = (QDir::homePath() + "/Application Data/qet/DXFtoQET.exe");
|
|
||||||
#elif defined(Q_OS_MAC)
|
|
||||||
QString program = (QDir::homePath() + "/.qet/DXFtoQET.app");
|
|
||||||
#else
|
|
||||||
QString program = (QDir::homePath() + "/.qet/DXFtoQET");
|
|
||||||
#endif
|
|
||||||
QStringList arguments;
|
|
||||||
QProcess *DXF = new QProcess(qApp);
|
|
||||||
DXF -> start(program,arguments);
|
|
||||||
}
|
|
||||||
|
|
||||||
void QETElementEditor::on_m_open_scaled_element_action_triggered()
|
void QETElementEditor::on_m_open_scaled_element_action_triggered()
|
||||||
{
|
{
|
||||||
#ifdef TODO_LIST
|
#ifdef TODO_LIST
|
||||||
|
|||||||
@@ -86,7 +86,6 @@ class QETElementEditor : public QMainWindow
|
|||||||
void on_m_new_action_triggered();
|
void on_m_new_action_triggered();
|
||||||
void on_m_open_action_triggered();
|
void on_m_open_action_triggered();
|
||||||
void on_m_open_from_file_action_triggered();
|
void on_m_open_from_file_action_triggered();
|
||||||
void on_m_open_dxf_action_triggered();
|
|
||||||
void on_m_open_scaled_element_action_triggered();
|
void on_m_open_scaled_element_action_triggered();
|
||||||
bool on_m_save_as_file_action_triggered();
|
bool on_m_save_as_file_action_triggered();
|
||||||
void on_m_reload_action_triggered();
|
void on_m_reload_action_triggered();
|
||||||
|
|||||||
@@ -25,7 +25,7 @@
|
|||||||
<x>0</x>
|
<x>0</x>
|
||||||
<y>0</y>
|
<y>0</y>
|
||||||
<width>800</width>
|
<width>800</width>
|
||||||
<height>33</height>
|
<height>22</height>
|
||||||
</rect>
|
</rect>
|
||||||
</property>
|
</property>
|
||||||
<widget class="QMenu" name="m_file_menu">
|
<widget class="QMenu" name="m_file_menu">
|
||||||
@@ -37,7 +37,6 @@
|
|||||||
<addaction name="m_open_from_file_action"/>
|
<addaction name="m_open_from_file_action"/>
|
||||||
<addaction name="m_import_scaled_element"/>
|
<addaction name="m_import_scaled_element"/>
|
||||||
<addaction name="m_import_dxf"/>
|
<addaction name="m_import_dxf"/>
|
||||||
<addaction name="m_open_dxf_action"/>
|
|
||||||
<addaction name="m_save_action"/>
|
<addaction name="m_save_action"/>
|
||||||
<addaction name="m_save_as_action"/>
|
<addaction name="m_save_as_action"/>
|
||||||
<addaction name="m_save_as_file_action"/>
|
<addaction name="m_save_as_file_action"/>
|
||||||
@@ -233,15 +232,6 @@
|
|||||||
<string>&Ouvrir depuis un fichier</string>
|
<string>&Ouvrir depuis un fichier</string>
|
||||||
</property>
|
</property>
|
||||||
</action>
|
</action>
|
||||||
<action name="m_open_dxf_action">
|
|
||||||
<property name="icon">
|
|
||||||
<iconset resource="../../../qelectrotech.qrc">
|
|
||||||
<normaloff>:/ico/16x16/run-dxf.png</normaloff>:/ico/16x16/run-dxf.png</iconset>
|
|
||||||
</property>
|
|
||||||
<property name="text">
|
|
||||||
<string>&Lancer le plugin convertisseur DXF</string>
|
|
||||||
</property>
|
|
||||||
</action>
|
|
||||||
<action name="m_save_action">
|
<action name="m_save_action">
|
||||||
<property name="icon">
|
<property name="icon">
|
||||||
<iconset resource="../../../qelectrotech.qrc">
|
<iconset resource="../../../qelectrotech.qrc">
|
||||||
|
|||||||
Reference in New Issue
Block a user