Opened 10 years ago

Closed 9 years ago

#3789 closed enhancement (fixed)

Rewrite DataTranslation using the Layout API.

Reported by: maxime.simon Owned by: leavengood
Priority: normal Milestone: R1
Component: Preferences/DataTranslations Version: R1/pre-alpha1
Keywords: Cc:
Blocked By: Blocking:
Has a Patch: no Platform: All

Description

In my opinion, to tackle the ticket #2117 we need the DataTranslation to use the Layout manager.

The DataTranslation would accept layout and non-layout translator's config. (That's the current issue which blocks the resolve of the ticket #2117)

Attachments (1)

3789.diff (5.5 KB) - added by maxime.simon 10 years ago.
Rewriting of DataTranslation using the ALM Layout.

Download all attachments as: .zip

Change History (4)

Changed 10 years ago by maxime.simon

Attachment: 3789.diff added

Rewriting of DataTranslation using the ALM Layout.

comment:1 Changed 10 years ago by maxime.simon

DataTranslation now works with both layout and non-layout translators.
For layout translators a piece of code is needed in the ConfigView:

BFont font;
GetFont(&font);
SetExplicitPreferredSize(BSize((font.Size() * 400)/12, (font.Size() * 200)/12));

We ask for the an explicit preferred size which we use in DataTranslation to resize the window. This size has to be font sensitive (like in the piece of code above).

comment:2 Changed 9 years ago by leavengood

Owner: changed from axeld to leavengood
Status: newassigned

Taking ownership as I applied the patch.

comment:3 Changed 9 years ago by leavengood

Resolution: fixed
Status: assignedclosed

Patch applied and therefore bug fixed in hrev35768. Sorry for the delay Maxime!

Note: See TracTickets for help on using tickets.