summaryrefslogtreecommitdiff
path: root/svx/source/sidebar
diff options
context:
space:
mode:
authorPrashant Pandey <prashant3.yishu@gmail.com>2013-06-21 16:29:57 +0530
committerJan Holesovsky <kendy@suse.cz>2013-07-11 14:59:10 +0200
commitade434f494d0e272db9818f672c38e311ac748d8 (patch)
treec15e52d13efb1bf9a6ae781a2c0e00072160f133 /svx/source/sidebar
parent51908951143aa97022023c336cee64cae202346c (diff)
sidebar: LinePropertyPanel conversion to .ui
Change-Id: I7f9ee68fac268621f2412377fa059c7f8225718c
Diffstat (limited to 'svx/source/sidebar')
-rw-r--r--svx/source/sidebar/line/LinePropertyPanel.cxx122
-rw-r--r--svx/source/sidebar/line/LinePropertyPanel.hrc13
-rw-r--r--svx/source/sidebar/line/LinePropertyPanel.hxx35
-rw-r--r--svx/source/sidebar/line/LinePropertyPanel.src172
4 files changed, 71 insertions, 271 deletions
diff --git a/svx/source/sidebar/line/LinePropertyPanel.cxx b/svx/source/sidebar/line/LinePropertyPanel.cxx
index 1330f4636fb9..f887c6ba2b2d 100644
--- a/svx/source/sidebar/line/LinePropertyPanel.cxx
+++ b/svx/source/sidebar/line/LinePropertyPanel.cxx
@@ -57,6 +57,9 @@ using namespace css;
using namespace cssu;
using ::sfx2::sidebar::Theme;
+const char UNO_SELECTWIDTH[] = ".uno:SelectWidth";
+const char UNO_SELECTCOLOR[] = ".uno:SelectColor";
+
#define A2S(pString) (::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM(pString)))
namespace {
@@ -153,26 +156,7 @@ LinePropertyPanel::LinePropertyPanel(
Window* pParent,
const cssu::Reference<css::frame::XFrame>& rxFrame,
SfxBindings* pBindings)
-: Control(
- pParent,
- SVX_RES(RID_SIDEBAR_LINE_PANEL)),
- mpFTWidth(new FixedText(this, SVX_RES(FT_WIDTH))),
- mpTBWidthBackground(sfx2::sidebar::ControlFactory::CreateToolBoxBackground(this)),
- mpTBWidth(sfx2::sidebar::ControlFactory::CreateToolBox(mpTBWidthBackground.get(), SVX_RES(TB_WIDTH))),
- mpFTColor(new FixedText(this, SVX_RES(FT_COLOR))),
- mpTBColorBackground(sfx2::sidebar::ControlFactory::CreateToolBoxBackground(this)),
- mpTBColor(sfx2::sidebar::ControlFactory::CreateToolBox(mpTBColorBackground.get(), SVX_RES(TB_COLOR))),
- mpFTStyle(new FixedText(this, SVX_RES(FT_STYLE))),
- mpLBStyle(new ListBox(this, SVX_RES(LB_STYLE))),
- mpFTTrancparency(new FixedText(this, SVX_RES(FT_TRANSPARENT))),
- mpMFTransparent(new MetricField(this, SVX_RES(MF_TRANSPARENT))),
- mpFTArrow(new FixedText(this, SVX_RES(FT_ARROW))),
- mpLBStart(new ListBox(this, SVX_RES(LB_START))),
- mpLBEnd(new ListBox(this, SVX_RES(LB_END))),
- mpFTEdgeStyle(new FixedText(this, SVX_RES(FT_EDGESTYLE))),
- mpLBEdgeStyle(new ListBox(this, SVX_RES(LB_EDGESTYLE))),
- mpFTCapStyle(new FixedText(this, SVX_RES(FT_CAPSTYLE))),
- mpLBCapStyle(new ListBox(this, SVX_RES(LB_CAPSTYLE))),
+: PanelLayout(pParent, "LinePropertyPanel", "svx/ui/sidebarline", rxFrame),
maStyleControl(SID_ATTR_LINE_STYLE, *pBindings, *this),
maDashControl (SID_ATTR_LINE_DASH, *pBindings, *this),
maWidthControl(SID_ATTR_LINE_WIDTH, *pBindings, *this),
@@ -185,7 +169,6 @@ LinePropertyPanel::LinePropertyPanel(
maEdgeStyle(SID_ATTR_LINE_JOINT, *pBindings, *this),
maCapStyle(SID_ATTR_LINE_CAP, *pBindings, *this),
maColor(COL_BLACK),
- mpColorUpdater(new ::svx::ToolboxButtonColorUpdater(SID_ATTR_LINE_COLOR, TBI_COLOR, mpTBColor.get())),
mpStyleItem(),
mpDashItem(),
mnTrans(0),
@@ -203,34 +186,37 @@ LinePropertyPanel::LinePropertyPanel(
mbColorAvailable(true),
mbWidthValuable(true)
{
+ get(mpFTWidth, "widthlabel");
+ get(mpTBWidth, "width");
+ get(mpFTColor, "colorlabel");
+ get(mpTBColor, "color");
+ get(mpFTStyle, "stylelabel");
+ get(mpLBStyle, "linestyle");
+ get(mpFTTrancparency, "translabel");
+ get(mpMFTransparent, "linetransparency");
+ get(mpFTArrow, "arrowlabel");
+ get(mpLBStart, "beginarrowstyle");
+ get(mpLBEnd, "endarrowstyle");
+ get(mpFTEdgeStyle, "cornerlabel");
+ get(mpLBEdgeStyle, "edgestyle");
+ get(mpFTCapStyle, "caplabel");
+ get(mpLBCapStyle, "linecapstyle");
+
+ const sal_uInt16 nIdColor = mpTBColor->GetItemId(UNO_SELECTCOLOR);
+ mpColorUpdater.reset(new ::svx::ToolboxButtonColorUpdater(SID_ATTR_LINE_COLOR, nIdColor, mpTBColor)),
Initialize();
- FreeResource();
}
LinePropertyPanel::~LinePropertyPanel()
{
- // Destroy the toolboxes, then their background windows.
- mpTBWidth.reset();
- mpTBColor.reset();
-
- mpTBWidthBackground.reset();
- mpTBColorBackground.reset();
}
void LinePropertyPanel::Initialize()
{
- mpFTWidth->SetBackground(Wallpaper());
- mpFTColor->SetBackground(Wallpaper());
- mpFTStyle->SetBackground(Wallpaper());
- mpFTTrancparency->SetBackground(Wallpaper());
- mpFTArrow->SetBackground(Wallpaper());
- mpFTEdgeStyle->SetBackground(Wallpaper());
- mpFTCapStyle->SetBackground(Wallpaper());
-
mpIMGWidthIcon.reset(new Image[8]);
mpIMGWidthIcon[0] = Image(SVX_RES(IMG_WIDTH1_ICON));
mpIMGWidthIcon[1] = Image(SVX_RES(IMG_WIDTH2_ICON));
@@ -242,14 +228,10 @@ void LinePropertyPanel::Initialize()
mpIMGWidthIcon[7] = Image(SVX_RES(IMG_WIDTH8_ICON));
meMapUnit = maWidthControl.GetCoreMetric();
+ const sal_uInt16 nIdColor = mpTBColor->GetItemId(UNO_SELECTCOLOR);
- mpTBColor->SetItemImage(TBI_COLOR, maIMGColor);
- Size aTbxSize( mpTBColor->CalcWindowSizePixel() );
- mpTBColor->SetOutputSizePixel( aTbxSize );
- mpTBColor->SetItemBits( TBI_COLOR, mpTBColor->GetItemBits( TBI_COLOR ) | TIB_DROPDOWNONLY );
- mpTBColor->SetQuickHelpText(TBI_COLOR,String(SVX_RES(STR_QH_TB_COLOR))); //Add
- mpTBColor->SetBackground(Wallpaper());
- mpTBColor->SetPaintTransparent(true);
+ mpTBColor->SetItemImage(nIdColor, maIMGColor);
+ mpTBColor->SetItemBits( nIdColor, mpTBColor->GetItemBits( nIdColor ) | TIB_DROPDOWNONLY );
Link aLink = LINK(this, LinePropertyPanel, ToolboxColorSelectHdl);
mpTBColor->SetDropdownClickHdl ( aLink );
mpTBColor->SetSelectHdl ( aLink );
@@ -261,13 +243,9 @@ void LinePropertyPanel::Initialize()
mpLBStyle->SetAccessibleName(::rtl::OUString( RTL_CONSTASCII_USTRINGPARAM("Style")));
mpLBStyle->AdaptDropDownLineCountToMaximum();
- mpTBWidth->SetItemImage(TBI_WIDTH, mpIMGWidthIcon[0]);
- aTbxSize = mpTBWidth->CalcWindowSizePixel() ;
- mpTBWidth->SetOutputSizePixel( aTbxSize );
- mpTBWidth->SetItemBits( TBI_WIDTH, mpTBWidth->GetItemBits( TBI_WIDTH ) | TIB_DROPDOWNONLY );
- mpTBWidth->SetQuickHelpText(TBI_WIDTH,String(SVX_RES(STR_QH_TB_WIDTH))); //Add
- mpTBWidth->SetBackground(Wallpaper());
- mpTBWidth->SetPaintTransparent(true);
+ const sal_uInt16 nIdWidth = mpTBWidth->GetItemId(UNO_SELECTWIDTH);
+ mpTBWidth->SetItemImage(nIdWidth, mpIMGWidthIcon[0]);
+ mpTBWidth->SetItemBits( nIdWidth, mpTBWidth->GetItemBits( nIdWidth ) | TIB_DROPDOWNONLY );
aLink = LINK(this, LinePropertyPanel, ToolboxWidthSelectHdl);
mpTBWidth->SetDropdownClickHdl ( aLink );
mpTBWidth->SetSelectHdl ( aLink );
@@ -288,12 +266,12 @@ void LinePropertyPanel::Initialize()
mpMFTransparent->SetModifyHdl(aLink);
mpMFTransparent->SetAccessibleName(::rtl::OUString( RTL_CONSTASCII_USTRINGPARAM("Transparency"))); //wj acc
- mpTBWidth->SetAccessibleRelationLabeledBy(mpFTWidth.get());
- mpTBColor->SetAccessibleRelationLabeledBy(mpFTColor.get());
- mpLBStyle->SetAccessibleRelationLabeledBy(mpFTStyle.get());
- mpMFTransparent->SetAccessibleRelationLabeledBy(mpFTTrancparency.get());
- mpLBStart->SetAccessibleRelationLabeledBy(mpFTArrow.get());
- mpLBEnd->SetAccessibleRelationLabeledBy(mpLBEnd.get());
+ mpTBWidth->SetAccessibleRelationLabeledBy(mpFTWidth);
+ mpTBColor->SetAccessibleRelationLabeledBy(mpFTColor);
+ mpLBStyle->SetAccessibleRelationLabeledBy(mpFTStyle);
+ mpMFTransparent->SetAccessibleRelationLabeledBy(mpFTTrancparency);
+ mpLBStart->SetAccessibleRelationLabeledBy(mpFTArrow);
+ mpLBEnd->SetAccessibleRelationLabeledBy(mpLBEnd);
aLink = LINK( this, LinePropertyPanel, ChangeEdgeStyleHdl );
mpLBEdgeStyle->SetSelectHdl( aLink );
@@ -709,8 +687,9 @@ IMPL_LINK( LinePropertyPanel, ImplPopupModeEndHdl, FloatingWindow*, EMPTYARG )
IMPL_LINK(LinePropertyPanel, ToolboxColorSelectHdl,ToolBox*, pToolBox)
{
- sal_uInt16 nId = pToolBox->GetCurItemId();
- if(nId == TBI_COLOR)
+ const OUString aCommand(pToolBox->GetItemCommand(pToolBox->GetCurItemId()));
+
+ if(aCommand == UNO_SELECTCOLOR)
{
maColorPopup.Show(*pToolBox);
maColorPopup.SetCurrentColor(maColor, mbColorAvailable);
@@ -878,7 +857,7 @@ IMPL_LINK(LinePropertyPanel, ChangeCapStyleHdl, void*, EMPTYARG)
IMPL_LINK(LinePropertyPanel, ToolboxWidthSelectHdl,ToolBox*, pToolBox)
{
- if (pToolBox->GetCurItemId() == TBI_WIDTH)
+ if (pToolBox->GetItemCommand(pToolBox->GetCurItemId()) == UNO_SELECTWIDTH)
{
maLineWidthPopup.SetWidthSelect(mnWidthCoreValue, mbWidthValuable, meMapUnit);
maLineWidthPopup.Show(*pToolBox);
@@ -943,10 +922,11 @@ void LinePropertyPanel::EndLineWidthPopupMode (void)
void LinePropertyPanel::SetWidthIcon(int n)
{
+ const sal_uInt16 nIdWidth = mpTBWidth->GetItemId(UNO_SELECTWIDTH);
if(n==0)
- mpTBWidth->SetItemImage( TBI_WIDTH, maIMGNone);
+ mpTBWidth->SetItemImage( nIdWidth, maIMGNone);
else
- mpTBWidth->SetItemImage( TBI_WIDTH, mpIMGWidthIcon[n-1]);
+ mpTBWidth->SetItemImage( nIdWidth, mpIMGWidthIcon[n-1]);
}
@@ -955,28 +935,30 @@ void LinePropertyPanel::SetWidthIcon()
{
if(!mbWidthValuable)
{
- mpTBWidth->SetItemImage( TBI_WIDTH, maIMGNone);
+ const sal_uInt16 nIdWidth = mpTBWidth->GetItemId(UNO_SELECTWIDTH);
+ mpTBWidth->SetItemImage(nIdWidth, maIMGNone);
return;
}
long nVal = LogicToLogic(mnWidthCoreValue * 10,(MapUnit)meMapUnit , MAP_POINT);
+ const sal_uInt16 nIdWidth = mpTBWidth->GetItemId(UNO_SELECTWIDTH);
if(nVal <= 6)
- mpTBWidth->SetItemImage( TBI_WIDTH, mpIMGWidthIcon[0]);
+ mpTBWidth->SetItemImage( nIdWidth, mpIMGWidthIcon[0]);
else if(nVal > 6 && nVal <= 9)
- mpTBWidth->SetItemImage( TBI_WIDTH, mpIMGWidthIcon[1]);
+ mpTBWidth->SetItemImage( nIdWidth, mpIMGWidthIcon[1]);
else if(nVal > 9 && nVal <= 12)
- mpTBWidth->SetItemImage( TBI_WIDTH, mpIMGWidthIcon[2]);
+ mpTBWidth->SetItemImage( nIdWidth, mpIMGWidthIcon[2]);
else if(nVal > 12 && nVal <= 19)
- mpTBWidth->SetItemImage( TBI_WIDTH, mpIMGWidthIcon[3]);
+ mpTBWidth->SetItemImage( nIdWidth, mpIMGWidthIcon[3]);
else if(nVal > 19 && nVal <= 26)
- mpTBWidth->SetItemImage( TBI_WIDTH, mpIMGWidthIcon[4]);
+ mpTBWidth->SetItemImage( nIdWidth, mpIMGWidthIcon[4]);
else if(nVal > 26 && nVal <= 37)
- mpTBWidth->SetItemImage( TBI_WIDTH, mpIMGWidthIcon[5]);
+ mpTBWidth->SetItemImage( nIdWidth, mpIMGWidthIcon[5]);
else if(nVal > 37 && nVal <=52)
- mpTBWidth->SetItemImage( TBI_WIDTH, mpIMGWidthIcon[6]);
+ mpTBWidth->SetItemImage( nIdWidth, mpIMGWidthIcon[6]);
else if(nVal > 52)
- mpTBWidth->SetItemImage( TBI_WIDTH, mpIMGWidthIcon[7]);
+ mpTBWidth->SetItemImage( nIdWidth, mpIMGWidthIcon[7]);
}
diff --git a/svx/source/sidebar/line/LinePropertyPanel.hrc b/svx/source/sidebar/line/LinePropertyPanel.hrc
index 13c446e4372b..d3940c658c43 100644
--- a/svx/source/sidebar/line/LinePropertyPanel.hrc
+++ b/svx/source/sidebar/line/LinePropertyPanel.hrc
@@ -21,19 +21,6 @@
#define CUSTOM_W 74
#define CUSTOM_H POPUPPANEL_MARGIN_LARGE * 2 + TEXT_HEIGHT + 12 + TEXT_CONTROL_SPACING_VERTICAL
-#define FT_COLOR 1
-#define TB_COLOR 2
-#define FT_WIDTH 3
-#define TB_WIDTH 4
-#define FT_STYLE 5
-#define LB_STYLE 6
-#define FT_ARROW 7
-#define FT_TRANSPARENT 8
-#define MF_TRANSPARENT 9
-#define LB_START 10
-#define LB_END 11
-#define TBI_COLOR 12
-#define TBI_WIDTH 13
#define TBI_STYLE 14
#define STR_QH_TB_WIDTH 15
#define STR_QH_TB_COLOR 16
diff --git a/svx/source/sidebar/line/LinePropertyPanel.hxx b/svx/source/sidebar/line/LinePropertyPanel.hxx
index b2f97bd1c067..493bcfbf7044 100644
--- a/svx/source/sidebar/line/LinePropertyPanel.hxx
+++ b/svx/source/sidebar/line/LinePropertyPanel.hxx
@@ -27,6 +27,7 @@
#include <boost/scoped_ptr.hpp>
#include <boost/scoped_array.hpp>
#include <svx/sidebar/ColorPopup.hxx>
+#include <svx/sidebar/PanelLayout.hxx>
#include <svx/xtable.hxx>
#include "LineWidthPopup.hxx"
@@ -57,7 +58,7 @@ class LineWidthControl;
class LinePropertyPanel
-: public Control,
+: public PanelLayout,
public ::sfx2::sidebar::ControllerItem::ItemUpdateReceiverInterface
{
private:
@@ -89,23 +90,21 @@ public:
private:
//ui controls
- ::boost::scoped_ptr< FixedText > mpFTWidth;
- ::boost::scoped_ptr< Window > mpTBWidthBackground;
- ::boost::scoped_ptr< ToolBox > mpTBWidth;
- ::boost::scoped_ptr< FixedText > mpFTColor;
- ::boost::scoped_ptr< Window > mpTBColorBackground;
- ::boost::scoped_ptr< ToolBox > mpTBColor;
- ::boost::scoped_ptr< FixedText > mpFTStyle;
- ::boost::scoped_ptr< ListBox > mpLBStyle;
- ::boost::scoped_ptr< FixedText > mpFTTrancparency;
- ::boost::scoped_ptr< MetricField > mpMFTransparent;
- ::boost::scoped_ptr< FixedText > mpFTArrow;
- ::boost::scoped_ptr< ListBox > mpLBStart;
- ::boost::scoped_ptr< ListBox > mpLBEnd;
- ::boost::scoped_ptr< FixedText > mpFTEdgeStyle;
- ::boost::scoped_ptr< ListBox > mpLBEdgeStyle;
- ::boost::scoped_ptr< FixedText > mpFTCapStyle;
- ::boost::scoped_ptr< ListBox > mpLBCapStyle;
+ FixedText* mpFTWidth;
+ ToolBox* mpTBWidth;
+ FixedText* mpFTColor;
+ ToolBox* mpTBColor;
+ FixedText* mpFTStyle;
+ ListBox* mpLBStyle;
+ FixedText* mpFTTrancparency;
+ MetricField* mpMFTransparent;
+ FixedText* mpFTArrow;
+ ListBox* mpLBStart;
+ ListBox* mpLBEnd;
+ FixedText* mpFTEdgeStyle;
+ ListBox* mpLBEdgeStyle;
+ FixedText* mpFTCapStyle;
+ ListBox* mpLBCapStyle;
//ControllerItem
::sfx2::sidebar::ControllerItem maStyleControl;
diff --git a/svx/source/sidebar/line/LinePropertyPanel.src b/svx/source/sidebar/line/LinePropertyPanel.src
index e90495877675..07441d867cdb 100644
--- a/svx/source/sidebar/line/LinePropertyPanel.src
+++ b/svx/source/sidebar/line/LinePropertyPanel.src
@@ -36,90 +36,7 @@ Control RID_SIDEBAR_LINE_PANEL
SECTIONPAGE_MARGIN_VERTICAL_TOP + TEXT_HEIGHT*4 + TEXT_CONTROL_SPACING_VERTICAL*4 + TOOLBOX_HEIGHT*3 + CONTROL_SPACING_VERTICAL*3 + CBOX_HEIGHT + SECTIONPAGE_MARGIN_VERTICAL_BOT );
HelpID = HID_PROPERTYPANEL_LINE_SECTION ;
- FixedText FT_WIDTH
- {
- Pos = MAP_APPFONT( SECTIONPAGE_MARGIN_HORIZONTAL , SECTIONPAGE_MARGIN_VERTICAL_TOP ) ;
- Size = MAP_APPFONT (TOOLBOX_WIDTH , TEXT_HEIGHT ) ;
- Text [ en-US ] = "~Width:" ;
- };
- ToolBox TB_WIDTH
- {
- SVLook = TRUE ;
- Pos = MAP_APPFONT (SECTIONPAGE_MARGIN_HORIZONTAL, SECTIONPAGE_MARGIN_VERTICAL_TOP + TEXT_HEIGHT + TEXT_CONTROL_SPACING_VERTICAL) ;
- Size = MAP_APPFONT (TOOLBOX_WIDTH ,TOOLBOX_HEIGHT ) ;
- TabStop = TRUE ;
- HelpID = HID_PPROPERTYPANEL_LINE_TBX_WIDTH ;
- Text = "Width";
- ItemList =
- {
- ToolBoxItem
- {
- Identifier = TBI_WIDTH ;
- DropDown = TRUE ;
- Text [ en-US ] = "Width" ;
- HelpID = HID_PPROPERTYPANEL_LINE_TBI_WIDTH;
- };
- };
- };
- String STR_QH_TB_WIDTH
- {
- Text [ en-US ] = "Select the width of the line.";
- };
-
- FixedText FT_COLOR
- {
- Pos = MAP_APPFONT ( SECTIONPAGE_MARGIN_HORIZONTAL + TOOLBOX_WIDTH + 3, SECTIONPAGE_MARGIN_VERTICAL_TOP ) ;
- Size = MAP_APPFONT (TOOLBOX_WIDTH , TEXT_HEIGHT ) ;
- Text [ en-US ] = "~Color:" ;
- };
- ToolBox TB_COLOR
- {
- SVLook = TRUE ;
- Pos = MAP_APPFONT (SECTIONPAGE_MARGIN_HORIZONTAL + TOOLBOX_WIDTH + 4, SECTIONPAGE_MARGIN_VERTICAL_TOP + TEXT_HEIGHT + TEXT_CONTROL_SPACING_VERTICAL) ;
- Size = MAP_APPFONT (TOOLBOX_WIDTH ,TOOLBOX_HEIGHT ) ;
- TabStop = TRUE ;
- HelpID = HID_PPROPERTYPANEL_LINE_TBX_COLOR;
- Text = "Color";
- ItemList =
- {
- ToolBoxItem
- {
- Identifier = TBI_COLOR ;
- DropDown = TRUE ;
- Text [ en-US ] = "Color" ;
- HelpID = HID_PPROPERTYPANEL_LINE_TBI_COLOR;
- };
- };
- };
- String STR_QH_TB_COLOR
- {
- Text [ en-US ] = "Select the color of the line.";
- };
-
- FixedText FT_STYLE
- {
- Pos = MAP_APPFONT ( SECTIONPAGE_MARGIN_HORIZONTAL , SECTIONPAGE_MARGIN_VERTICAL_TOP + TEXT_HEIGHT + TEXT_CONTROL_SPACING_VERTICAL + TOOLBOX_HEIGHT + CONTROL_SPACING_VERTICAL) ;
- Size = MAP_APPFONT (TOOLBOX_WIDTH , TEXT_HEIGHT ) ;
- Text [ en-US ] = "~Style:" ;
- };
- ListBox LB_STYLE
- {
- Border = TRUE ;
- HelpID = HID_PPROPERTYPANEL_LINE_TBX_STYLE;
- Pos = MAP_APPFONT (SECTIONPAGE_MARGIN_HORIZONTAL, SECTIONPAGE_MARGIN_VERTICAL_TOP + TEXT_HEIGHT*2 + TEXT_CONTROL_SPACING_VERTICAL*2 + TOOLBOX_HEIGHT + CONTROL_SPACING_VERTICAL) ;
- Size = MAP_APPFONT (TOOLBOX_WIDTH ,LISTBOX_HEIGHT ) ;
- TabStop = TRUE ;
- DropDown = TRUE ;
- DDExtraWidth = TRUE ;
- QuickHelpText [ en-US ] = "Select the style of the line.";
- };
-
- FixedText FT_TRANSPARENT
- {
- Pos = MAP_APPFONT ( SECTIONPAGE_MARGIN_HORIZONTAL + TOOLBOX_WIDTH + 3 , SECTIONPAGE_MARGIN_VERTICAL_TOP + TEXT_HEIGHT + TEXT_CONTROL_SPACING_VERTICAL + TOOLBOX_HEIGHT + CONTROL_SPACING_VERTICAL) ;
- Size = MAP_APPFONT (TOOLBOX_WIDTH , TEXT_HEIGHT ) ;
- Text [ en-US ] = "~Transparency:" ;
- };
+/*
MetricField MF_TRANSPARENT
{
Border = TRUE ;
@@ -137,92 +54,7 @@ Control RID_SIDEBAR_LINE_PANEL
SpinSize = 5 ;
QuickHelpText [ en-US ] = "Specify the transparency of the line.";
};
-
- FixedText FT_ARROW
- {
- Pos = MAP_APPFONT ( SECTIONPAGE_MARGIN_HORIZONTAL, SECTIONPAGE_MARGIN_VERTICAL_TOP + TEXT_HEIGHT*2 + TEXT_CONTROL_SPACING_VERTICAL*2 + TOOLBOX_HEIGHT*2 + CONTROL_SPACING_VERTICAL*2) ;
- Size = MAP_APPFONT (TOOLBOX_WIDTH * 2 + 3 , TEXT_HEIGHT ) ;
- Text [ en-US ] = "~Arrow:" ;
- };
- ListBox LB_START
- {
- Border = TRUE ;
- HelpID = HID_PPROPERTYPANEL_LINE_LB_START;
- Pos = MAP_APPFONT ( SECTIONPAGE_MARGIN_HORIZONTAL , SECTIONPAGE_MARGIN_VERTICAL_TOP + TEXT_HEIGHT*3 + TEXT_CONTROL_SPACING_VERTICAL*3 + TOOLBOX_HEIGHT*2 + CONTROL_SPACING_VERTICAL*2 ) ;
- Size = MAP_APPFONT ( TOOLBOX_WIDTH , LISTBOX_HEIGHT ) ;
- TabStop = TRUE ;
- DropDown = TRUE ;
- DDExtraWidth = TRUE ;
- QuickHelpText [ en-US ] = "Select the style of the beginning arrowhead.";
- };
- ListBox LB_END
- {
- Border = TRUE ;
- HelpID = HID_PPROPERTYPANEL_LINE_LB_END;
- Pos = MAP_APPFONT ( SECTIONPAGE_MARGIN_HORIZONTAL + TOOLBOX_WIDTH + 3 , SECTIONPAGE_MARGIN_VERTICAL_TOP + TEXT_HEIGHT*3 + TEXT_CONTROL_SPACING_VERTICAL*3 + TOOLBOX_HEIGHT*2 + CONTROL_SPACING_VERTICAL*2 ) ;
- Size = MAP_APPFONT ( TOOLBOX_WIDTH + 1, LISTBOX_HEIGHT ) ;
- TabStop = TRUE ;
- DropDown = TRUE ;
- DDExtraWidth = TRUE ;
- QuickHelpText [ en-US ] = "Select the style of the ending arrowhead.";
- };
-
- FixedText FT_EDGESTYLE
- {
- Pos = MAP_APPFONT (
- SECTIONPAGE_MARGIN_HORIZONTAL,
- SECTIONPAGE_MARGIN_VERTICAL_TOP + TEXT_HEIGHT*3 + TEXT_CONTROL_SPACING_VERTICAL*3 + TOOLBOX_HEIGHT*3 + CONTROL_SPACING_VERTICAL*3) ;
- Size = MAP_APPFONT (TOOLBOX_WIDTH * 2 + 3 , TEXT_HEIGHT ) ;
- Text [ en-US ] = "~Corner style" ;
- };
- ListBox LB_EDGESTYLE
- {
- HelpID = HID_PPROPERTYPANEL_LINE_LB_EDGESTYLE;
- Border = TRUE ;
- Pos = MAP_APPFONT (
- SECTIONPAGE_MARGIN_HORIZONTAL ,
- SECTIONPAGE_MARGIN_VERTICAL_TOP + TEXT_HEIGHT*4 + TEXT_CONTROL_SPACING_VERTICAL*4 + TOOLBOX_HEIGHT*3 + CONTROL_SPACING_VERTICAL*3 ) ;
- Size = MAP_APPFONT ( TOOLBOX_WIDTH , LISTBOX_HEIGHT ) ;
- TabStop = TRUE ;
- DropDown = TRUE ;
- DDExtraWidth = TRUE ;
- QuickHelpText [ en-US ] = "Select the style of the edge connections.";
- StringList [ en-US ] =
- {
- < "Rounded" ; Default ; > ;
- < "- none -" ; > ;
- < "Mitered" ; > ;
- < "Beveled" ; > ;
- };
- };
- FixedText FT_CAPSTYLE
- {
- Pos = MAP_APPFONT (
- SECTIONPAGE_MARGIN_HORIZONTAL + TOOLBOX_WIDTH + 3,
- SECTIONPAGE_MARGIN_VERTICAL_TOP + TEXT_HEIGHT*3 + TEXT_CONTROL_SPACING_VERTICAL*3 + TOOLBOX_HEIGHT*3 + CONTROL_SPACING_VERTICAL*3) ;
- Size = MAP_APPFONT (TOOLBOX_WIDTH * 2 + 3 , TEXT_HEIGHT ) ;
- Text [ en-US ] = "Ca~p style" ;
- };
- ListBox LB_CAPSTYLE
- {
- HelpID = HID_PPROPERTYPANEL_LINE_LB_CAPSTYLE;
- Border = TRUE ;
- Pos = MAP_APPFONT (
- SECTIONPAGE_MARGIN_HORIZONTAL + TOOLBOX_WIDTH + 3,
- SECTIONPAGE_MARGIN_VERTICAL_TOP + TEXT_HEIGHT*4 + TEXT_CONTROL_SPACING_VERTICAL*4 + TOOLBOX_HEIGHT*3 + CONTROL_SPACING_VERTICAL*3 ) ;
- Size = MAP_APPFONT ( TOOLBOX_WIDTH , LISTBOX_HEIGHT ) ;
- TabStop = TRUE ;
- DropDown = TRUE ;
- DDExtraWidth = TRUE ;
- QuickHelpText [ en-US ] = "Select the style of the line caps.";
- StringList [ en-US ] =
- {
- < "Flat" ; Default ; > ; // Same string as in Excel
- < "Round" ; > ;
- < "Square" ; > ;
- };
- };
-
+*/
Image IMG_COLOR
{
ImageBitmap = Bitmap{File = "symphony/Line_color.png";};