[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: question: translation into Russian



Перевод, вероятно, будет зависеть от контекста.

В GTK, быть может, это действительно будет "штуковина"
или элемент управления окном.

В Motif это нечто другое:


	  THE DEFINITIVE GUIDES TO THE
		X WINDOW SYSTEM

		  VOLUME SIX B

	     Motif Reference Manual

(Издание декабря 2001, стр.VII.)

	    About the Motif Toolkit

The Motif toolkit, from the Open Software Foundation (OSF),
is based on the X Toolkit Intrinsics (Xt), which is the standard
mechanism on which many of the toolkits written for the X Window
System are based.  Xt provides a library of user-interface objects
called widgets and gadgets, which provide a convenient interface
for creating and manipulating X windows, colormaps, events, and
other cosmetic attributes of the display.  In short, widgets can
be thought of as building blocks that the programmer uses to
construct a complete application.

However, the widgets that Xt provides are generic in nature and
impose no user-interface policy whatsoever.  Providing the look
and feel of an interface is the job of a user-interface toolkit
such as Motif.  Motif provides a complete set of widgets that are
designed to implement the application look and feel specified in
the Motif Style Guide and Motif Application Environment
Specification.


В общем - это управляемые _объекты_ (т.е. не самостоятельно
действующие _субъекты_ и не некие нейтральные _элементы_).
Причем нужно учитывать их различия в Xt и в Motif.


> widget - это сравнительно новое слово
Учитывая "возраст" Xt - "Ну это вряд ли..." (C) т.Сухов.


> widget может и не являться управляющим элементом интерфейса.
>> таковым (с большой натяжкой) можно считать только заголовок
>> окна. Все остальные widgets являются элементами управления
Отнюдь.  Самые избитые примеры - XmFrame и XmSeparator (рамка и
линейчатый разделитель.  С понятными оговорками - XmLabel, XmText
и некоторые Managerы.


> Я бы не решился назвать toplevel window
Таки TopLevelShell?


И про соотношение "widgetы vs gadgetы".

Из "X Toolkit Intrinsics Programming Manual":

[...] One of these ways involves the use of
_windowless widgets_, or _gadgets_.

Здесь window понимается на "нижнем уровне Xlib"
(displays and screens, events, properties and atoms) -
"A window is a rectangular area that works in several
ways like a miniature screen".



Reply to: