Opened 16 years ago

Closed 15 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:
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 16 years ago.
Rewriting of DataTranslation using the ALM Layout.

Download all attachments as: .zip

Change History (4)

by maxime.simon, 16 years ago

Attachment: 3789.diff added

Rewriting of DataTranslation using the ALM Layout.

comment:1 by maxime.simon, 16 years ago

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 by leavengood, 15 years ago

Owner: changed from axeld to leavengood
Status: newassigned

Taking ownership as I applied the patch.

comment:3 by leavengood, 15 years ago

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.