Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
270 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,117 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<ui version="4.0"> | ||
<class>DlgUnitCalculator</class> | ||
<widget class="QWidget" name="DlgUnitCalculator"> | ||
<property name="geometry"> | ||
<rect> | ||
<x>0</x> | ||
<y>0</y> | ||
<width>375</width> | ||
<height>139</height> | ||
</rect> | ||
</property> | ||
<property name="windowTitle"> | ||
<string>Units calculater</string> | ||
</property> | ||
<layout class="QVBoxLayout" name="verticalLayout"> | ||
<item> | ||
<layout class="QHBoxLayout" name="horizontalLayout_2"> | ||
<item> | ||
<widget class="QLineEdit" name="lineEdit"> | ||
<property name="minimumSize"> | ||
<size> | ||
<width>100</width> | ||
<height>0</height> | ||
</size> | ||
</property> | ||
</widget> | ||
</item> | ||
<item> | ||
<widget class="QLabel" name="label"> | ||
<property name="text"> | ||
<string>as:</string> | ||
</property> | ||
</widget> | ||
</item> | ||
<item> | ||
<widget class="QLineEdit" name="lineEdit_2"> | ||
<property name="minimumSize"> | ||
<size> | ||
<width>100</width> | ||
<height>0</height> | ||
</size> | ||
</property> | ||
</widget> | ||
</item> | ||
<item> | ||
<widget class="QLabel" name="label_2"> | ||
<property name="text"> | ||
<string>=></string> | ||
</property> | ||
</widget> | ||
</item> | ||
<item> | ||
<widget class="QLineEdit" name="lineEdit_3"> | ||
<property name="minimumSize"> | ||
<size> | ||
<width>100</width> | ||
<height>0</height> | ||
</size> | ||
</property> | ||
<property name="readOnly"> | ||
<bool>true</bool> | ||
</property> | ||
</widget> | ||
</item> | ||
</layout> | ||
</item> | ||
<item> | ||
<widget class="QTextEdit" name="textEdit"> | ||
<property name="readOnly"> | ||
<bool>true</bool> | ||
</property> | ||
</widget> | ||
</item> | ||
<item> | ||
<layout class="QHBoxLayout" name="horizontalLayout"> | ||
<item> | ||
<widget class="QPushButton" name="pushButton_3"> | ||
<property name="text"> | ||
<string>Help</string> | ||
</property> | ||
</widget> | ||
</item> | ||
<item> | ||
<spacer name="horizontalSpacer"> | ||
<property name="orientation"> | ||
<enum>Qt::Horizontal</enum> | ||
</property> | ||
<property name="sizeHint" stdset="0"> | ||
<size> | ||
<width>40</width> | ||
<height>20</height> | ||
</size> | ||
</property> | ||
</spacer> | ||
</item> | ||
<item> | ||
<widget class="QPushButton" name="pushButton"> | ||
<property name="text"> | ||
<string>Copy</string> | ||
</property> | ||
</widget> | ||
</item> | ||
<item> | ||
<widget class="QPushButton" name="pushButton_2"> | ||
<property name="text"> | ||
<string>Close</string> | ||
</property> | ||
</widget> | ||
</item> | ||
</layout> | ||
</item> | ||
</layout> | ||
</widget> | ||
<resources/> | ||
<connections/> | ||
</ui> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,69 @@ | ||
/*************************************************************************** | ||
* Copyright (c) 2013 Jürgen Riegel <juergen.riegel@web.de> * | ||
* * | ||
* This file is part of the FreeCAD CAx development system. * | ||
* * | ||
* This library is free software; you can redistribute it and/or * | ||
* modify it under the terms of the GNU Library General Public * | ||
* License as published by the Free Software Foundation; either * | ||
* version 2 of the License, or (at your option) any later version. * | ||
* * | ||
* This library is distributed in the hope that it will be useful, * | ||
* but WITHOUT ANY WARRANTY; without even the implied warranty of * | ||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * | ||
* GNU Library General Public License for more details. * | ||
* * | ||
* You should have received a copy of the GNU Library General Public * | ||
* License along with this library; see the file COPYING.LIB. If not, * | ||
* write to the Free Software Foundation, Inc., 59 Temple Place, * | ||
* Suite 330, Boston, MA 02111-1307, USA * | ||
* * | ||
***************************************************************************/ | ||
|
||
|
||
#include "PreCompiled.h" | ||
#ifndef _PreComp_ | ||
#endif | ||
|
||
#include "DlgUnitsCalculatorImp.h" | ||
|
||
using namespace Gui::Dialog; | ||
|
||
/* TRANSLATOR Gui::Dialog::DlgUnitsCalculator */ | ||
|
||
/** | ||
* Constructs a DlgUnitsCalculator which is a child of 'parent', with the | ||
* name 'name' and widget flags set to 'f' | ||
* | ||
* The dialog will by default be modeless, unless you set 'modal' to | ||
* TRUE to construct a modal dialog. | ||
*/ | ||
DlgUnitsCalculator::DlgUnitsCalculator( QWidget* parent, Qt::WFlags fl ) | ||
: QDialog( parent, fl ) | ||
{ | ||
// create widgets | ||
setupUi(this); | ||
|
||
} | ||
|
||
/** Destroys the object and frees any allocated resources */ | ||
DlgUnitsCalculator::~DlgUnitsCalculator() | ||
{ | ||
} | ||
|
||
|
||
void DlgUnitsCalculator::accept() | ||
{ | ||
|
||
QDialog::accept(); | ||
delete this; | ||
} | ||
|
||
void DlgUnitsCalculator::reject() | ||
{ | ||
|
||
QDialog::reject(); | ||
delete this; | ||
} | ||
|
||
#include "moc_DlgUnitsCalculatorImp.cpp" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
/*************************************************************************** | ||
* Copyright (c) 2013 Jürgen Riegel <juergen.riegel@web.de> * | ||
* * | ||
* This file is part of the FreeCAD CAx development system. * | ||
* * | ||
* This library is free software; you can redistribute it and/or * | ||
* modify it under the terms of the GNU Library General Public * | ||
* License as published by the Free Software Foundation; either * | ||
* version 2 of the License, or (at your option) any later version. * | ||
* * | ||
* This library is distributed in the hope that it will be useful, * | ||
* but WITHOUT ANY WARRANTY; without even the implied warranty of * | ||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * | ||
* GNU Library General Public License for more details. * | ||
* * | ||
* You should have received a copy of the GNU Library General Public * | ||
* License along with this library; see the file COPYING.LIB. If not, * | ||
* write to the Free Software Foundation, Inc., 59 Temple Place, * | ||
* Suite 330, Boston, MA 02111-1307, USA * | ||
* * | ||
***************************************************************************/ | ||
|
||
|
||
#ifndef GUI_DIALOG_DlgActivateWindowImp_H | ||
#define GUI_DIALOG_DlgActivateWindowImp_H | ||
|
||
#include "ui_DlgUnitsCalculator.h" | ||
|
||
namespace Gui { | ||
namespace Dialog { | ||
|
||
/** | ||
* The DlgUnitsCalculator class provides a dialog to activate the MDI window | ||
* of the main window you wish. Since there could be a lot of MDI windows in | ||
* an application you cannot put all of them into the "Windows" popup menu. | ||
* \author Werner Mayer | ||
*/ | ||
class DlgUnitsCalculator : public QDialog, public Ui_DlgUnitCalculator | ||
{ | ||
Q_OBJECT | ||
|
||
public: | ||
DlgUnitsCalculator( QWidget* parent = 0, Qt::WFlags fl = 0 ); | ||
~DlgUnitsCalculator(); | ||
|
||
protected: | ||
void accept(); | ||
void reject(); | ||
}; | ||
|
||
} // namespace Dialog | ||
} // namespace Gui | ||
|
||
#endif // GUI_DIALOG_DlgActivateWindowImp_H |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters