2010-05-06 09:52 UTC-0800 Pritpal Bedi (pritpal@vouchcac.com)
* contrib/hbqt/THbQtUI.prg
+ Added functionality for "WhatsThis" feature of Qt.
- contrib/hbide/resources/projectproperties.ui
- contrib/hbide/resources/projectproperties.uic
- Deleted: no longer required dialog.
* contrib/hbide/resources/projectpropertiesex.ui
* contrib/hbide/resources/projectpropertiesex.uic
* contrib/hbide/resources/shortcuts.ui
* contrib/hbide/resources/shortcuts.uic
% Shifted: tooltips to WhatsThis slot. Shift+F1 key is the
universal key to activate it. Alternatively "?" icon appears
on the left of "X" button in titlebat; press it and move over
the dialog; where "WhatsThis" will be defined, cursor will
change its shape and click there, tooltip like popup will open.
* contrib/hbqt/doc/en/class_hbqplaintextedit.txt
* contrib/hbqt/hbqt_hbqplaintextedit.cpp
* contrib/hbqt/hbqt_hbqplaintextedit.h
* contrib/hbqt/qtgui/HBQPlainTextEdit.cpp
* contrib/hbqt/qtgui/THBQPlainTextEdit.prg
* contrib/hbqt/qth/HBQPlainTextEdit.qth
* contrib/hbide/hbide.hbp
+ contrib/hbide/ideedit.prg
+ Added: new source file which contains code to handle
editing window at the micro level. It was going unmanageable
in single file due to heavy changed needed for future.
* contrib/hbide/ideeditor.prg
- IdeEdit() class moved to ideedit.prg.
+ Implemented: base protocol to keep all the three variants of
selections, viz., stream, column and line, persistant. It is a
work in progress and may be some features of "cut" may not be
working as expected yet.
Please play with it a little and tell me about the artifacts
it must respect to.
This commit is contained in:
@@ -17,6 +17,48 @@
|
||||
past entries belonging to author(s): Viktor Szakats.
|
||||
*/
|
||||
|
||||
2010-05-06 09:52 UTC-0800 Pritpal Bedi (pritpal@vouchcac.com)
|
||||
* contrib/hbqt/THbQtUI.prg
|
||||
+ Added functionality for "WhatsThis" feature of Qt.
|
||||
|
||||
- contrib/hbide/resources/projectproperties.ui
|
||||
- contrib/hbide/resources/projectproperties.uic
|
||||
- Deleted: no longer required dialog.
|
||||
|
||||
* contrib/hbide/resources/projectpropertiesex.ui
|
||||
* contrib/hbide/resources/projectpropertiesex.uic
|
||||
* contrib/hbide/resources/shortcuts.ui
|
||||
* contrib/hbide/resources/shortcuts.uic
|
||||
% Shifted: tooltips to WhatsThis slot. Shift+F1 key is the
|
||||
universal key to activate it. Alternatively "?" icon appears
|
||||
on the left of "X" button in titlebat; press it and move over
|
||||
the dialog; where "WhatsThis" will be defined, cursor will
|
||||
change its shape and click there, tooltip like popup will open.
|
||||
|
||||
* contrib/hbqt/doc/en/class_hbqplaintextedit.txt
|
||||
* contrib/hbqt/hbqt_hbqplaintextedit.cpp
|
||||
* contrib/hbqt/hbqt_hbqplaintextedit.h
|
||||
* contrib/hbqt/qtgui/HBQPlainTextEdit.cpp
|
||||
* contrib/hbqt/qtgui/THBQPlainTextEdit.prg
|
||||
* contrib/hbqt/qth/HBQPlainTextEdit.qth
|
||||
|
||||
* contrib/hbide/hbide.hbp
|
||||
+ contrib/hbide/ideedit.prg
|
||||
+ Added: new source file which contains code to handle
|
||||
editing window at the micro level. It was going unmanageable
|
||||
in single file due to heavy changed needed for future.
|
||||
|
||||
* contrib/hbide/ideeditor.prg
|
||||
- IdeEdit() class moved to ideedit.prg.
|
||||
|
||||
+ Implemented: base protocol to keep all the three variants of
|
||||
selections, viz., stream, column and line, persistant. It is a
|
||||
work in progress and may be some features of "cut" may not be
|
||||
working as expected yet.
|
||||
|
||||
Please play with it a little and tell me about the artifacts
|
||||
it must respect to.
|
||||
|
||||
2010-05-06 07:13 UTC-0800 Pritpal Bedi (pritpal@vouchcac.com)
|
||||
* contrib/hbide/idesaveload.prg
|
||||
! Fixed hbide_getIniPath() to initialize <cPath> for OS2.
|
||||
|
||||
@@ -35,4 +35,6 @@ ideskeletons.prg
|
||||
idewizard.prg
|
||||
idetools.prg
|
||||
ideshortcuts.prg
|
||||
ideedit.prg
|
||||
|
||||
|
||||
|
||||
1658
harbour/contrib/hbide/ideedit.prg
Normal file
1658
harbour/contrib/hbide/ideedit.prg
Normal file
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
@@ -1,648 +0,0 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<ui version="4.0">
|
||||
<class>ProjectProperties</class>
|
||||
<widget class="QDialog" name="ProjectProperties">
|
||||
<property name="geometry">
|
||||
<rect>
|
||||
<x>0</x>
|
||||
<y>0</y>
|
||||
<width>393</width>
|
||||
<height>478</height>
|
||||
</rect>
|
||||
</property>
|
||||
<property name="sizePolicy">
|
||||
<sizepolicy hsizetype="Preferred" vsizetype="Preferred">
|
||||
<horstretch>0</horstretch>
|
||||
<verstretch>0</verstretch>
|
||||
</sizepolicy>
|
||||
</property>
|
||||
<property name="windowTitle">
|
||||
<string>Project Properties</string>
|
||||
</property>
|
||||
<property name="styleSheet">
|
||||
<string/>
|
||||
</property>
|
||||
<layout class="QVBoxLayout" name="verticalLayout">
|
||||
<item>
|
||||
<widget class="QTabWidget" name="tabWidget">
|
||||
<property name="currentIndex">
|
||||
<number>0</number>
|
||||
</property>
|
||||
<widget class="QWidget" name="tabGeneral">
|
||||
<attribute name="title">
|
||||
<string>General</string>
|
||||
</attribute>
|
||||
<layout class="QGridLayout" name="gridLayout">
|
||||
<item row="1" column="0">
|
||||
<widget class="QLabel" name="label">
|
||||
<property name="font">
|
||||
<font>
|
||||
<weight>75</weight>
|
||||
<bold>true</bold>
|
||||
</font>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>Project Type:</string>
|
||||
</property>
|
||||
<property name="alignment">
|
||||
<set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="1" column="1">
|
||||
<widget class="QComboBox" name="comboPrjType">
|
||||
<property name="toolTip">
|
||||
<string><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd">
|
||||
<html><head><meta name="qrichtext" content="1" /><style type="text/css">
|
||||
p, li { white-space: pre-wrap; }
|
||||
</style></head><body style=" font-family:'MS Shell Dlg 2'; font-size:8.25pt; font-weight:400; font-style:normal;">
|
||||
<p align="center" style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-size:8pt;">A project may be of type Executable|Library|Dll.</span></p></body></html></string>
|
||||
</property>
|
||||
<property name="editable">
|
||||
<bool>false</bool>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="2" column="0">
|
||||
<widget class="QLabel" name="label_2">
|
||||
<property name="text">
|
||||
<string>Project Title:</string>
|
||||
</property>
|
||||
<property name="alignment">
|
||||
<set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="2" column="1">
|
||||
<widget class="QLineEdit" name="editPrjTitle">
|
||||
<property name="toolTip">
|
||||
<string><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd">
|
||||
<html><head><meta name="qrichtext" content="1" /><style type="text/css">
|
||||
p, li { white-space: pre-wrap; }
|
||||
</style></head><body style=" font-family:'MS Shell Dlg 2'; font-size:8.25pt; font-weight:400; font-style:normal;">
|
||||
<p align="center" style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-size:8pt;">Title will be shown as a node in project tree.</span></p></body></html></string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="3" column="0">
|
||||
<widget class="QLabel" name="label_3">
|
||||
<property name="text">
|
||||
<string>Project Location:</string>
|
||||
</property>
|
||||
<property name="alignment">
|
||||
<set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="3" column="1">
|
||||
<widget class="QLineEdit" name="editPrjLoctn">
|
||||
<property name="toolTip">
|
||||
<string><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd">
|
||||
<html><head><meta name="qrichtext" content="1" /><style type="text/css">
|
||||
p, li { white-space: pre-wrap; }
|
||||
</style></head><body style=" font-family:'MS Shell Dlg 2'; font-size:8.25pt; font-weight:400; font-style:normal;">
|
||||
<p align="center" style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-size:8pt;">Project location is the folder where project definition file .hbi will be stored. &lt;Project Location&gt; plus &lt;Output Name&gt; will comprise the full file name with .hbp extension.</span></p></body></html></string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="5" column="0">
|
||||
<widget class="QLabel" name="label_4">
|
||||
<property name="text">
|
||||
<string>Working Folder:</string>
|
||||
</property>
|
||||
<property name="alignment">
|
||||
<set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="5" column="1">
|
||||
<widget class="QLineEdit" name="editWrkFolder">
|
||||
<property name="toolTip">
|
||||
<string><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd">
|
||||
<html><head><meta name="qrichtext" content="1" /><style type="text/css">
|
||||
p, li { white-space: pre-wrap; }
|
||||
</style></head><body style=" font-family:'MS Shell Dlg 2'; font-size:8.25pt; font-weight:400; font-style:normal;">
|
||||
<p align="center" style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-size:8pt;">Working folder will be used to host HBMK2 compliant </span><span style=" font-size:8pt; font-weight:600;">&lt;Output Name&gt;</span><span style=" font-size:8pt;"> plus </span><span style=" font-size:8pt; font-weight:600;">&lt;hbp&gt;</span><span style=" font-size:8pt;"> and will be designated as current folder when </span><span style=" font-size:8pt; font-weight:600;">HBMK2</span><span style=" font-size:8pt;"> will be invoked.</span></p></body></html></string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="6" column="0">
|
||||
<widget class="QLabel" name="label_5">
|
||||
<property name="text">
|
||||
<string>Destination Folder:</string>
|
||||
</property>
|
||||
<property name="alignment">
|
||||
<set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="6" column="1">
|
||||
<widget class="QLineEdit" name="editDstFolder">
|
||||
<property name="toolTip">
|
||||
<string><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd">
|
||||
<html><head><meta name="qrichtext" content="1" /><style type="text/css">
|
||||
p, li { white-space: pre-wrap; }
|
||||
</style></head><body style=" font-family:'MS Shell Dlg 2'; font-size:8.25pt; font-weight:400; font-style:normal;">
|
||||
<p align="center" style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">Destination folder is a compatibility slot and is reserved to place the &lt;Output&gt; .exe .a .lib. </p>
|
||||
<p align="center" style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">But currently this functionality will be achieved through the -o compiler flag.</p></body></html></string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="9" column="0">
|
||||
<widget class="QLabel" name="label_9">
|
||||
<property name="text">
|
||||
<string>Compile/Link Flags:</string>
|
||||
</property>
|
||||
<property name="alignment">
|
||||
<set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="9" column="1" colspan="2">
|
||||
<widget class="QPlainTextEdit" name="editFlags">
|
||||
<property name="toolTip">
|
||||
<string><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd">
|
||||
<html><head><meta name="qrichtext" content="1" /><style type="text/css">
|
||||
p, li { white-space: pre-wrap; }
|
||||
</style></head><body style=" font-family:'MS Shell Dlg 2'; font-size:8.25pt; font-weight:400; font-style:normal;">
|
||||
<p align="center" style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-size:8pt;">Compiler/Linker flags may include all commands except the source files list. Additional libraries can be included here.</span></p></body></html></string>
|
||||
</property>
|
||||
<property name="styleSheet">
|
||||
<string/>
|
||||
</property>
|
||||
<property name="lineWrapMode">
|
||||
<enum>QPlainTextEdit::NoWrap</enum>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="10" column="0">
|
||||
<widget class="QLabel" name="label_7">
|
||||
<property name="text">
|
||||
<string>Launch Parameters:</string>
|
||||
</property>
|
||||
<property name="alignment">
|
||||
<set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="10" column="1" colspan="2">
|
||||
<widget class="QLineEdit" name="editLaunchParams"/>
|
||||
</item>
|
||||
<item row="11" column="0">
|
||||
<widget class="QLabel" name="label_8">
|
||||
<property name="text">
|
||||
<string>Launch Program:</string>
|
||||
</property>
|
||||
<property name="alignment">
|
||||
<set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="11" column="1" colspan="2">
|
||||
<widget class="QLineEdit" name="editLaunchExe"/>
|
||||
</item>
|
||||
<item row="8" column="0">
|
||||
<widget class="QLabel" name="label_13">
|
||||
<property name="text">
|
||||
<string>Backup Location:</string>
|
||||
</property>
|
||||
<property name="alignment">
|
||||
<set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="8" column="1">
|
||||
<widget class="QLineEdit" name="editBackup"/>
|
||||
</item>
|
||||
<item row="4" column="1">
|
||||
<widget class="QLineEdit" name="editOutName">
|
||||
<property name="toolTip">
|
||||
<string><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd">
|
||||
<html><head><meta name="qrichtext" content="1" /><style type="text/css">
|
||||
p, li { white-space: pre-wrap; }
|
||||
</style></head><body style=" font-family:'MS Shell Dlg 2'; font-size:8.25pt; font-weight:400; font-style:normal;">
|
||||
<p align="center" style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">Output name is used as final name for .hbi .hbp .exe .lib .a and will be added to the paths retrieved via &lt;Project Location&gt;, &lt;Working Folder&gt;, &lt;Destination Folder&gt;, etc. So this is a very important component.</p></body></html></string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="4" column="0">
|
||||
<widget class="QLabel" name="label_6">
|
||||
<property name="text">
|
||||
<string>Output Name:</string>
|
||||
</property>
|
||||
<property name="alignment">
|
||||
<set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="3" column="2">
|
||||
<widget class="QToolButton" name="buttonChoosePrjLoc">
|
||||
<property name="text">
|
||||
<string>...</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="8" column="2">
|
||||
<widget class="QToolButton" name="buttonBackup">
|
||||
<property name="text">
|
||||
<string>...</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="6" column="2">
|
||||
<widget class="QToolButton" name="buttonChooseDest">
|
||||
<property name="text">
|
||||
<string>...</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="5" column="2">
|
||||
<widget class="QToolButton" name="buttonChooseWd">
|
||||
<property name="text">
|
||||
<string>...</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="0" column="1">
|
||||
<layout class="QHBoxLayout" name="horizontalLayout_7">
|
||||
<item>
|
||||
<widget class="QToolButton" name="buttonHbp">
|
||||
<property name="toolTip">
|
||||
<string><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd">
|
||||
<html><head><meta name="qrichtext" content="1" /><style type="text/css">
|
||||
p, li { white-space: pre-wrap; }
|
||||
</style></head><body style=" font-family:'MS Shell Dlg 2'; font-size:8.25pt; font-weight:400; font-style:normal;">
|
||||
<p align="center" style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">Loading a .hbp project file is essentially a </p>
|
||||
<p align="center" style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">task of redefining its flow and contents order.</p>
|
||||
<p align="center" style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">hbIDE rewrites the existing .hbp file if the </p>
|
||||
<p align="center" style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">"Project Location" points to same folder </p>
|
||||
<p align="center" style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">where your such loaded .hbp resides.</p>
|
||||
<p align="center" style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">So</p>
|
||||
<p align="center" style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-weight:600;">take care to change the "Project Location"</span></p>
|
||||
<p align="center" style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">to different folder than home folder of .hbp.</p>
|
||||
<p align="center" style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">This is done at the time of "Build" process.</p></body></html></string>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>...</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="QToolButton" name="buttonXmate">
|
||||
<property name="toolTip">
|
||||
<string><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd">
|
||||
<html><head><meta name="qrichtext" content="1" /><style type="text/css">
|
||||
p, li { white-space: pre-wrap; }
|
||||
</style></head><body style=" font-family:'MS Shell Dlg 2'; font-size:8.25pt; font-weight:400; font-style:normal;">
|
||||
<p align="center" style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">Load an xMate project file.</p>
|
||||
<p align="center" style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">This feature is available only for new projects.</p>
|
||||
<p align="center" style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">hbIDE attempts to recognize various components</p>
|
||||
<p align="center" style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">but it is possible that it may not load everything.</p>
|
||||
<p align="center" style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">So you may need manual editing.</p></body></html></string>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>...</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>
|
||||
</layout>
|
||||
</item>
|
||||
</layout>
|
||||
</widget>
|
||||
<widget class="QWidget" name="tabFiles">
|
||||
<attribute name="title">
|
||||
<string>Sources</string>
|
||||
</attribute>
|
||||
<layout class="QGridLayout" name="gridLayout_2">
|
||||
<item row="1" column="1" colspan="11">
|
||||
<widget class="QPlainTextEdit" name="editSources">
|
||||
<property name="toolTip">
|
||||
<string><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd">
|
||||
<html><head><meta name="qrichtext" content="1" /><style type="text/css">
|
||||
p, li { white-space: pre-wrap; }
|
||||
</style></head><body style=" font-family:'MS Shell Dlg 2'; font-size:8.25pt; font-weight:400; font-style:normal;">
|
||||
<p align="center" style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">You can include hereunder any type of file which can be edited via plain text editor. One file per line. You can use meta-keys to define your source paths to make your projects location independant. </p>
|
||||
<p align="center" style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"></p>
|
||||
<p align="center" style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">NOTE:</p>
|
||||
<p align="center" style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">Only .prg .c .cpp .rc .res files will be supplied to the HBMK2. All other files will be made visible for editing in &lt;Project Tree&gt;.</p></body></html></string>
|
||||
</property>
|
||||
<property name="styleSheet">
|
||||
<string/>
|
||||
</property>
|
||||
<property name="lineWrapMode">
|
||||
<enum>QPlainTextEdit::NoWrap</enum>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="0" column="1">
|
||||
<widget class="QToolButton" name="buttonSelect">
|
||||
<property name="toolTip">
|
||||
<string>Select Sources</string>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string/>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="0" column="2">
|
||||
<widget class="QToolButton" name="buttonSort">
|
||||
<property name="toolTip">
|
||||
<string>Sort by Ascending Order</string>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string/>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="0" column="3">
|
||||
<widget class="QToolButton" name="buttonSortZA">
|
||||
<property name="toolTip">
|
||||
<string>Sort by Descending Order</string>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string/>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="0" column="4">
|
||||
<widget class="QToolButton" name="buttonSortOrg">
|
||||
<property name="toolTip">
|
||||
<string>Organize by Type and Sort Ascending</string>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string/>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
</layout>
|
||||
</widget>
|
||||
<widget class="QWidget" name="tabMeta">
|
||||
<attribute name="title">
|
||||
<string>Meta Data</string>
|
||||
</attribute>
|
||||
<layout class="QGridLayout" name="gridLayout_3">
|
||||
<item row="0" column="0">
|
||||
<widget class="QPlainTextEdit" name="editMetaHelp">
|
||||
<property name="sizePolicy">
|
||||
<sizepolicy hsizetype="Expanding" vsizetype="Minimum">
|
||||
<horstretch>0</horstretch>
|
||||
<verstretch>0</verstretch>
|
||||
</sizepolicy>
|
||||
</property>
|
||||
<property name="styleSheet">
|
||||
<string>background-color: rgb(171, 171, 171);</string>
|
||||
</property>
|
||||
<property name="tabChangesFocus">
|
||||
<bool>true</bool>
|
||||
</property>
|
||||
<property name="readOnly">
|
||||
<bool>true</bool>
|
||||
</property>
|
||||
<property name="plainText">
|
||||
<string>HBIDE will employ the concept of meta-data which will be used to parse the paths or other info supplied to the interface.
|
||||
|
||||
Usually meta-key is enclosed in curly braces, but due to the fact that HBMK2 already exploits it, HBIDE will recognize meta-key in angled brackets.
|
||||
|
||||
Please enter meta-keys and their values like :
|
||||
MySourcePath = c:/dev_sources/vouch
|
||||
in the QTextEdit below. Then whereever you will supply any key anywhere in the input fields of HBIDE interface, just enclose it in angled brackets like :
|
||||
<MySourcePath>/vouch.prg.
|
||||
Note that keys are case sensitive. So MySourcePath <> MYSOURCEPath.
|
||||
|
||||
HBIDE internally employs few keys which are shown below and are always include in the project. These accompany the value as its relevance and not as literal.
|
||||
|
||||
Enjoy
|
||||
Pritpal Bedi</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="1" column="0">
|
||||
<widget class="QPlainTextEdit" name="editMetaData">
|
||||
<property name="toolTip">
|
||||
<string><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd">
|
||||
<html><head><meta name="qrichtext" content="1" /><style type="text/css">
|
||||
p, li { white-space: pre-wrap; }
|
||||
</style></head><body style=" font-family:'MS Shell Dlg 2'; font-size:8.25pt; font-weight:400; font-style:normal;">
|
||||
<p align="center" style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">Meta-keys are a special way of keeping generic information which is of repeated and/or of dynamic nature. HBIDE implements meta key/value pair more comprehensively. It allows you to write an expression for the value part which get evaluated at the time project is loaded. The only point to take into consideration is that value returned by such expression must be of type character.</p>
|
||||
<p align="center" style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"></p>
|
||||
<p align="center" style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">The expression is evaluated only once and keeps its value until the HBIDE interface is closed. In case of any error, the expression string itself is returned.</p></body></html></string>
|
||||
</property>
|
||||
<property name="styleSheet">
|
||||
<string/>
|
||||
</property>
|
||||
<property name="lineWrapMode">
|
||||
<enum>QPlainTextEdit::NoWrap</enum>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
</layout>
|
||||
</widget>
|
||||
<widget class="QWidget" name="tabHbp">
|
||||
<attribute name="title">
|
||||
<string>hbp</string>
|
||||
</attribute>
|
||||
<layout class="QGridLayout" name="gridLayout_4">
|
||||
<item row="0" column="0">
|
||||
<widget class="QPlainTextEdit" name="editHbp">
|
||||
<property name="toolTip">
|
||||
<string><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd">
|
||||
<html><head><meta name="qrichtext" content="1" /><style type="text/css">
|
||||
p, li { white-space: pre-wrap; }
|
||||
</style></head><body style=" font-family:'MS Shell Dlg 2'; font-size:8.25pt; font-weight:400; font-style:normal;">
|
||||
<p align="center" style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-size:8pt;">Here you can view in real-time the resultant &lt;hbp&gt; output which will be supplied to HBMK2. This view may give you insight about your source layout and many other facts.</span></p>
|
||||
<p align="center" style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; font-size:8pt;"></p>
|
||||
<p align="center" style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-size:14pt; font-weight:600; text-decoration: underline;">Enjoy</span></p></body></html></string>
|
||||
</property>
|
||||
<property name="styleSheet">
|
||||
<string/>
|
||||
</property>
|
||||
<property name="lineWrapMode">
|
||||
<enum>QPlainTextEdit::NoWrap</enum>
|
||||
</property>
|
||||
<property name="readOnly">
|
||||
<bool>true</bool>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
</layout>
|
||||
</widget>
|
||||
<widget class="QWidget" name="tabCompilers">
|
||||
<attribute name="title">
|
||||
<string>Environments</string>
|
||||
</attribute>
|
||||
<layout class="QGridLayout" name="gridLayout_5">
|
||||
<item row="3" column="1">
|
||||
<widget class="QPlainTextEdit" name="editCompilers">
|
||||
<property name="toolTip">
|
||||
<string><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd">
|
||||
<html><head><meta name="qrichtext" content="1" /><style type="text/css">
|
||||
p, li { white-space: pre-wrap; }
|
||||
</style></head><body style=" font-family:'MS Shell Dlg 2'; font-size:8.25pt; font-weight:400; font-style:normal;">
|
||||
<p align="center" style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-size:8pt;">HBIDE employes the concept of keeping everything tied together. It means all complier specific environments are kept together in a convinient way and applied as per need.</span></p>
|
||||
<p align="center" style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; font-size:8pt;"></p>
|
||||
<p align="center" style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-size:8pt;">So here you view/edit all the environments you employ in your applications. At the time you will build the project, a list of stated environments will be presented to choose from.</span></p>
|
||||
<p align="center" style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; font-size:8pt;"></p>
|
||||
<p align="center" style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-size:8pt;">This opens up the possibility to experiment with different compilers without re-opening the IDE or setting up the envvars manually.</span></p></body></html></string>
|
||||
</property>
|
||||
<property name="styleSheet">
|
||||
<string/>
|
||||
</property>
|
||||
<property name="lineWrapMode">
|
||||
<enum>QPlainTextEdit::NoWrap</enum>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="0" column="1">
|
||||
<layout class="QHBoxLayout" name="horizontalLayout_2">
|
||||
<item>
|
||||
<widget class="QLabel" name="label_10">
|
||||
<property name="minimumSize">
|
||||
<size>
|
||||
<width>100</width>
|
||||
<height>0</height>
|
||||
</size>
|
||||
</property>
|
||||
<property name="maximumSize">
|
||||
<size>
|
||||
<width>100</width>
|
||||
<height>16777215</height>
|
||||
</size>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>Path to hbmk2</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="QLineEdit" name="editPathMk2"/>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="QToolButton" name="buttonPathMk2">
|
||||
<property name="minimumSize">
|
||||
<size>
|
||||
<width>0</width>
|
||||
<height>0</height>
|
||||
</size>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string/>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
</layout>
|
||||
</item>
|
||||
<item row="1" column="1">
|
||||
<layout class="QHBoxLayout" name="horizontalLayout_3">
|
||||
<item>
|
||||
<widget class="QLabel" name="label_12">
|
||||
<property name="minimumSize">
|
||||
<size>
|
||||
<width>100</width>
|
||||
<height>0</height>
|
||||
</size>
|
||||
</property>
|
||||
<property name="maximumSize">
|
||||
<size>
|
||||
<width>100</width>
|
||||
<height>16777215</height>
|
||||
</size>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>Path to hbIDE.env</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="QLineEdit" name="editPathEnv"/>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="QToolButton" name="buttonPathEnv">
|
||||
<property name="text">
|
||||
<string/>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
</layout>
|
||||
</item>
|
||||
<item row="2" column="1">
|
||||
<widget class="QToolButton" name="buttonSaveEnv">
|
||||
<property name="toolTip">
|
||||
<string>The environment definitions will not be saved along the project details. You need to click me in order to save it permanently.</string>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>...</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
</layout>
|
||||
</widget>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<layout class="QHBoxLayout" name="horizontalLayout">
|
||||
<item>
|
||||
<widget class="QPushButton" name="buttonSaveExit">
|
||||
<property name="text">
|
||||
<string>Save and Exit</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="QPushButton" name="buttonSave">
|
||||
<property name="text">
|
||||
<string>Save</string>
|
||||
</property>
|
||||
<property name="autoDefault">
|
||||
<bool>false</bool>
|
||||
</property>
|
||||
<property name="default">
|
||||
<bool>true</bool>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="QPushButton" name="buttonCn">
|
||||
<property name="text">
|
||||
<string>Cancel</string>
|
||||
</property>
|
||||
<property name="autoDefault">
|
||||
<bool>false</bool>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
</layout>
|
||||
</item>
|
||||
</layout>
|
||||
</widget>
|
||||
<tabstops>
|
||||
<tabstop>comboPrjType</tabstop>
|
||||
<tabstop>editPrjTitle</tabstop>
|
||||
<tabstop>editPrjLoctn</tabstop>
|
||||
<tabstop>editWrkFolder</tabstop>
|
||||
<tabstop>editDstFolder</tabstop>
|
||||
<tabstop>editFlags</tabstop>
|
||||
<tabstop>editLaunchParams</tabstop>
|
||||
<tabstop>editLaunchExe</tabstop>
|
||||
<tabstop>editSources</tabstop>
|
||||
<tabstop>editMetaData</tabstop>
|
||||
<tabstop>editMetaHelp</tabstop>
|
||||
<tabstop>editHbp</tabstop>
|
||||
<tabstop>editCompilers</tabstop>
|
||||
<tabstop>tabWidget</tabstop>
|
||||
</tabstops>
|
||||
<resources/>
|
||||
<connections/>
|
||||
</ui>
|
||||
@@ -1,654 +0,0 @@
|
||||
/********************************************************************************
|
||||
** Form generated from reading ui file 'projectproperties.ui'
|
||||
**
|
||||
** Created: Wed Feb 24 16:25:25 2010
|
||||
** by: Qt User Interface Compiler version 4.5.2
|
||||
**
|
||||
** WARNING! All changes made in this file will be lost when recompiling ui file!
|
||||
********************************************************************************/
|
||||
|
||||
#ifndef PROJECTPROPERTIES_H
|
||||
#define PROJECTPROPERTIES_H
|
||||
|
||||
#include <QtCore/QVariant>
|
||||
#include <QtGui/QAction>
|
||||
#include <QtGui/QApplication>
|
||||
#include <QtGui/QButtonGroup>
|
||||
#include <QtGui/QComboBox>
|
||||
#include <QtGui/QDialog>
|
||||
#include <QtGui/QGridLayout>
|
||||
#include <QtGui/QHBoxLayout>
|
||||
#include <QtGui/QHeaderView>
|
||||
#include <QtGui/QLabel>
|
||||
#include <QtGui/QLineEdit>
|
||||
#include <QtGui/QPlainTextEdit>
|
||||
#include <QtGui/QPushButton>
|
||||
#include <QtGui/QSpacerItem>
|
||||
#include <QtGui/QTabWidget>
|
||||
#include <QtGui/QToolButton>
|
||||
#include <QtGui/QVBoxLayout>
|
||||
#include <QtGui/QWidget>
|
||||
|
||||
QT_BEGIN_NAMESPACE
|
||||
|
||||
class Ui_ProjectProperties
|
||||
{
|
||||
public:
|
||||
QVBoxLayout *verticalLayout;
|
||||
QTabWidget *tabWidget;
|
||||
QWidget *tabGeneral;
|
||||
QGridLayout *gridLayout;
|
||||
QLabel *label;
|
||||
QComboBox *comboPrjType;
|
||||
QLabel *label_2;
|
||||
QLineEdit *editPrjTitle;
|
||||
QLabel *label_3;
|
||||
QLineEdit *editPrjLoctn;
|
||||
QLabel *label_4;
|
||||
QLineEdit *editWrkFolder;
|
||||
QLabel *label_5;
|
||||
QLineEdit *editDstFolder;
|
||||
QLabel *label_9;
|
||||
QPlainTextEdit *editFlags;
|
||||
QLabel *label_7;
|
||||
QLineEdit *editLaunchParams;
|
||||
QLabel *label_8;
|
||||
QLineEdit *editLaunchExe;
|
||||
QLabel *label_13;
|
||||
QLineEdit *editBackup;
|
||||
QLineEdit *editOutName;
|
||||
QLabel *label_6;
|
||||
QToolButton *buttonChoosePrjLoc;
|
||||
QToolButton *buttonBackup;
|
||||
QToolButton *buttonChooseDest;
|
||||
QToolButton *buttonChooseWd;
|
||||
QHBoxLayout *horizontalLayout_7;
|
||||
QToolButton *buttonHbp;
|
||||
QToolButton *buttonXmate;
|
||||
QSpacerItem *horizontalSpacer;
|
||||
QWidget *tabFiles;
|
||||
QGridLayout *gridLayout_2;
|
||||
QPlainTextEdit *editSources;
|
||||
QToolButton *buttonSelect;
|
||||
QToolButton *buttonSort;
|
||||
QToolButton *buttonSortZA;
|
||||
QToolButton *buttonSortOrg;
|
||||
QWidget *tabMeta;
|
||||
QGridLayout *gridLayout_3;
|
||||
QPlainTextEdit *editMetaHelp;
|
||||
QPlainTextEdit *editMetaData;
|
||||
QWidget *tabHbp;
|
||||
QGridLayout *gridLayout_4;
|
||||
QPlainTextEdit *editHbp;
|
||||
QWidget *tabCompilers;
|
||||
QGridLayout *gridLayout_5;
|
||||
QPlainTextEdit *editCompilers;
|
||||
QHBoxLayout *horizontalLayout_2;
|
||||
QLabel *label_10;
|
||||
QLineEdit *editPathMk2;
|
||||
QToolButton *buttonPathMk2;
|
||||
QHBoxLayout *horizontalLayout_3;
|
||||
QLabel *label_12;
|
||||
QLineEdit *editPathEnv;
|
||||
QToolButton *buttonPathEnv;
|
||||
QToolButton *buttonSaveEnv;
|
||||
QHBoxLayout *horizontalLayout;
|
||||
QPushButton *buttonSaveExit;
|
||||
QPushButton *buttonSave;
|
||||
QPushButton *buttonCn;
|
||||
|
||||
void setupUi(QDialog *ProjectProperties)
|
||||
{
|
||||
if (ProjectProperties->objectName().isEmpty())
|
||||
ProjectProperties->setObjectName(QString::fromUtf8("ProjectProperties"));
|
||||
ProjectProperties->resize(393, 478);
|
||||
QSizePolicy sizePolicy(QSizePolicy::Preferred, QSizePolicy::Preferred);
|
||||
sizePolicy.setHorizontalStretch(0);
|
||||
sizePolicy.setVerticalStretch(0);
|
||||
sizePolicy.setHeightForWidth(ProjectProperties->sizePolicy().hasHeightForWidth());
|
||||
ProjectProperties->setSizePolicy(sizePolicy);
|
||||
verticalLayout = new QVBoxLayout(ProjectProperties);
|
||||
verticalLayout->setObjectName(QString::fromUtf8("verticalLayout"));
|
||||
tabWidget = new QTabWidget(ProjectProperties);
|
||||
tabWidget->setObjectName(QString::fromUtf8("tabWidget"));
|
||||
tabGeneral = new QWidget();
|
||||
tabGeneral->setObjectName(QString::fromUtf8("tabGeneral"));
|
||||
gridLayout = new QGridLayout(tabGeneral);
|
||||
gridLayout->setObjectName(QString::fromUtf8("gridLayout"));
|
||||
label = new QLabel(tabGeneral);
|
||||
label->setObjectName(QString::fromUtf8("label"));
|
||||
QFont font;
|
||||
font.setBold(true);
|
||||
font.setWeight(75);
|
||||
label->setFont(font);
|
||||
label->setAlignment(Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter);
|
||||
|
||||
gridLayout->addWidget(label, 1, 0, 1, 1);
|
||||
|
||||
comboPrjType = new QComboBox(tabGeneral);
|
||||
comboPrjType->setObjectName(QString::fromUtf8("comboPrjType"));
|
||||
comboPrjType->setEditable(false);
|
||||
|
||||
gridLayout->addWidget(comboPrjType, 1, 1, 1, 1);
|
||||
|
||||
label_2 = new QLabel(tabGeneral);
|
||||
label_2->setObjectName(QString::fromUtf8("label_2"));
|
||||
label_2->setAlignment(Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter);
|
||||
|
||||
gridLayout->addWidget(label_2, 2, 0, 1, 1);
|
||||
|
||||
editPrjTitle = new QLineEdit(tabGeneral);
|
||||
editPrjTitle->setObjectName(QString::fromUtf8("editPrjTitle"));
|
||||
|
||||
gridLayout->addWidget(editPrjTitle, 2, 1, 1, 1);
|
||||
|
||||
label_3 = new QLabel(tabGeneral);
|
||||
label_3->setObjectName(QString::fromUtf8("label_3"));
|
||||
label_3->setAlignment(Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter);
|
||||
|
||||
gridLayout->addWidget(label_3, 3, 0, 1, 1);
|
||||
|
||||
editPrjLoctn = new QLineEdit(tabGeneral);
|
||||
editPrjLoctn->setObjectName(QString::fromUtf8("editPrjLoctn"));
|
||||
|
||||
gridLayout->addWidget(editPrjLoctn, 3, 1, 1, 1);
|
||||
|
||||
label_4 = new QLabel(tabGeneral);
|
||||
label_4->setObjectName(QString::fromUtf8("label_4"));
|
||||
label_4->setAlignment(Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter);
|
||||
|
||||
gridLayout->addWidget(label_4, 5, 0, 1, 1);
|
||||
|
||||
editWrkFolder = new QLineEdit(tabGeneral);
|
||||
editWrkFolder->setObjectName(QString::fromUtf8("editWrkFolder"));
|
||||
|
||||
gridLayout->addWidget(editWrkFolder, 5, 1, 1, 1);
|
||||
|
||||
label_5 = new QLabel(tabGeneral);
|
||||
label_5->setObjectName(QString::fromUtf8("label_5"));
|
||||
label_5->setAlignment(Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter);
|
||||
|
||||
gridLayout->addWidget(label_5, 6, 0, 1, 1);
|
||||
|
||||
editDstFolder = new QLineEdit(tabGeneral);
|
||||
editDstFolder->setObjectName(QString::fromUtf8("editDstFolder"));
|
||||
|
||||
gridLayout->addWidget(editDstFolder, 6, 1, 1, 1);
|
||||
|
||||
label_9 = new QLabel(tabGeneral);
|
||||
label_9->setObjectName(QString::fromUtf8("label_9"));
|
||||
label_9->setAlignment(Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter);
|
||||
|
||||
gridLayout->addWidget(label_9, 9, 0, 1, 1);
|
||||
|
||||
editFlags = new QPlainTextEdit(tabGeneral);
|
||||
editFlags->setObjectName(QString::fromUtf8("editFlags"));
|
||||
editFlags->setLineWrapMode(QPlainTextEdit::NoWrap);
|
||||
|
||||
gridLayout->addWidget(editFlags, 9, 1, 1, 2);
|
||||
|
||||
label_7 = new QLabel(tabGeneral);
|
||||
label_7->setObjectName(QString::fromUtf8("label_7"));
|
||||
label_7->setAlignment(Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter);
|
||||
|
||||
gridLayout->addWidget(label_7, 10, 0, 1, 1);
|
||||
|
||||
editLaunchParams = new QLineEdit(tabGeneral);
|
||||
editLaunchParams->setObjectName(QString::fromUtf8("editLaunchParams"));
|
||||
|
||||
gridLayout->addWidget(editLaunchParams, 10, 1, 1, 2);
|
||||
|
||||
label_8 = new QLabel(tabGeneral);
|
||||
label_8->setObjectName(QString::fromUtf8("label_8"));
|
||||
label_8->setAlignment(Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter);
|
||||
|
||||
gridLayout->addWidget(label_8, 11, 0, 1, 1);
|
||||
|
||||
editLaunchExe = new QLineEdit(tabGeneral);
|
||||
editLaunchExe->setObjectName(QString::fromUtf8("editLaunchExe"));
|
||||
|
||||
gridLayout->addWidget(editLaunchExe, 11, 1, 1, 2);
|
||||
|
||||
label_13 = new QLabel(tabGeneral);
|
||||
label_13->setObjectName(QString::fromUtf8("label_13"));
|
||||
label_13->setAlignment(Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter);
|
||||
|
||||
gridLayout->addWidget(label_13, 8, 0, 1, 1);
|
||||
|
||||
editBackup = new QLineEdit(tabGeneral);
|
||||
editBackup->setObjectName(QString::fromUtf8("editBackup"));
|
||||
|
||||
gridLayout->addWidget(editBackup, 8, 1, 1, 1);
|
||||
|
||||
editOutName = new QLineEdit(tabGeneral);
|
||||
editOutName->setObjectName(QString::fromUtf8("editOutName"));
|
||||
|
||||
gridLayout->addWidget(editOutName, 4, 1, 1, 1);
|
||||
|
||||
label_6 = new QLabel(tabGeneral);
|
||||
label_6->setObjectName(QString::fromUtf8("label_6"));
|
||||
label_6->setAlignment(Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter);
|
||||
|
||||
gridLayout->addWidget(label_6, 4, 0, 1, 1);
|
||||
|
||||
buttonChoosePrjLoc = new QToolButton(tabGeneral);
|
||||
buttonChoosePrjLoc->setObjectName(QString::fromUtf8("buttonChoosePrjLoc"));
|
||||
|
||||
gridLayout->addWidget(buttonChoosePrjLoc, 3, 2, 1, 1);
|
||||
|
||||
buttonBackup = new QToolButton(tabGeneral);
|
||||
buttonBackup->setObjectName(QString::fromUtf8("buttonBackup"));
|
||||
|
||||
gridLayout->addWidget(buttonBackup, 8, 2, 1, 1);
|
||||
|
||||
buttonChooseDest = new QToolButton(tabGeneral);
|
||||
buttonChooseDest->setObjectName(QString::fromUtf8("buttonChooseDest"));
|
||||
|
||||
gridLayout->addWidget(buttonChooseDest, 6, 2, 1, 1);
|
||||
|
||||
buttonChooseWd = new QToolButton(tabGeneral);
|
||||
buttonChooseWd->setObjectName(QString::fromUtf8("buttonChooseWd"));
|
||||
|
||||
gridLayout->addWidget(buttonChooseWd, 5, 2, 1, 1);
|
||||
|
||||
horizontalLayout_7 = new QHBoxLayout();
|
||||
horizontalLayout_7->setObjectName(QString::fromUtf8("horizontalLayout_7"));
|
||||
buttonHbp = new QToolButton(tabGeneral);
|
||||
buttonHbp->setObjectName(QString::fromUtf8("buttonHbp"));
|
||||
|
||||
horizontalLayout_7->addWidget(buttonHbp);
|
||||
|
||||
buttonXmate = new QToolButton(tabGeneral);
|
||||
buttonXmate->setObjectName(QString::fromUtf8("buttonXmate"));
|
||||
|
||||
horizontalLayout_7->addWidget(buttonXmate);
|
||||
|
||||
horizontalSpacer = new QSpacerItem(40, 20, QSizePolicy::Expanding, QSizePolicy::Minimum);
|
||||
|
||||
horizontalLayout_7->addItem(horizontalSpacer);
|
||||
|
||||
|
||||
gridLayout->addLayout(horizontalLayout_7, 0, 1, 1, 1);
|
||||
|
||||
tabWidget->addTab(tabGeneral, QString());
|
||||
tabFiles = new QWidget();
|
||||
tabFiles->setObjectName(QString::fromUtf8("tabFiles"));
|
||||
gridLayout_2 = new QGridLayout(tabFiles);
|
||||
gridLayout_2->setObjectName(QString::fromUtf8("gridLayout_2"));
|
||||
editSources = new QPlainTextEdit(tabFiles);
|
||||
editSources->setObjectName(QString::fromUtf8("editSources"));
|
||||
editSources->setLineWrapMode(QPlainTextEdit::NoWrap);
|
||||
|
||||
gridLayout_2->addWidget(editSources, 1, 1, 1, 11);
|
||||
|
||||
buttonSelect = new QToolButton(tabFiles);
|
||||
buttonSelect->setObjectName(QString::fromUtf8("buttonSelect"));
|
||||
|
||||
gridLayout_2->addWidget(buttonSelect, 0, 1, 1, 1);
|
||||
|
||||
buttonSort = new QToolButton(tabFiles);
|
||||
buttonSort->setObjectName(QString::fromUtf8("buttonSort"));
|
||||
|
||||
gridLayout_2->addWidget(buttonSort, 0, 2, 1, 1);
|
||||
|
||||
buttonSortZA = new QToolButton(tabFiles);
|
||||
buttonSortZA->setObjectName(QString::fromUtf8("buttonSortZA"));
|
||||
|
||||
gridLayout_2->addWidget(buttonSortZA, 0, 3, 1, 1);
|
||||
|
||||
buttonSortOrg = new QToolButton(tabFiles);
|
||||
buttonSortOrg->setObjectName(QString::fromUtf8("buttonSortOrg"));
|
||||
|
||||
gridLayout_2->addWidget(buttonSortOrg, 0, 4, 1, 1);
|
||||
|
||||
tabWidget->addTab(tabFiles, QString());
|
||||
tabMeta = new QWidget();
|
||||
tabMeta->setObjectName(QString::fromUtf8("tabMeta"));
|
||||
gridLayout_3 = new QGridLayout(tabMeta);
|
||||
gridLayout_3->setObjectName(QString::fromUtf8("gridLayout_3"));
|
||||
editMetaHelp = new QPlainTextEdit(tabMeta);
|
||||
editMetaHelp->setObjectName(QString::fromUtf8("editMetaHelp"));
|
||||
QSizePolicy sizePolicy1(QSizePolicy::Expanding, QSizePolicy::Minimum);
|
||||
sizePolicy1.setHorizontalStretch(0);
|
||||
sizePolicy1.setVerticalStretch(0);
|
||||
sizePolicy1.setHeightForWidth(editMetaHelp->sizePolicy().hasHeightForWidth());
|
||||
editMetaHelp->setSizePolicy(sizePolicy1);
|
||||
editMetaHelp->setTabChangesFocus(true);
|
||||
editMetaHelp->setReadOnly(true);
|
||||
|
||||
gridLayout_3->addWidget(editMetaHelp, 0, 0, 1, 1);
|
||||
|
||||
editMetaData = new QPlainTextEdit(tabMeta);
|
||||
editMetaData->setObjectName(QString::fromUtf8("editMetaData"));
|
||||
editMetaData->setLineWrapMode(QPlainTextEdit::NoWrap);
|
||||
|
||||
gridLayout_3->addWidget(editMetaData, 1, 0, 1, 1);
|
||||
|
||||
tabWidget->addTab(tabMeta, QString());
|
||||
tabHbp = new QWidget();
|
||||
tabHbp->setObjectName(QString::fromUtf8("tabHbp"));
|
||||
gridLayout_4 = new QGridLayout(tabHbp);
|
||||
gridLayout_4->setObjectName(QString::fromUtf8("gridLayout_4"));
|
||||
editHbp = new QPlainTextEdit(tabHbp);
|
||||
editHbp->setObjectName(QString::fromUtf8("editHbp"));
|
||||
editHbp->setLineWrapMode(QPlainTextEdit::NoWrap);
|
||||
editHbp->setReadOnly(true);
|
||||
|
||||
gridLayout_4->addWidget(editHbp, 0, 0, 1, 1);
|
||||
|
||||
tabWidget->addTab(tabHbp, QString());
|
||||
tabCompilers = new QWidget();
|
||||
tabCompilers->setObjectName(QString::fromUtf8("tabCompilers"));
|
||||
gridLayout_5 = new QGridLayout(tabCompilers);
|
||||
gridLayout_5->setObjectName(QString::fromUtf8("gridLayout_5"));
|
||||
editCompilers = new QPlainTextEdit(tabCompilers);
|
||||
editCompilers->setObjectName(QString::fromUtf8("editCompilers"));
|
||||
editCompilers->setLineWrapMode(QPlainTextEdit::NoWrap);
|
||||
|
||||
gridLayout_5->addWidget(editCompilers, 3, 1, 1, 1);
|
||||
|
||||
horizontalLayout_2 = new QHBoxLayout();
|
||||
horizontalLayout_2->setObjectName(QString::fromUtf8("horizontalLayout_2"));
|
||||
label_10 = new QLabel(tabCompilers);
|
||||
label_10->setObjectName(QString::fromUtf8("label_10"));
|
||||
label_10->setMinimumSize(QSize(100, 0));
|
||||
label_10->setMaximumSize(QSize(100, 16777215));
|
||||
|
||||
horizontalLayout_2->addWidget(label_10);
|
||||
|
||||
editPathMk2 = new QLineEdit(tabCompilers);
|
||||
editPathMk2->setObjectName(QString::fromUtf8("editPathMk2"));
|
||||
|
||||
horizontalLayout_2->addWidget(editPathMk2);
|
||||
|
||||
buttonPathMk2 = new QToolButton(tabCompilers);
|
||||
buttonPathMk2->setObjectName(QString::fromUtf8("buttonPathMk2"));
|
||||
buttonPathMk2->setMinimumSize(QSize(0, 0));
|
||||
|
||||
horizontalLayout_2->addWidget(buttonPathMk2);
|
||||
|
||||
|
||||
gridLayout_5->addLayout(horizontalLayout_2, 0, 1, 1, 1);
|
||||
|
||||
horizontalLayout_3 = new QHBoxLayout();
|
||||
horizontalLayout_3->setObjectName(QString::fromUtf8("horizontalLayout_3"));
|
||||
label_12 = new QLabel(tabCompilers);
|
||||
label_12->setObjectName(QString::fromUtf8("label_12"));
|
||||
label_12->setMinimumSize(QSize(100, 0));
|
||||
label_12->setMaximumSize(QSize(100, 16777215));
|
||||
|
||||
horizontalLayout_3->addWidget(label_12);
|
||||
|
||||
editPathEnv = new QLineEdit(tabCompilers);
|
||||
editPathEnv->setObjectName(QString::fromUtf8("editPathEnv"));
|
||||
|
||||
horizontalLayout_3->addWidget(editPathEnv);
|
||||
|
||||
buttonPathEnv = new QToolButton(tabCompilers);
|
||||
buttonPathEnv->setObjectName(QString::fromUtf8("buttonPathEnv"));
|
||||
|
||||
horizontalLayout_3->addWidget(buttonPathEnv);
|
||||
|
||||
|
||||
gridLayout_5->addLayout(horizontalLayout_3, 1, 1, 1, 1);
|
||||
|
||||
buttonSaveEnv = new QToolButton(tabCompilers);
|
||||
buttonSaveEnv->setObjectName(QString::fromUtf8("buttonSaveEnv"));
|
||||
|
||||
gridLayout_5->addWidget(buttonSaveEnv, 2, 1, 1, 1);
|
||||
|
||||
tabWidget->addTab(tabCompilers, QString());
|
||||
|
||||
verticalLayout->addWidget(tabWidget);
|
||||
|
||||
horizontalLayout = new QHBoxLayout();
|
||||
horizontalLayout->setObjectName(QString::fromUtf8("horizontalLayout"));
|
||||
buttonSaveExit = new QPushButton(ProjectProperties);
|
||||
buttonSaveExit->setObjectName(QString::fromUtf8("buttonSaveExit"));
|
||||
|
||||
horizontalLayout->addWidget(buttonSaveExit);
|
||||
|
||||
buttonSave = new QPushButton(ProjectProperties);
|
||||
buttonSave->setObjectName(QString::fromUtf8("buttonSave"));
|
||||
buttonSave->setAutoDefault(false);
|
||||
buttonSave->setDefault(true);
|
||||
|
||||
horizontalLayout->addWidget(buttonSave);
|
||||
|
||||
buttonCn = new QPushButton(ProjectProperties);
|
||||
buttonCn->setObjectName(QString::fromUtf8("buttonCn"));
|
||||
buttonCn->setAutoDefault(false);
|
||||
|
||||
horizontalLayout->addWidget(buttonCn);
|
||||
|
||||
|
||||
verticalLayout->addLayout(horizontalLayout);
|
||||
|
||||
QWidget::setTabOrder(comboPrjType, editPrjTitle);
|
||||
QWidget::setTabOrder(editPrjTitle, editPrjLoctn);
|
||||
QWidget::setTabOrder(editPrjLoctn, editWrkFolder);
|
||||
QWidget::setTabOrder(editWrkFolder, editDstFolder);
|
||||
QWidget::setTabOrder(editDstFolder, editFlags);
|
||||
QWidget::setTabOrder(editFlags, editLaunchParams);
|
||||
QWidget::setTabOrder(editLaunchParams, editLaunchExe);
|
||||
QWidget::setTabOrder(editLaunchExe, editSources);
|
||||
QWidget::setTabOrder(editSources, editMetaData);
|
||||
QWidget::setTabOrder(editMetaData, editMetaHelp);
|
||||
QWidget::setTabOrder(editMetaHelp, editHbp);
|
||||
QWidget::setTabOrder(editHbp, editCompilers);
|
||||
QWidget::setTabOrder(editCompilers, tabWidget);
|
||||
|
||||
retranslateUi(ProjectProperties);
|
||||
|
||||
tabWidget->setCurrentIndex(0);
|
||||
|
||||
|
||||
QMetaObject::connectSlotsByName(ProjectProperties);
|
||||
} // setupUi
|
||||
|
||||
void retranslateUi(QDialog *ProjectProperties)
|
||||
{
|
||||
ProjectProperties->setWindowTitle(QApplication::translate("ProjectProperties", "Project Properties", 0, QApplication::UnicodeUTF8));
|
||||
ProjectProperties->setStyleSheet(QString());
|
||||
label->setText(QApplication::translate("ProjectProperties", "Project Type:", 0, QApplication::UnicodeUTF8));
|
||||
#ifndef QT_NO_TOOLTIP
|
||||
comboPrjType->setToolTip(QApplication::translate("ProjectProperties", "<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.0//EN\" \"http://www.w3.org/TR/REC-html40/strict.dtd\">\n"
|
||||
"<html><head><meta name=\"qrichtext\" content=\"1\" /><style type=\"text/css\">\n"
|
||||
"p, li { white-space: pre-wrap; }\n"
|
||||
"</style></head><body style=\" font-family:'MS Shell Dlg 2'; font-size:8.25pt; font-weight:400; font-style:normal;\">\n"
|
||||
"<p align=\"center\" style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;\"><span style=\" font-size:8pt;\">A project may be of type Executable|Library|Dll.</span></p></body></html>", 0, QApplication::UnicodeUTF8));
|
||||
#endif // QT_NO_TOOLTIP
|
||||
label_2->setText(QApplication::translate("ProjectProperties", "Project Title:", 0, QApplication::UnicodeUTF8));
|
||||
#ifndef QT_NO_TOOLTIP
|
||||
editPrjTitle->setToolTip(QApplication::translate("ProjectProperties", "<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.0//EN\" \"http://www.w3.org/TR/REC-html40/strict.dtd\">\n"
|
||||
"<html><head><meta name=\"qrichtext\" content=\"1\" /><style type=\"text/css\">\n"
|
||||
"p, li { white-space: pre-wrap; }\n"
|
||||
"</style></head><body style=\" font-family:'MS Shell Dlg 2'; font-size:8.25pt; font-weight:400; font-style:normal;\">\n"
|
||||
"<p align=\"center\" style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;\"><span style=\" font-size:8pt;\">Title will be shown as a node in project tree.</span></p></body></html>", 0, QApplication::UnicodeUTF8));
|
||||
#endif // QT_NO_TOOLTIP
|
||||
label_3->setText(QApplication::translate("ProjectProperties", "Project Location:", 0, QApplication::UnicodeUTF8));
|
||||
#ifndef QT_NO_TOOLTIP
|
||||
editPrjLoctn->setToolTip(QApplication::translate("ProjectProperties", "<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.0//EN\" \"http://www.w3.org/TR/REC-html40/strict.dtd\">\n"
|
||||
"<html><head><meta name=\"qrichtext\" content=\"1\" /><style type=\"text/css\">\n"
|
||||
"p, li { white-space: pre-wrap; }\n"
|
||||
"</style></head><body style=\" font-family:'MS Shell Dlg 2'; font-size:8.25pt; font-weight:400; font-style:normal;\">\n"
|
||||
"<p align=\"center\" style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;\"><span style=\" font-size:8pt;\">Project location is the folder where project definition file .hbi will be stored. <Project Location> plus <Output Name> will comprise the full file name with .hbp extension.</span></p></body></html>", 0, QApplication::UnicodeUTF8));
|
||||
#endif // QT_NO_TOOLTIP
|
||||
label_4->setText(QApplication::translate("ProjectProperties", "Working Folder:", 0, QApplication::UnicodeUTF8));
|
||||
#ifndef QT_NO_TOOLTIP
|
||||
editWrkFolder->setToolTip(QApplication::translate("ProjectProperties", "<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.0//EN\" \"http://www.w3.org/TR/REC-html40/strict.dtd\">\n"
|
||||
"<html><head><meta name=\"qrichtext\" content=\"1\" /><style type=\"text/css\">\n"
|
||||
"p, li { white-space: pre-wrap; }\n"
|
||||
"</style></head><body style=\" font-family:'MS Shell Dlg 2'; font-size:8.25pt; font-weight:400; font-style:normal;\">\n"
|
||||
"<p align=\"center\" style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;\"><span style=\" font-size:8pt;\">Working folder will be used to host HBMK2 compliant </span><span style=\" font-size:8pt; font-weight:600;\"><Output Name></span><span style=\" font-size:8pt;\"> plus </span><span style=\" font-size:8pt; font-weight:600;\"><hbp></span><span style=\" font-size:8pt;\"> and will be designated as current folder when </span><span style=\" font-size:8pt; font-weight:600;\">HBMK2</span><span style=\" font-size:8pt;\"> will be invoked.</span></p></body></html>", 0, QApplication::UnicodeUTF8));
|
||||
#endif // QT_NO_TOOLTIP
|
||||
label_5->setText(QApplication::translate("ProjectProperties", "Destination Folder:", 0, QApplication::UnicodeUTF8));
|
||||
#ifndef QT_NO_TOOLTIP
|
||||
editDstFolder->setToolTip(QApplication::translate("ProjectProperties", "<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.0//EN\" \"http://www.w3.org/TR/REC-html40/strict.dtd\">\n"
|
||||
"<html><head><meta name=\"qrichtext\" content=\"1\" /><style type=\"text/css\">\n"
|
||||
"p, li { white-space: pre-wrap; }\n"
|
||||
"</style></head><body style=\" font-family:'MS Shell Dlg 2'; font-size:8.25pt; font-weight:400; font-style:normal;\">\n"
|
||||
"<p align=\"center\" style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;\">Destination folder is a compatibility slot and is reserved to place the <Output> .exe .a .lib. </p>\n"
|
||||
"<p align=\"center\" style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;\">But currently this functionality will be achieved through the -o compiler flag.</p></body></html>", 0, QApplication::UnicodeUTF8));
|
||||
#endif // QT_NO_TOOLTIP
|
||||
label_9->setText(QApplication::translate("ProjectProperties", "Compile/Link Flags:", 0, QApplication::UnicodeUTF8));
|
||||
#ifndef QT_NO_TOOLTIP
|
||||
editFlags->setToolTip(QApplication::translate("ProjectProperties", "<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.0//EN\" \"http://www.w3.org/TR/REC-html40/strict.dtd\">\n"
|
||||
"<html><head><meta name=\"qrichtext\" content=\"1\" /><style type=\"text/css\">\n"
|
||||
"p, li { white-space: pre-wrap; }\n"
|
||||
"</style></head><body style=\" font-family:'MS Shell Dlg 2'; font-size:8.25pt; font-weight:400; font-style:normal;\">\n"
|
||||
"<p align=\"center\" style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;\"><span style=\" font-size:8pt;\">Compiler/Linker flags may include all commands except the source files list. Additional libraries can be included here.</span></p></body></html>", 0, QApplication::UnicodeUTF8));
|
||||
#endif // QT_NO_TOOLTIP
|
||||
editFlags->setStyleSheet(QString());
|
||||
label_7->setText(QApplication::translate("ProjectProperties", "Launch Parameters:", 0, QApplication::UnicodeUTF8));
|
||||
label_8->setText(QApplication::translate("ProjectProperties", "Launch Program:", 0, QApplication::UnicodeUTF8));
|
||||
label_13->setText(QApplication::translate("ProjectProperties", "Backup Location:", 0, QApplication::UnicodeUTF8));
|
||||
#ifndef QT_NO_TOOLTIP
|
||||
editOutName->setToolTip(QApplication::translate("ProjectProperties", "<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.0//EN\" \"http://www.w3.org/TR/REC-html40/strict.dtd\">\n"
|
||||
"<html><head><meta name=\"qrichtext\" content=\"1\" /><style type=\"text/css\">\n"
|
||||
"p, li { white-space: pre-wrap; }\n"
|
||||
"</style></head><body style=\" font-family:'MS Shell Dlg 2'; font-size:8.25pt; font-weight:400; font-style:normal;\">\n"
|
||||
"<p align=\"center\" style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;\">Output name is used as final name for .hbi .hbp .exe .lib .a and will be added to the paths retrieved via <Project Location>, <Working Folder>, <Destination Folder>, etc. So this is a very important component.</p></body></html>", 0, QApplication::UnicodeUTF8));
|
||||
#endif // QT_NO_TOOLTIP
|
||||
label_6->setText(QApplication::translate("ProjectProperties", "Output Name:", 0, QApplication::UnicodeUTF8));
|
||||
buttonChoosePrjLoc->setText(QApplication::translate("ProjectProperties", "...", 0, QApplication::UnicodeUTF8));
|
||||
buttonBackup->setText(QApplication::translate("ProjectProperties", "...", 0, QApplication::UnicodeUTF8));
|
||||
buttonChooseDest->setText(QApplication::translate("ProjectProperties", "...", 0, QApplication::UnicodeUTF8));
|
||||
buttonChooseWd->setText(QApplication::translate("ProjectProperties", "...", 0, QApplication::UnicodeUTF8));
|
||||
#ifndef QT_NO_TOOLTIP
|
||||
buttonHbp->setToolTip(QApplication::translate("ProjectProperties", "<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.0//EN\" \"http://www.w3.org/TR/REC-html40/strict.dtd\">\n"
|
||||
"<html><head><meta name=\"qrichtext\" content=\"1\" /><style type=\"text/css\">\n"
|
||||
"p, li { white-space: pre-wrap; }\n"
|
||||
"</style></head><body style=\" font-family:'MS Shell Dlg 2'; font-size:8.25pt; font-weight:400; font-style:normal;\">\n"
|
||||
"<p align=\"center\" style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;\">Loading a .hbp project file is essentially a </p>\n"
|
||||
"<p align=\"center\" style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;\">task of redefining its flow and contents order.</p>\n"
|
||||
"<p align=\"center\" style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;\">hbIDE rewrites the existing .hbp file if the </p>\n"
|
||||
"<p align=\"center\" style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-"
|
||||
"block-indent:0; text-indent:0px;\">\"Project Location\" points to same folder </p>\n"
|
||||
"<p align=\"center\" style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;\">where your such loaded .hbp resides.</p>\n"
|
||||
"<p align=\"center\" style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;\">So</p>\n"
|
||||
"<p align=\"center\" style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;\"><span style=\" font-weight:600;\">take care to change the \"Project Location\"</span></p>\n"
|
||||
"<p align=\"center\" style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;\">to different folder than home folder of .hbp.</p>\n"
|
||||
"<p align=\"center\" style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;\">This is done at the time of \"Build\" proces"
|
||||
"s.</p></body></html>", 0, QApplication::UnicodeUTF8));
|
||||
#endif // QT_NO_TOOLTIP
|
||||
buttonHbp->setText(QApplication::translate("ProjectProperties", "...", 0, QApplication::UnicodeUTF8));
|
||||
#ifndef QT_NO_TOOLTIP
|
||||
buttonXmate->setToolTip(QApplication::translate("ProjectProperties", "<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.0//EN\" \"http://www.w3.org/TR/REC-html40/strict.dtd\">\n"
|
||||
"<html><head><meta name=\"qrichtext\" content=\"1\" /><style type=\"text/css\">\n"
|
||||
"p, li { white-space: pre-wrap; }\n"
|
||||
"</style></head><body style=\" font-family:'MS Shell Dlg 2'; font-size:8.25pt; font-weight:400; font-style:normal;\">\n"
|
||||
"<p align=\"center\" style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;\">Load an xMate project file.</p>\n"
|
||||
"<p align=\"center\" style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;\">This feature is available only for new projects.</p>\n"
|
||||
"<p align=\"center\" style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;\">hbIDE attempts to recognize various components</p>\n"
|
||||
"<p align=\"center\" style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; "
|
||||
"text-indent:0px;\">but it is possible that it may not load everything.</p>\n"
|
||||
"<p align=\"center\" style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;\">So you may need manual editing.</p></body></html>", 0, QApplication::UnicodeUTF8));
|
||||
#endif // QT_NO_TOOLTIP
|
||||
buttonXmate->setText(QApplication::translate("ProjectProperties", "...", 0, QApplication::UnicodeUTF8));
|
||||
tabWidget->setTabText(tabWidget->indexOf(tabGeneral), QApplication::translate("ProjectProperties", "General", 0, QApplication::UnicodeUTF8));
|
||||
#ifndef QT_NO_TOOLTIP
|
||||
editSources->setToolTip(QApplication::translate("ProjectProperties", "<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.0//EN\" \"http://www.w3.org/TR/REC-html40/strict.dtd\">\n"
|
||||
"<html><head><meta name=\"qrichtext\" content=\"1\" /><style type=\"text/css\">\n"
|
||||
"p, li { white-space: pre-wrap; }\n"
|
||||
"</style></head><body style=\" font-family:'MS Shell Dlg 2'; font-size:8.25pt; font-weight:400; font-style:normal;\">\n"
|
||||
"<p align=\"center\" style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;\">You can include hereunder any type of file which can be edited via plain text editor. One file per line. You can use meta-keys to define your source paths to make your projects location independant. </p>\n"
|
||||
"<p align=\"center\" style=\"-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;\"></p>\n"
|
||||
"<p align=\"center\" style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;\">NOTE:</p>\n"
|
||||
"<p align=\""
|
||||
"center\" style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;\">Only .prg .c .cpp .rc .res files will be supplied to the HBMK2. All other files will be made visible for editing in <Project Tree>.</p></body></html>", 0, QApplication::UnicodeUTF8));
|
||||
#endif // QT_NO_TOOLTIP
|
||||
editSources->setStyleSheet(QString());
|
||||
#ifndef QT_NO_TOOLTIP
|
||||
buttonSelect->setToolTip(QApplication::translate("ProjectProperties", "Select Sources", 0, QApplication::UnicodeUTF8));
|
||||
#endif // QT_NO_TOOLTIP
|
||||
buttonSelect->setText(QString());
|
||||
#ifndef QT_NO_TOOLTIP
|
||||
buttonSort->setToolTip(QApplication::translate("ProjectProperties", "Sort by Ascending Order", 0, QApplication::UnicodeUTF8));
|
||||
#endif // QT_NO_TOOLTIP
|
||||
buttonSort->setText(QString());
|
||||
#ifndef QT_NO_TOOLTIP
|
||||
buttonSortZA->setToolTip(QApplication::translate("ProjectProperties", "Sort by Descending Order", 0, QApplication::UnicodeUTF8));
|
||||
#endif // QT_NO_TOOLTIP
|
||||
buttonSortZA->setText(QString());
|
||||
#ifndef QT_NO_TOOLTIP
|
||||
buttonSortOrg->setToolTip(QApplication::translate("ProjectProperties", "Organize by Type and Sort Ascending", 0, QApplication::UnicodeUTF8));
|
||||
#endif // QT_NO_TOOLTIP
|
||||
buttonSortOrg->setText(QString());
|
||||
tabWidget->setTabText(tabWidget->indexOf(tabFiles), QApplication::translate("ProjectProperties", "Sources", 0, QApplication::UnicodeUTF8));
|
||||
editMetaHelp->setStyleSheet(QApplication::translate("ProjectProperties", "background-color: rgb(171, 171, 171);", 0, QApplication::UnicodeUTF8));
|
||||
editMetaHelp->setPlainText(QApplication::translate("ProjectProperties", "HBIDE will employ the concept of meta-data which will be used to parse the paths or other info supplied to the interface.\n"
|
||||
"\n"
|
||||
"Usually meta-key is enclosed in curly braces, but due to the fact that HBMK2 already exploits it, HBIDE will recognize meta-key in angled brackets.\n"
|
||||
"\n"
|
||||
"Please enter meta-keys and their values like :\n"
|
||||
" MySourcePath = c:/dev_sources/vouch\n"
|
||||
"in the QTextEdit below. Then whereever you will supply any key anywhere in the input fields of HBIDE interface, just enclose it in angled brackets like :\n"
|
||||
" <MySourcePath>/vouch.prg.\n"
|
||||
"Note that keys are case sensitive. So MySourcePath <> MYSOURCEPath.\n"
|
||||
"\n"
|
||||
"HBIDE internally employs few keys which are shown below and are always include in the project. These accompany the value as its relevance and not as literal.\n"
|
||||
"\n"
|
||||
"Enjoy\n"
|
||||
"Pritpal Bedi", 0, QApplication::UnicodeUTF8));
|
||||
#ifndef QT_NO_TOOLTIP
|
||||
editMetaData->setToolTip(QApplication::translate("ProjectProperties", "<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.0//EN\" \"http://www.w3.org/TR/REC-html40/strict.dtd\">\n"
|
||||
"<html><head><meta name=\"qrichtext\" content=\"1\" /><style type=\"text/css\">\n"
|
||||
"p, li { white-space: pre-wrap; }\n"
|
||||
"</style></head><body style=\" font-family:'MS Shell Dlg 2'; font-size:8.25pt; font-weight:400; font-style:normal;\">\n"
|
||||
"<p align=\"center\" style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;\">Meta-keys are a special way of keeping generic information which is of repeated and/or of dynamic nature. HBIDE implements meta key/value pair more comprehensively. It allows you to write an expression for the value part which get evaluated at the time project is loaded. The only point to take into consideration is that value returned by such expression must be of type character.</p>\n"
|
||||
"<p align=\"center\" style=\"-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-ind"
|
||||
"ent:0px;\"></p>\n"
|
||||
"<p align=\"center\" style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;\">The expression is evaluated only once and keeps its value until the HBIDE interface is closed. In case of any error, the expression string itself is returned.</p></body></html>", 0, QApplication::UnicodeUTF8));
|
||||
#endif // QT_NO_TOOLTIP
|
||||
editMetaData->setStyleSheet(QString());
|
||||
tabWidget->setTabText(tabWidget->indexOf(tabMeta), QApplication::translate("ProjectProperties", "Meta Data", 0, QApplication::UnicodeUTF8));
|
||||
#ifndef QT_NO_TOOLTIP
|
||||
editHbp->setToolTip(QApplication::translate("ProjectProperties", "<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.0//EN\" \"http://www.w3.org/TR/REC-html40/strict.dtd\">\n"
|
||||
"<html><head><meta name=\"qrichtext\" content=\"1\" /><style type=\"text/css\">\n"
|
||||
"p, li { white-space: pre-wrap; }\n"
|
||||
"</style></head><body style=\" font-family:'MS Shell Dlg 2'; font-size:8.25pt; font-weight:400; font-style:normal;\">\n"
|
||||
"<p align=\"center\" style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;\"><span style=\" font-size:8pt;\">Here you can view in real-time the resultant <hbp> output which will be supplied to HBMK2. This view may give you insight about your source layout and many other facts.</span></p>\n"
|
||||
"<p align=\"center\" style=\"-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; font-size:8pt;\"></p>\n"
|
||||
"<p align=\"center\" style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px"
|
||||
";\"><span style=\" font-size:14pt; font-weight:600; text-decoration: underline;\">Enjoy</span></p></body></html>", 0, QApplication::UnicodeUTF8));
|
||||
#endif // QT_NO_TOOLTIP
|
||||
editHbp->setStyleSheet(QString());
|
||||
tabWidget->setTabText(tabWidget->indexOf(tabHbp), QApplication::translate("ProjectProperties", "hbp", 0, QApplication::UnicodeUTF8));
|
||||
#ifndef QT_NO_TOOLTIP
|
||||
editCompilers->setToolTip(QApplication::translate("ProjectProperties", "<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.0//EN\" \"http://www.w3.org/TR/REC-html40/strict.dtd\">\n"
|
||||
"<html><head><meta name=\"qrichtext\" content=\"1\" /><style type=\"text/css\">\n"
|
||||
"p, li { white-space: pre-wrap; }\n"
|
||||
"</style></head><body style=\" font-family:'MS Shell Dlg 2'; font-size:8.25pt; font-weight:400; font-style:normal;\">\n"
|
||||
"<p align=\"center\" style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;\"><span style=\" font-size:8pt;\">HBIDE employes the concept of keeping everything tied together. It means all complier specific environments are kept together in a convinient way and applied as per need.</span></p>\n"
|
||||
"<p align=\"center\" style=\"-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; font-size:8pt;\"></p>\n"
|
||||
"<p align=\"center\" style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;\">"
|
||||
"<span style=\" font-size:8pt;\">So here you view/edit all the environments you employ in your applications. At the time you will build the project, a list of stated environments will be presented to choose from.</span></p>\n"
|
||||
"<p align=\"center\" style=\"-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; font-size:8pt;\"></p>\n"
|
||||
"<p align=\"center\" style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;\"><span style=\" font-size:8pt;\">This opens up the possibility to experiment with different compilers without re-opening the IDE or setting up the envvars manually.</span></p></body></html>", 0, QApplication::UnicodeUTF8));
|
||||
#endif // QT_NO_TOOLTIP
|
||||
editCompilers->setStyleSheet(QString());
|
||||
label_10->setText(QApplication::translate("ProjectProperties", "Path to hbmk2", 0, QApplication::UnicodeUTF8));
|
||||
buttonPathMk2->setText(QString());
|
||||
label_12->setText(QApplication::translate("ProjectProperties", "Path to hbIDE.env", 0, QApplication::UnicodeUTF8));
|
||||
buttonPathEnv->setText(QString());
|
||||
#ifndef QT_NO_TOOLTIP
|
||||
buttonSaveEnv->setToolTip(QApplication::translate("ProjectProperties", "The environment definitions will not be saved along the project details. You need to click me in order to save it permanently.", 0, QApplication::UnicodeUTF8));
|
||||
#endif // QT_NO_TOOLTIP
|
||||
buttonSaveEnv->setText(QApplication::translate("ProjectProperties", "...", 0, QApplication::UnicodeUTF8));
|
||||
tabWidget->setTabText(tabWidget->indexOf(tabCompilers), QApplication::translate("ProjectProperties", "Environments", 0, QApplication::UnicodeUTF8));
|
||||
buttonSaveExit->setText(QApplication::translate("ProjectProperties", "Save and Exit", 0, QApplication::UnicodeUTF8));
|
||||
buttonSave->setText(QApplication::translate("ProjectProperties", "Save", 0, QApplication::UnicodeUTF8));
|
||||
buttonCn->setText(QApplication::translate("ProjectProperties", "Cancel", 0, QApplication::UnicodeUTF8));
|
||||
Q_UNUSED(ProjectProperties);
|
||||
} // retranslateUi
|
||||
|
||||
};
|
||||
|
||||
namespace Ui {
|
||||
class ProjectProperties: public Ui_ProjectProperties {};
|
||||
} // namespace Ui
|
||||
|
||||
QT_END_NAMESPACE
|
||||
|
||||
#endif // PROJECTPROPERTIES_H
|
||||
@@ -284,14 +284,17 @@ p, li { white-space: pre-wrap; }
|
||||
<item row="1" column="1" colspan="11">
|
||||
<widget class="QPlainTextEdit" name="editSources">
|
||||
<property name="toolTip">
|
||||
<string/>
|
||||
</property>
|
||||
<property name="whatsThis">
|
||||
<string><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd">
|
||||
<html><head><meta name="qrichtext" content="1" /><style type="text/css">
|
||||
p, li { white-space: pre-wrap; }
|
||||
</style></head><body style=" font-family:'MS Shell Dlg 2'; font-size:8.25pt; font-weight:400; font-style:normal;">
|
||||
<p align="center" style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">You can include hereunder any type of file which can be edited via plain text editor. One file per line. You can use meta-keys to define your source paths to make your projects location independant. </p>
|
||||
<p align="center" style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"></p>
|
||||
<p align="center" style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">NOTE:</p>
|
||||
<p align="center" style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">Only .prg .c .cpp .rc .res files will be supplied to the HBMK2. All other files will be made visible for editing in &lt;Project Tree&gt;.</p></body></html></string>
|
||||
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-size:8pt;">You can include hereunder any type of file which can be edited via plain text editor. One file per line. You can use meta-keys to define your source paths to make your projects location independant. </span></p>
|
||||
<p align="center" style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; font-size:8pt;"></p>
|
||||
<p align="center" style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-size:8pt; font-weight:600;">NOTE:</span></p>
|
||||
<p align="center" style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-size:8pt;">Only .prg .c .cpp .rc .res files will be supplied to the HBMK2. All other files will be made visible for editing in &lt;Project Tree&gt;.</span></p></body></html></string>
|
||||
</property>
|
||||
<property name="styleSheet">
|
||||
<string/>
|
||||
@@ -351,13 +354,16 @@ p, li { white-space: pre-wrap; }
|
||||
<item row="0" column="0">
|
||||
<widget class="QPlainTextEdit" name="editFlags">
|
||||
<property name="toolTip">
|
||||
<string/>
|
||||
</property>
|
||||
<property name="whatsThis">
|
||||
<string><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd">
|
||||
<html><head><meta name="qrichtext" content="1" /><style type="text/css">
|
||||
p, li { white-space: pre-wrap; }
|
||||
</style></head><body style=" font-family:'MS Shell Dlg 2'; font-size:8.25pt; font-weight:400; font-style:normal;">
|
||||
<p align="center" style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">Meta-keys are a special way of keeping generic information which is of repeated and/or of dynamic nature. HBIDE implements meta key/value pair more comprehensively. It allows you to write an expression for the value part which get evaluated at the time project is loaded. The only point to take into consideration is that value returned by such expression must be of type character.</p>
|
||||
<p align="center" style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"></p>
|
||||
<p align="center" style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">The expression is evaluated only once and keeps its value until the HBIDE interface is closed. In case of any error, the expression string itself is returned.</p></body></html></string>
|
||||
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-size:8pt;">Meta-keys are a special way of keeping generic information which is of repeated and/or of dynamic nature. HBIDE implements meta key/value pair more comprehensively. It allows you to write an expression for the value part which get evaluated at the time project is loaded. The only point to take into consideration is that value returned by such expression must be of type character.</span></p>
|
||||
<p align="center" style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; font-size:8pt;"></p>
|
||||
<p align="center" style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-size:8pt;">The expression is evaluated only once and keeps its value until the HBIDE interface is closed. In case of any error, the expression string itself is returned.</span></p></body></html></string>
|
||||
</property>
|
||||
<property name="styleSheet">
|
||||
<string/>
|
||||
@@ -377,11 +383,14 @@ p, li { white-space: pre-wrap; }
|
||||
<item row="0" column="0">
|
||||
<widget class="QPlainTextEdit" name="editHbp">
|
||||
<property name="toolTip">
|
||||
<string/>
|
||||
</property>
|
||||
<property name="whatsThis">
|
||||
<string><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd">
|
||||
<html><head><meta name="qrichtext" content="1" /><style type="text/css">
|
||||
p, li { white-space: pre-wrap; }
|
||||
</style></head><body style=" font-family:'MS Shell Dlg 2'; font-size:8.25pt; font-weight:400; font-style:normal;">
|
||||
<p align="center" style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-size:8pt;">Here you can view in real-time the resultant &lt;hbp&gt; output which will be supplied to HBMK2. This view may give you insight about your source layout and many other facts.</span></p>
|
||||
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-size:8pt;">Here you can view in real-time the resultant &lt;hbp&gt; output which will be supplied to HBMK2. This view may give you insight about your source layout and many other facts.</span></p>
|
||||
<p align="center" style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; font-size:8pt;"></p>
|
||||
<p align="center" style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-size:14pt; font-weight:600; text-decoration: underline;">Enjoy</span></p></body></html></string>
|
||||
</property>
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
/********************************************************************************
|
||||
** Form generated from reading ui file 'projectpropertiesex.ui'
|
||||
**
|
||||
** Created: Wed May 5 12:48:51 2010
|
||||
** by: Qt User Interface Compiler version 4.5.3
|
||||
** Created: Wed May 5 23:38:13 2010
|
||||
** by: Qt User Interface Compiler version 4.5.2
|
||||
**
|
||||
** WARNING! All changes made in this file will be lost when recompiling ui file!
|
||||
********************************************************************************/
|
||||
@@ -397,16 +397,19 @@ public:
|
||||
checkClp->setText(QApplication::translate("FormProjectPropEx", "Clipper", 0, QApplication::UnicodeUTF8));
|
||||
tabWidget->setTabText(tabWidget->indexOf(tabGeneral), QApplication::translate("FormProjectPropEx", "General", 0, QApplication::UnicodeUTF8));
|
||||
#ifndef QT_NO_TOOLTIP
|
||||
editSources->setToolTip(QApplication::translate("FormProjectPropEx", "<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.0//EN\" \"http://www.w3.org/TR/REC-html40/strict.dtd\">\n"
|
||||
editSources->setToolTip(QString());
|
||||
#endif // QT_NO_TOOLTIP
|
||||
#ifndef QT_NO_WHATSTHIS
|
||||
editSources->setWhatsThis(QApplication::translate("FormProjectPropEx", "<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.0//EN\" \"http://www.w3.org/TR/REC-html40/strict.dtd\">\n"
|
||||
"<html><head><meta name=\"qrichtext\" content=\"1\" /><style type=\"text/css\">\n"
|
||||
"p, li { white-space: pre-wrap; }\n"
|
||||
"</style></head><body style=\" font-family:'MS Shell Dlg 2'; font-size:8.25pt; font-weight:400; font-style:normal;\">\n"
|
||||
"<p align=\"center\" style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;\">You can include hereunder any type of file which can be edited via plain text editor. One file per line. You can use meta-keys to define your source paths to make your projects location independant. </p>\n"
|
||||
"<p align=\"center\" style=\"-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;\"></p>\n"
|
||||
"<p align=\"center\" style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;\">NOTE:</p>\n"
|
||||
"<p align=\""
|
||||
"center\" style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;\">Only .prg .c .cpp .rc .res files will be supplied to the HBMK2. All other files will be made visible for editing in <Project Tree>.</p></body></html>", 0, QApplication::UnicodeUTF8));
|
||||
#endif // QT_NO_TOOLTIP
|
||||
"<p style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;\"><span style=\" font-size:8pt;\">You can include hereunder any type of file which can be edited via plain text editor. One file per line. You can use meta-keys to define your source paths to make your projects location independant. </span></p>\n"
|
||||
"<p align=\"center\" style=\"-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; font-size:8pt;\"></p>\n"
|
||||
"<p align=\"center\" style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-in"
|
||||
"dent:0px;\"><span style=\" font-size:8pt; font-weight:600;\">NOTE:</span></p>\n"
|
||||
"<p align=\"center\" style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;\"><span style=\" font-size:8pt;\">Only .prg .c .cpp .rc .res files will be supplied to the HBMK2. All other files will be made visible for editing in <Project Tree>.</span></p></body></html>", 0, QApplication::UnicodeUTF8));
|
||||
#endif // QT_NO_WHATSTHIS
|
||||
editSources->setStyleSheet(QString());
|
||||
#ifndef QT_NO_TOOLTIP
|
||||
buttonSelect->setToolTip(QApplication::translate("FormProjectPropEx", "Select Sources", 0, QApplication::UnicodeUTF8));
|
||||
@@ -426,27 +429,33 @@ public:
|
||||
buttonSortOrg->setText(QString());
|
||||
tabWidget->setTabText(tabWidget->indexOf(tabFiles), QApplication::translate("FormProjectPropEx", "Sources", 0, QApplication::UnicodeUTF8));
|
||||
#ifndef QT_NO_TOOLTIP
|
||||
editFlags->setToolTip(QApplication::translate("FormProjectPropEx", "<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.0//EN\" \"http://www.w3.org/TR/REC-html40/strict.dtd\">\n"
|
||||
editFlags->setToolTip(QString());
|
||||
#endif // QT_NO_TOOLTIP
|
||||
#ifndef QT_NO_WHATSTHIS
|
||||
editFlags->setWhatsThis(QApplication::translate("FormProjectPropEx", "<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.0//EN\" \"http://www.w3.org/TR/REC-html40/strict.dtd\">\n"
|
||||
"<html><head><meta name=\"qrichtext\" content=\"1\" /><style type=\"text/css\">\n"
|
||||
"p, li { white-space: pre-wrap; }\n"
|
||||
"</style></head><body style=\" font-family:'MS Shell Dlg 2'; font-size:8.25pt; font-weight:400; font-style:normal;\">\n"
|
||||
"<p align=\"center\" style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;\">Meta-keys are a special way of keeping generic information which is of repeated and/or of dynamic nature. HBIDE implements meta key/value pair more comprehensively. It allows you to write an expression for the value part which get evaluated at the time project is loaded. The only point to take into consideration is that value returned by such expression must be of type character.</p>\n"
|
||||
"<p align=\"center\" style=\"-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-ind"
|
||||
"ent:0px;\"></p>\n"
|
||||
"<p align=\"center\" style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;\">The expression is evaluated only once and keeps its value until the HBIDE interface is closed. In case of any error, the expression string itself is returned.</p></body></html>", 0, QApplication::UnicodeUTF8));
|
||||
#endif // QT_NO_TOOLTIP
|
||||
"<p style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;\"><span style=\" font-size:8pt;\">Meta-keys are a special way of keeping generic information which is of repeated and/or of dynamic nature. HBIDE implements meta key/value pair more comprehensively. It allows you to write an expression for the value part which get evaluated at the time project is loaded. The only point to take into consideration is that value returned by such expression must be of type character.</span></p>\n"
|
||||
"<p align=\"center\" style=\"-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-bl"
|
||||
"ock-indent:0; text-indent:0px; font-size:8pt;\"></p>\n"
|
||||
"<p align=\"center\" style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;\"><span style=\" font-size:8pt;\">The expression is evaluated only once and keeps its value until the HBIDE interface is closed. In case of any error, the expression string itself is returned.</span></p></body></html>", 0, QApplication::UnicodeUTF8));
|
||||
#endif // QT_NO_WHATSTHIS
|
||||
editFlags->setStyleSheet(QString());
|
||||
tabWidget->setTabText(tabWidget->indexOf(tabFlags), QApplication::translate("FormProjectPropEx", "Flags", 0, QApplication::UnicodeUTF8));
|
||||
#ifndef QT_NO_TOOLTIP
|
||||
editHbp->setToolTip(QApplication::translate("FormProjectPropEx", "<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.0//EN\" \"http://www.w3.org/TR/REC-html40/strict.dtd\">\n"
|
||||
editHbp->setToolTip(QString());
|
||||
#endif // QT_NO_TOOLTIP
|
||||
#ifndef QT_NO_WHATSTHIS
|
||||
editHbp->setWhatsThis(QApplication::translate("FormProjectPropEx", "<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.0//EN\" \"http://www.w3.org/TR/REC-html40/strict.dtd\">\n"
|
||||
"<html><head><meta name=\"qrichtext\" content=\"1\" /><style type=\"text/css\">\n"
|
||||
"p, li { white-space: pre-wrap; }\n"
|
||||
"</style></head><body style=\" font-family:'MS Shell Dlg 2'; font-size:8.25pt; font-weight:400; font-style:normal;\">\n"
|
||||
"<p align=\"center\" style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;\"><span style=\" font-size:8pt;\">Here you can view in real-time the resultant <hbp> output which will be supplied to HBMK2. This view may give you insight about your source layout and many other facts.</span></p>\n"
|
||||
"<p style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;\"><span style=\" font-size:8pt;\">Here you can view in real-time the resultant <hbp> output which will be supplied to HBMK2. This view may give you insight about your source layout and many other facts.</span></p>\n"
|
||||
"<p align=\"center\" style=\"-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; font-size:8pt;\"></p>\n"
|
||||
"<p align=\"center\" style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px"
|
||||
";\"><span style=\" font-size:14pt; font-weight:600; text-decoration: underline;\">Enjoy</span></p></body></html>", 0, QApplication::UnicodeUTF8));
|
||||
#endif // QT_NO_TOOLTIP
|
||||
"<p align=\"center\" style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;\"><span style=\""
|
||||
" font-size:14pt; font-weight:600; text-decoration: underline;\">Enjoy</span></p></body></html>", 0, QApplication::UnicodeUTF8));
|
||||
#endif // QT_NO_WHATSTHIS
|
||||
editHbp->setStyleSheet(QString());
|
||||
tabWidget->setTabText(tabWidget->indexOf(tabHbp), QApplication::translate("FormProjectPropEx", "hbp", 0, QApplication::UnicodeUTF8));
|
||||
buttonSaveExit->setText(QApplication::translate("FormProjectPropEx", "Save and Close", 0, QApplication::UnicodeUTF8));
|
||||
|
||||
@@ -29,10 +29,18 @@
|
||||
</widget>
|
||||
</item>
|
||||
<item row="1" column="0">
|
||||
<widget class="QListWidget" name="listMethods"/>
|
||||
<widget class="QListWidget" name="listMethods">
|
||||
<property name="whatsThis">
|
||||
<string>Public Methods are avialble as API to configure your key-combination to any degree hbIDE can be exploited. Double-click on any node posts method prototype with blank parameters in <Script> edit box below-right. In the immediate right box a brief description of the navigated node is displayed.</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="1" column="1" colspan="10">
|
||||
<widget class="QTextEdit" name="texteditSyntax"/>
|
||||
<widget class="QTextEdit" name="texteditSyntax">
|
||||
<property name="whatsThis">
|
||||
<string>Description of the public method highlighted on the left.</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="2" column="0" colspan="11">
|
||||
<widget class="QLabel" name="labelMacros">
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
/********************************************************************************
|
||||
** Form generated from reading ui file 'shortcuts.ui'
|
||||
**
|
||||
** Created: Tue Apr 27 00:36:36 2010
|
||||
** Created: Wed May 5 23:41:37 2010
|
||||
** by: Qt User Interface Compiler version 4.5.2
|
||||
**
|
||||
** WARNING! All changes made in this file will be lost when recompiling ui file!
|
||||
@@ -217,6 +217,12 @@ public:
|
||||
FormShortCuts->setWindowTitle(QApplication::translate("FormShortCuts", "Keyboard Macros", 0, QApplication::UnicodeUTF8));
|
||||
labelMethods->setText(QApplication::translate("FormShortCuts", "Public Methods", 0, QApplication::UnicodeUTF8));
|
||||
labelSyntax->setText(QApplication::translate("FormShortCuts", " Description", 0, QApplication::UnicodeUTF8));
|
||||
#ifndef QT_NO_WHATSTHIS
|
||||
listMethods->setWhatsThis(QApplication::translate("FormShortCuts", "Public Methods are avialble as API to configure your key-combination to any degree hbIDE can be exploited. Double-click on any node posts method prototype with blank parameters in <Script> edit box below-right. In the immediate right box a brief description of the navigated node is displayed.", 0, QApplication::UnicodeUTF8));
|
||||
#endif // QT_NO_WHATSTHIS
|
||||
#ifndef QT_NO_WHATSTHIS
|
||||
texteditSyntax->setWhatsThis(QApplication::translate("FormShortCuts", "Description of the public method highlighted on the left.", 0, QApplication::UnicodeUTF8));
|
||||
#endif // QT_NO_WHATSTHIS
|
||||
labelMacros->setText(QApplication::translate("FormShortCuts", "Keyboard Shortcuts", 0, QApplication::UnicodeUTF8));
|
||||
labelName->setText(QApplication::translate("FormShortCuts", " Name", 0, QApplication::UnicodeUTF8));
|
||||
labelKey->setText(QApplication::translate("FormShortCuts", " Key", 0, QApplication::UnicodeUTF8));
|
||||
|
||||
@@ -534,6 +534,10 @@ METHOD HbQtUI:build( cFileOrBuffer, qParent )
|
||||
s := hbq_pullToolTip( cCmd )
|
||||
::qObj[ cNam ]:setText( s )
|
||||
|
||||
ELSEIF "setWhatsThis(" $ cCmd
|
||||
s := hbq_pullToolTip( cCmd )
|
||||
::qObj[ cNam ]:setWhatsThis( s )
|
||||
|
||||
ELSEIF "header()->" $ cCmd
|
||||
// TODO: how to handle : __qtreeviewitem->header()->setVisible( .f. )
|
||||
|
||||
@@ -718,7 +722,7 @@ FUNCTION q__tr( p1, p2, p3, p4 )
|
||||
|
||||
STATIC FUNCTION hbq_pullText( org_, nFrom )
|
||||
LOCAL s := "", nLen := len( org_ )
|
||||
LOCAL a_:= { "setText(", "setPlainText(", "setStyleSheet(" }
|
||||
LOCAL a_:= { "setText(", "setPlainText(", "setStyleSheet(", "setWhatsThis(" }
|
||||
|
||||
IF ascan( a_, {|e| e $ org_[ nFrom ] } ) > 0
|
||||
s := org_[ nFrom ]
|
||||
|
||||
@@ -70,6 +70,7 @@
|
||||
:hbCopy() -> NIL
|
||||
:hbPaste() -> NIL
|
||||
:hbSetSelectionMode( nMode, lOn ) -> NIL
|
||||
:hbGetSelectionInfo() -> NIL
|
||||
|
||||
$DESCRIPTION$
|
||||
|
||||
|
||||
@@ -299,6 +299,26 @@ void HBQPlainTextEdit::hbHighlightSelectedColumns( bool yes )
|
||||
|
||||
/*----------------------------------------------------------------------*/
|
||||
|
||||
void HBQPlainTextEdit::hbGetSelectionInfo()
|
||||
{
|
||||
PHB_ITEM p1 = hb_itemPutNI( NULL, 21000 );
|
||||
PHB_ITEM p2 = hb_itemNew( NULL );
|
||||
|
||||
hb_arrayNew( p2, 5 );
|
||||
|
||||
hb_arraySetNI( p2, 1, rowBegins );
|
||||
hb_arraySetNI( p2, 2, columnBegins );
|
||||
hb_arraySetNI( p2, 3, rowEnds );
|
||||
hb_arraySetNI( p2, 4, columnEnds );
|
||||
hb_arraySetNI( p2, 5, selectionMode );
|
||||
|
||||
hb_vmEvalBlockV( block, 2, p1, p2 );
|
||||
hb_itemRelease( p1 );
|
||||
hb_itemRelease( p2 );
|
||||
}
|
||||
|
||||
/*----------------------------------------------------------------------*/
|
||||
|
||||
void HBQPlainTextEdit::hbSetSelectionMode( int mode, bool on )
|
||||
{
|
||||
switch( mode )
|
||||
@@ -404,7 +424,8 @@ void HBQPlainTextEdit::hbCut()
|
||||
|
||||
void HBQPlainTextEdit::hbCopy()
|
||||
{
|
||||
if( isColumnSelectionEnabled || selectionMode == selectionMode_line )
|
||||
//if( isColumnSelectionEnabled || selectionMode == selectionMode_line )
|
||||
if( true )
|
||||
{
|
||||
PHB_ITEM p1 = hb_itemPutNI( NULL, 21011 );
|
||||
PHB_ITEM p2 = hb_itemNew( NULL );
|
||||
@@ -469,15 +490,36 @@ void HBQPlainTextEdit::mousePressEvent( QMouseEvent *event )
|
||||
|
||||
void HBQPlainTextEdit::mouseReleaseEvent( QMouseEvent *event )
|
||||
{
|
||||
setCursorWidth( 1 );
|
||||
selectionState = 0;
|
||||
QPlainTextEdit::mouseReleaseEvent( event );
|
||||
|
||||
if( selectionMode == selectionMode_stream )
|
||||
{
|
||||
QTextCursor c( textCursor() );
|
||||
rowEnds = c.blockNumber();
|
||||
columnEnds = c.columnNumber();
|
||||
if( c.hasSelection() )
|
||||
{
|
||||
QTextBlock b = c.document()->findBlock( c.selectionStart() );
|
||||
int cb = c.selectionStart() - b.position();
|
||||
int rb = b.blockNumber();
|
||||
int ce = c.columnNumber();
|
||||
int re = c.document()->findBlock( c.selectionEnd() ).blockNumber();
|
||||
|
||||
c.clearSelection();
|
||||
setTextCursor( c );
|
||||
|
||||
QKeyEvent * ev = new QKeyEvent( QEvent::KeyPress, Qt::Key_Right, Qt::NoModifier, "" );
|
||||
QPlainTextEdit::keyPressEvent( ev );
|
||||
ev = new QKeyEvent( QEvent::KeyPress, Qt::Key_Left, Qt::NoModifier, "" );
|
||||
QPlainTextEdit::keyPressEvent( ev );
|
||||
|
||||
rowBegins = rb;
|
||||
rowEnds = re;
|
||||
columnBegins = cb;
|
||||
columnEnds = ce;
|
||||
|
||||
update();
|
||||
}
|
||||
}
|
||||
QPlainTextEdit::mouseReleaseEvent( event );
|
||||
selectionState = 0;
|
||||
}
|
||||
|
||||
/*----------------------------------------------------------------------*/
|
||||
@@ -555,7 +597,7 @@ bool HBQPlainTextEdit::hbKeyPressColumnSelection( QKeyEvent * event )
|
||||
event->ignore();
|
||||
return true;
|
||||
}
|
||||
|
||||
#if 0
|
||||
if( isColumnSelectionEnabled )
|
||||
{
|
||||
selectionMode = selectionMode_column;
|
||||
@@ -742,6 +784,182 @@ bool HBQPlainTextEdit::hbKeyPressColumnSelection( QKeyEvent * event )
|
||||
return true;
|
||||
}
|
||||
}
|
||||
#endif
|
||||
if( isColumnSelectionEnabled )
|
||||
{
|
||||
selectionMode = selectionMode_column;
|
||||
}
|
||||
else if( selectionMode != selectionMode_line )
|
||||
{
|
||||
selectionMode = selectionMode_stream;
|
||||
}
|
||||
|
||||
if( selectionMode == selectionMode_column || selectionMode == selectionMode_stream )
|
||||
{
|
||||
QTextCursor c( textCursor() );
|
||||
int col = c.columnNumber();
|
||||
int row = c.blockNumber();
|
||||
|
||||
if( shift && isNavableKey( k ) )
|
||||
{
|
||||
if( selectionState == 0 )
|
||||
{
|
||||
hbClearColumnSelection();
|
||||
}
|
||||
if( selectionMode == selectionMode_column )
|
||||
setCursorWidth( 0 );
|
||||
else
|
||||
setCursorWidth( 1 );
|
||||
|
||||
if( columnBegins == -1 )
|
||||
{
|
||||
selectionState = 1;
|
||||
//
|
||||
columnBegins = col;
|
||||
rowBegins = row;
|
||||
}
|
||||
rowEnds = row;
|
||||
columnEnds = col;
|
||||
|
||||
if( selectionMode == selectionMode_column )
|
||||
{
|
||||
switch( k )
|
||||
{
|
||||
case Qt::Key_Left:
|
||||
if( col == 0 )
|
||||
{
|
||||
columnEnds--;
|
||||
columnEnds = columnEnds < 0 ? 0 : columnEnds;
|
||||
update();
|
||||
event->ignore();
|
||||
return true;
|
||||
}
|
||||
break;
|
||||
case Qt::Key_Right:
|
||||
c.movePosition( QTextCursor::EndOfLine, QTextCursor::MoveAnchor );
|
||||
if( c.columnNumber() <= columnEnds )
|
||||
{
|
||||
columnEnds++;
|
||||
update();
|
||||
event->ignore();
|
||||
return true;
|
||||
}
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
c.clearSelection();
|
||||
setTextCursor( c );
|
||||
|
||||
QKeyEvent * ev = new QKeyEvent( event->type(), event->key(), Qt::NoModifier, event->text() );
|
||||
QPlainTextEdit::keyPressEvent( ev );
|
||||
|
||||
c = textCursor();
|
||||
col = c.columnNumber();
|
||||
row = c.blockNumber();
|
||||
|
||||
if( selectionMode == selectionMode_column )
|
||||
{
|
||||
switch( k )
|
||||
{
|
||||
case Qt::Key_Right:
|
||||
columnEnds++;
|
||||
break;
|
||||
case Qt::Key_Left:
|
||||
columnEnds--;
|
||||
columnEnds = columnEnds < 0 ? 0 : columnEnds;
|
||||
break;
|
||||
case Qt::Key_Up:
|
||||
case Qt::Key_PageUp:
|
||||
case Qt::Key_Down:
|
||||
case Qt::Key_PageDown:
|
||||
rowEnds = row;
|
||||
break;
|
||||
default:
|
||||
rowEnds = row;
|
||||
columnEnds = col;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
rowEnds = row;
|
||||
columnEnds = col;
|
||||
}
|
||||
update();
|
||||
event->ignore();
|
||||
return true;
|
||||
} // if( shift && isNavableKey( k ) )
|
||||
else if( isNavableKey( k ) )
|
||||
{
|
||||
setCursorWidth( 1 );
|
||||
selectionState = 0;
|
||||
}
|
||||
else if( selectionMode == selectionMode_column )
|
||||
{
|
||||
if( ! ctrl && k >= ' ' && k < 127 && columnBegins >= 0 )
|
||||
{
|
||||
if( ( ( columnBegins == columnEnds ) && ( col == columnBegins + 1 ) && ( row == rowEnds ) )
|
||||
||
|
||||
isCursorInSelection() )
|
||||
{
|
||||
PHB_ITEM p1 = hb_itemPutNI( NULL, 21013 );
|
||||
PHB_ITEM p2 = hb_itemNew( NULL );
|
||||
hb_arrayNew( p2, 5 );
|
||||
hb_arraySetNI( p2, 1, rowBegins );
|
||||
hb_arraySetNI( p2, 2, columnBegins );
|
||||
hb_arraySetNI( p2, 3, rowEnds );
|
||||
hb_arraySetNI( p2, 4, columnEnds );
|
||||
hb_arraySetPtr( p2, 5, event );
|
||||
|
||||
hb_vmEvalBlockV( block, 2, p1, p2 );
|
||||
hb_itemRelease( p1 );
|
||||
hb_itemRelease( p2 );
|
||||
|
||||
if( columnBegins == columnEnds )
|
||||
{
|
||||
columnBegins++;
|
||||
columnEnds++;
|
||||
}
|
||||
update();
|
||||
event->ignore();
|
||||
return true;
|
||||
}
|
||||
}
|
||||
if( ! ctrl && ( k == Qt::Key_Backspace || k == Qt::Key_Delete ) && columnBegins >= 0 )
|
||||
{
|
||||
PHB_ITEM p1 = hb_itemPutNI( NULL, 21014 );
|
||||
PHB_ITEM p2 = hb_itemNew( NULL );
|
||||
hb_arrayNew( p2, 5 );
|
||||
hb_arraySetNI( p2, 1, rowBegins );
|
||||
hb_arraySetNI( p2, 2, columnBegins );
|
||||
hb_arraySetNI( p2, 3, rowEnds );
|
||||
hb_arraySetNI( p2, 4, columnEnds );
|
||||
hb_arraySetNI( p2, 5, k );
|
||||
|
||||
hb_vmEvalBlockV( block, 2, p1, p2 );
|
||||
hb_itemRelease( p1 );
|
||||
hb_itemRelease( p2 );
|
||||
|
||||
if( k == Qt::Key_Backspace )
|
||||
{
|
||||
columnBegins--;
|
||||
columnEnds--;
|
||||
}
|
||||
else
|
||||
{
|
||||
columnEnds = columnBegins;
|
||||
}
|
||||
update();
|
||||
event->ignore();
|
||||
return true;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
setCursorWidth( 1 );
|
||||
selectionState = 0;
|
||||
}
|
||||
}
|
||||
else if( selectionMode == selectionMode_line )
|
||||
{
|
||||
if( isLineSelectionON && ( k == Qt::Key_Up || k == Qt::Key_Down ) )
|
||||
@@ -1078,27 +1296,28 @@ void HBQPlainTextEdit::hbPaintColumnSelection( QPaintEvent * event )
|
||||
{
|
||||
HB_SYMBOL_UNUSED( event );
|
||||
|
||||
if( isColumnSelectionEnabled )
|
||||
if( rowBegins >= 0 && rowEnds >= 0 )
|
||||
{
|
||||
if( columnBegins >= 0 && columnEnds >= 0 )
|
||||
int cb = columnBegins <= columnEnds ? columnBegins : columnEnds;
|
||||
int ce = columnBegins <= columnEnds ? columnEnds : columnBegins;
|
||||
int rb = rowBegins <= rowEnds ? rowBegins : rowEnds;
|
||||
int re = rowBegins <= rowEnds ? rowEnds : rowBegins;
|
||||
|
||||
QTextCursor ct = cursorForPosition( QPoint( 1,1 ) );
|
||||
int t = ct.blockNumber();
|
||||
int c = ct.columnNumber();
|
||||
|
||||
if( re >= t )
|
||||
{
|
||||
int cb = columnBegins <= columnEnds ? columnBegins : columnEnds;
|
||||
int ce = columnBegins <= columnEnds ? columnEnds : columnBegins;
|
||||
int rb = rowBegins <= rowEnds ? rowBegins : rowEnds;
|
||||
int re = rowBegins <= rowEnds ? rowEnds : rowBegins;
|
||||
QPainter p( viewport() );
|
||||
|
||||
int t = cursorForPosition( QPoint( 1,1 ) ).blockNumber();
|
||||
if( re >= t )
|
||||
int fontWidth = fontMetrics().averageCharWidth();
|
||||
|
||||
int top = ( ( rb <= t ) ? 0 : ( ( rb - t ) * fontMetrics().height() ) );
|
||||
int btm = ( ( re - t + 1 ) * fontMetrics().height() ) - top;
|
||||
|
||||
if( selectionMode == selectionMode_column )
|
||||
{
|
||||
QPainter p( viewport() );
|
||||
|
||||
int c = cursorForPosition( QPoint( 1,1 ) ).columnNumber();
|
||||
|
||||
int top = ( ( rb <= t ) ? 0 : ( ( rb - t ) * fontMetrics().height() ) );
|
||||
int btm = ( ( re - t + 1 ) * fontMetrics().height() ) - top;
|
||||
|
||||
int fontWidth = fontMetrics().averageCharWidth();
|
||||
|
||||
int x = ( ( cb - c ) * fontWidth ) + ( c > 0 ? 0 : contentsRect().left() );
|
||||
int w = ( ce - cb ) * fontWidth;
|
||||
|
||||
@@ -1106,24 +1325,51 @@ void HBQPlainTextEdit::hbPaintColumnSelection( QPaintEvent * event )
|
||||
|
||||
p.fillRect( r, QBrush( QColor( 175, 255, 175 ) ) );
|
||||
}
|
||||
}
|
||||
}
|
||||
else if( selectionMode == selectionMode_line )
|
||||
{
|
||||
int rb = rowBegins <= rowEnds ? rowBegins : rowEnds;
|
||||
int re = rowBegins <= rowEnds ? rowEnds : rowBegins;
|
||||
else if( selectionMode == selectionMode_stream )
|
||||
{
|
||||
int i;
|
||||
int width = viewport()->width();
|
||||
int height = fontMetrics().height();
|
||||
|
||||
int t = cursorForPosition( QPoint( 1,1 ) ).blockNumber();
|
||||
if( re >= t )
|
||||
{
|
||||
QPainter p( viewport() );
|
||||
for( i = rb; i <= re; i++ )
|
||||
{
|
||||
if( i >= t )
|
||||
{
|
||||
QRect r;
|
||||
|
||||
int top = ( ( rb <= t ) ? 0 : ( ( rb - t ) * fontMetrics().height() ) );
|
||||
int btm = ( ( re - t + 1 ) * fontMetrics().height() ) - top ;
|
||||
|
||||
QRect r( 0, top, viewport()->width(), btm );
|
||||
|
||||
p.fillRect( r, QBrush( QColor( 175, 255, 175 ) ) );
|
||||
if( i == rb )
|
||||
{
|
||||
if( rb == re )
|
||||
{
|
||||
int x = ( ( cb - c ) * fontWidth ) + ( c > 0 ? 0 : contentsRect().left() );
|
||||
int w = ( ce - cb ) * fontWidth;
|
||||
r = QRect( x, top, ( w == 0 ? 1 : w ), height );
|
||||
}
|
||||
else
|
||||
{
|
||||
int x = ( ( columnBegins - c ) * fontWidth ) + ( c > 0 ? 0 : contentsRect().left() );
|
||||
r = QRect( x, top, width, height );
|
||||
}
|
||||
}
|
||||
else if( i == re )
|
||||
{
|
||||
int x = ( ( columnEnds - c ) * fontWidth ) + ( c > 0 ? 0 : contentsRect().left() );
|
||||
r = QRect( 0, top, x, height );
|
||||
}
|
||||
else
|
||||
{
|
||||
r = QRect( 0, top, width, height );
|
||||
}
|
||||
p.fillRect( r, QBrush( QColor( 175, 255, 175 ) ) );
|
||||
top += height;
|
||||
}
|
||||
}
|
||||
}
|
||||
else if( selectionMode == selectionMode_line )
|
||||
{
|
||||
QRect r( 0, top, viewport()->width(), btm );
|
||||
p.fillRect( r, QBrush( QColor( 175, 255, 175 ) ) );
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -186,6 +186,7 @@ public slots:
|
||||
void hbCopy();
|
||||
void hbPaste();
|
||||
void hbSetSelectionMode( int mode, bool on );
|
||||
void hbGetSelectionInfo();
|
||||
|
||||
private slots:
|
||||
void hbSlotCursorPositionChanged();
|
||||
|
||||
@@ -748,6 +748,20 @@ HB_FUNC( QT_HBQPLAINTEXTEDIT_HBSETSELECTIONMODE )
|
||||
}
|
||||
}
|
||||
|
||||
/*
|
||||
* void hbGetSelectionInfo()
|
||||
*/
|
||||
HB_FUNC( QT_HBQPLAINTEXTEDIT_HBGETSELECTIONINFO )
|
||||
{
|
||||
HBQPlainTextEdit * p = hbqt_par_HBQPlainTextEdit( 1 );
|
||||
if( p )
|
||||
( p )->hbGetSelectionInfo();
|
||||
else
|
||||
{
|
||||
HB_TRACE( HB_TR_DEBUG, ( "............................... F=QT_HBQPLAINTEXTEDIT_HBGETSELECTIONINFO FP=( p )->hbGetSelectionInfo(); p is NULL" ) );
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
/*----------------------------------------------------------------------*/
|
||||
#endif /* #if QT_VERSION >= 0x040500 */
|
||||
|
||||
@@ -109,6 +109,7 @@ CREATE CLASS HBQPlainTextEdit INHERIT HbQtObjectHandler, QPlainTextEdit
|
||||
METHOD hbCopy()
|
||||
METHOD hbPaste()
|
||||
METHOD hbSetSelectionMode( nMode, lOn )
|
||||
METHOD hbGetSelectionInfo()
|
||||
|
||||
ENDCLASS
|
||||
|
||||
@@ -289,3 +290,7 @@ METHOD HBQPlainTextEdit:hbPaste()
|
||||
METHOD HBQPlainTextEdit:hbSetSelectionMode( nMode, lOn )
|
||||
RETURN Qt_HBQPlainTextEdit_hbSetSelectionMode( ::pPtr, nMode, lOn )
|
||||
|
||||
|
||||
METHOD HBQPlainTextEdit:hbGetSelectionInfo()
|
||||
RETURN Qt_HBQPlainTextEdit_hbGetSelectionInfo( ::pPtr )
|
||||
|
||||
|
||||
@@ -140,7 +140,7 @@ HB_FUNC( QT_HBQPLAINTEXTEDIT )
|
||||
void hbCopy()
|
||||
void hbPaste()
|
||||
void hbSetSelectionMode( int mode, bool on )
|
||||
|
||||
void hbGetSelectionInfo()
|
||||
</SLOTS>
|
||||
|
||||
<SIGNALS>
|
||||
|
||||
Reference in New Issue
Block a user