summaryrefslogtreecommitdiffstats
path: root/macosx/tkMacOSXScrlbr.c
diff options
context:
space:
mode:
Diffstat (limited to 'macosx/tkMacOSXScrlbr.c')
-rw-r--r--macosx/tkMacOSXScrlbr.c303
1 files changed, 155 insertions, 148 deletions
diff --git a/macosx/tkMacOSXScrlbr.c b/macosx/tkMacOSXScrlbr.c
index ab56193..5419cb0 100644
--- a/macosx/tkMacOSXScrlbr.c
+++ b/macosx/tkMacOSXScrlbr.c
@@ -2,17 +2,17 @@
* tkMacOSXScrollbar.c --
*
* This file implements the Macintosh specific portion of the scrollbar
- * widget. The Macintosh scrollbar may also draw a windows grow
- * region under certain cases.
+ * widget. The Macintosh scrollbar may also draw a windows grow region
+ * under certain cases.
*
* Copyright (c) 1996 by Sun Microsystems, Inc.
* Copyright 2001, Apple Computer, Inc.
* Copyright (c) 2006-2007 Daniel A. Steffen <das@users.sourceforge.net>
*
- * See the file "license.terms" for information on usage and redistribution
- * of this file, and for a DISCLAIMER OF ALL WARRANTIES.
+ * See the file "license.terms" for information on usage and redistribution of
+ * this file, and for a DISCLAIMER OF ALL WARRANTIES.
*
- * RCS: @(#) $Id: tkMacOSXScrlbr.c,v 1.26 2007/12/13 15:27:10 dgp Exp $
+ * RCS: @(#) $Id: tkMacOSXScrlbr.c,v 1.27 2008/10/03 13:13:31 dkf Exp $
*/
#include "tkMacOSXPrivate.h"
@@ -53,10 +53,10 @@ typedef struct MacScrollbar {
*/
static ControlActionUPP scrollActionProc = NULL; /* Pointer to func. */
static ControlActionUPP thumbActionProc = NULL; /* Pointer to func. */
-static Point mouseDownPoint; /* Used to store the coordinates where the */
- /* mouse was first pressed to begin */
- /* dragging the thumb, because */
- /* ThumbActionProc can't take any args. */
+static Point mouseDownPoint; /* Used to store the coordinates where the
+ * mouse was first pressed to begin dragging
+ * the thumb, because ThumbActionProc can't
+ * take any args. */
typedef struct ScrollbarMetrics {
SInt32 width, minHeight, minThumbHeight;
@@ -80,14 +80,16 @@ static char defWidth[TCL_INTEGER_SPACE];
* Forward declarations for procedures defined later in this file:
*/
-static pascal void ScrollbarActionProc(ControlRef theControl,
- ControlPartCode partCode);
-static pascal void ThumbActionProc(ControlRef theControl,
- ControlPartCode partCode);
-static int ScrollbarBindProc(ClientData clientData, Tcl_Interp *interp,
- XEvent *eventPtr, Tk_Window tkwin, KeySym keySym);
-static void ScrollbarEventProc(ClientData clientData, XEvent *eventPtr);
-static void UpdateControlValues(MacScrollbar *macScrollPtr);
+static pascal void ScrollbarActionProc(ControlRef theControl,
+ ControlPartCode partCode);
+static pascal void ThumbActionProc(ControlRef theControl,
+ ControlPartCode partCode);
+static int ScrollbarBindProc(ClientData clientData,
+ Tcl_Interp *interp, XEvent *eventPtr,
+ Tk_Window tkwin, KeySym keySym);
+static void ScrollbarEventProc(ClientData clientData,
+ XEvent *eventPtr);
+static void UpdateControlValues(MacScrollbar *macScrollPtr);
/*
* The class procedure table for the scrollbar widget. Leave the proc fields
@@ -98,14 +100,13 @@ static void UpdateControlValues(MacScrollbar *macScrollPtr);
Tk_ClassProcs tkpScrollbarProcs = {
sizeof(Tk_ClassProcs) /* size */
};
-
+
/*
*----------------------------------------------------------------------
*
* TkMacOSXInitScrollbarMetrics --
*
- * This function initializes the current system metrics for a
- * scrollbar.
+ * This function initializes the current system metrics for a scrollbar.
*
* Results:
* None.
@@ -210,9 +211,9 @@ TkpCreateScrollbar(
*
* TkpDisplayScrollbar --
*
- * This procedure redraws the contents of a scrollbar window.
- * It is invoked as a do-when-idle handler, so it only runs
- * when there's nothing else for the application to do.
+ * This procedure redraws the contents of a scrollbar window. It is
+ * invoked as a do-when-idle handler, so it only runs when there's
+ * nothing else for the application to do.
*
* Results:
* None.
@@ -304,7 +305,7 @@ TkpDisplayScrollbar(
QDSwapPort(savePort, NULL);
}
- done:
+ done:
scrollPtr->flags &= ~REDRAW_PENDING;
}
@@ -314,8 +315,8 @@ TkpDisplayScrollbar(
* TkpConfigureScrollbar --
*
* This procedure is called after the generic code has finished
- * processing configuration options, in order to configure
- * platform specific options.
+ * processing configuration options, in order to configure platform
+ * specific options.
*
* Results:
* None.
@@ -339,9 +340,9 @@ TkpConfigureScrollbar(scrollPtr)
*
* TkpComputeScrollbarGeometry --
*
- * After changes in a scrollbar's size or configuration, this
- * procedure recomputes various geometry information used in
- * displaying the scrollbar.
+ * After changes in a scrollbar's size or configuration, this procedure
+ * recomputes various geometry information used in displaying the
+ * scrollbar.
*
* Results:
* None.
@@ -378,9 +379,9 @@ TkpComputeScrollbarGeometry(
scrollPtr->sliderLast = fieldLength * scrollPtr->lastFraction;
/*
- * Adjust the slider so that some piece of it is always
- * displayed in the scrollbar and so that it has at least
- * a minimal width (so it can be grabbed with the mouse).
+ * Adjust the slider so that some piece of it is always displayed in the
+ * scrollbar and so that it has at least a minimal width (so it can be
+ * grabbed with the mouse).
*/
if (scrollPtr->sliderFirst > (fieldLength - 2*scrollPtr->borderWidth)) {
@@ -403,10 +404,9 @@ TkpComputeScrollbarGeometry(
metrics[variant].bottomArrowHeight;
/*
- * Register the desired geometry for the window (leave enough space
- * for the two arrows plus a minimum-size slider, plus border around
- * the whole window, if any). Then arrange for the window to be
- * redisplayed.
+ * Register the desired geometry for the window (leave enough space for
+ * the two arrows plus a minimum-size slider, plus border around the whole
+ * window, if any). Then arrange for the window to be redisplayed.
*/
if (scrollPtr->vertical) {
@@ -459,14 +459,12 @@ TkpDestroyScrollbar(
*
* TkpScrollbarPosition --
*
- * Determine the scrollbar element corresponding to a
- * given position.
+ * Determine the scrollbar element corresponding to a given position.
*
* Results:
- * One of TOP_ARROW, TOP_GAP, etc., indicating which element
- * of the scrollbar covers the position given by (x, y). If
- * (x,y) is outside the scrollbar entirely, then OUTSIDE is
- * returned.
+ * One of TOP_ARROW, TOP_GAP, etc., indicating which element of the
+ * scrollbar covers the position given by (x, y). If (x,y) is outside the
+ * scrollbar entirely, then OUTSIDE is returned.
*
* Side effects:
* None.
@@ -496,10 +494,9 @@ TkpScrollbarPosition(
/*
* All of the calculations in this procedure mirror those in
- * DisplayScrollbar. Be sure to keep the two consistent. On the
- * Macintosh we use the OS call TestControl to do this mapping.
- * For TestControl to work, the scrollbar must be active and must
- * be in the current port.
+ * DisplayScrollbar. Be sure to keep the two consistent. On the Macintosh
+ * we use the OS call TestControl to do this mapping. For TestControl to
+ * work, the scrollbar must be active and must be in the current port.
*/
destPort = TkMacOSXGetDrawablePort(Tk_WindowId(scrollPtr->tkwin));
@@ -520,18 +517,18 @@ TkpScrollbarPosition(
QDSwapPort(savePort, NULL);
}
switch (part) {
- case kAppearancePartUpButton:
- return TOP_ARROW;
- case kAppearancePartPageUpArea:
- return TOP_GAP;
- case kAppearancePartIndicator:
- return SLIDER;
- case kAppearancePartPageDownArea:
- return BOTTOM_GAP;
- case kAppearancePartDownButton:
- return BOTTOM_ARROW;
- default:
- return OUTSIDE;
+ case kAppearancePartUpButton:
+ return TOP_ARROW;
+ case kAppearancePartPageUpArea:
+ return TOP_GAP;
+ case kAppearancePartIndicator:
+ return SLIDER;
+ case kAppearancePartPageDownArea:
+ return BOTTOM_GAP;
+ case kAppearancePartDownButton:
+ return BOTTOM_ARROW;
+ default:
+ return OUTSIDE;
}
}
@@ -541,12 +538,11 @@ TkpScrollbarPosition(
* ThumbActionProc --
*
* Callback procedure used by the Macintosh toolbox call
- * HandleControlClick. This call is used to track the
- * thumb of the scrollbar. Unlike the
- * ScrollbarActionProc function this function is called
- * once and basically takes over tracking the scrollbar
- * from the control. This is done to avoid conflicts with
- * what the control plans to draw.
+ * HandleControlClick. This call is used to track the thumb of the
+ * scrollbar. Unlike the ScrollbarActionProc function this function is
+ * called once and basically takes over tracking the scrollbar from the
+ * control. This is done to avoid conflicts with what the control plans
+ * to draw.
*
* Results:
* None.
@@ -560,8 +556,8 @@ TkpScrollbarPosition(
static pascal void
ThumbActionProc(ControlRef theControl, ControlPartCode partCode)
{
- TkScrollbar *scrollPtr = (TkScrollbar *)(intptr_t)GetControlReference(
- theControl);
+ TkScrollbar *scrollPtr = (TkScrollbar *)(intptr_t)
+ GetControlReference(theControl);
MacScrollbar *macScrollPtr = (MacScrollbar *) scrollPtr;
Tcl_DString cmdString;
int origValue, variant;
@@ -599,12 +595,11 @@ ThumbActionProc(ControlRef theControl, ControlPartCode partCode)
/*
* Track the mouse while the button is held down. If the mouse is moved,
* we calculate the value that should be passed to the "command" part of
- * the scrollbar. Since the mouse may move a distance too small to
- * cause a change to the first fraction, each calculation must be done
- * versus what the first fraction was when the mouse button was
- * initially pressed. Otherwise, moving the mouse too slowly will
- * cause the calculated fraction delta to be zero and the scrollbar
- * won't respond.
+ * the scrollbar. Since the mouse may move a distance too small to cause a
+ * change to the first fraction, each calculation must be done versus what
+ * the first fraction was when the mouse button was initially pressed.
+ * Otherwise, moving the mouse too slowly will cause the calculated
+ * fraction delta to be zero and the scrollbar won't respond.
*/
oldFirstFraction = scrollPtr->firstFraction;
@@ -616,17 +611,16 @@ ThumbActionProc(ControlRef theControl, ControlPartCode partCode)
kEventDurationForever, &currentPoint, NULL, &trackingResult);
if ((err == noErr) && ((trackingResult == kMouseTrackingMouseDragged)
|| (trackingResult == kMouseTrackingMouseMoved))) {
-
/*
- * Calculate where the scrollbar should move to, based on
- * where the mouse button was pressed and where the scrollbar
- * initially was at that time. Note that PtInRect() will
- * return false if currentPoint or trackRect are not in
- * is not in current graphics port, which may happen if any
- * of the waiting idle events change the port (e.g. with
- * SetPort()) but fail to restore it before returning and the
- * scrollbar will lock in place.
+ * Calculate where the scrollbar should move to, based on where the
+ * mouse button was pressed and where the scrollbar initially was
+ * at that time. Note that PtInRect() will return false if
+ * currentPoint or trackRect are not in is not in current graphics
+ * port, which may happen if any of the waiting idle events change
+ * the port (e.g. with SetPort()) but fail to restore it before
+ * returning and the scrollbar will lock in place.
*/
+
newFirstFraction = oldFirstFraction;
if (PtInRect(currentPoint, &trackRect)) {
short pixDiff;
@@ -645,23 +639,23 @@ ThumbActionProc(ControlRef theControl, ControlPartCode partCode)
}
/*
- * Move the scrollbar thumb to the new first fraction given
- * its position when initially pressed and how far the mouse
- * has moved. Process waiting idle tasks afterward to allow
- * for the display to update.
+ * Move the scrollbar thumb to the new first fraction given its
+ * position when initially pressed and how far the mouse has
+ * moved. Process waiting idle tasks afterward to allow for the
+ * display to update.
*/
- sprintf(valueString, "%g", newFirstFraction);
+ Tcl_PrintDouble(NULL, newFirstFraction, valueString);
Tcl_DStringSetLength(&cmdString, 0);
Tcl_DStringAppend(&cmdString, scrollPtr->command,
- scrollPtr->commandSize);
+ scrollPtr->commandSize);
Tcl_DStringAppendElement(&cmdString, "moveto");
Tcl_DStringAppendElement(&cmdString, valueString);
interp = scrollPtr->interp;
- Tcl_Preserve((ClientData) interp);
+ Tcl_Preserve(interp);
Tcl_EvalEx(interp, Tcl_DStringValue(&cmdString),
Tcl_DStringLength(&cmdString), TCL_EVAL_GLOBAL);
- Tcl_Release((ClientData) interp);
+ Tcl_Release(interp);
TkMacOSXRunTclEventLoop();
}
} while ((err == noErr) && trackingResult != kMouseTrackingMouseReleased);
@@ -676,8 +670,8 @@ ThumbActionProc(ControlRef theControl, ControlPartCode partCode)
* ScrollbarActionProc --
*
* Callback procedure used by the Macintosh toolbox call
- * HandleControlClick. This call will update the display
- * while the scrollbar is being manipulated by the user.
+ * HandleControlClick. This call will update the display while the
+ * scrollbar is being manipulated by the user.
*
* Results:
* None.
@@ -693,8 +687,8 @@ ScrollbarActionProc(
ControlRef theControl, /* Handle to scrollbat control */
ControlPartCode partCode) /* Part of scrollbar that was "hit" */
{
- TkScrollbar *scrollPtr = (TkScrollbar *)(intptr_t)GetControlReference(
- theControl);
+ TkScrollbar *scrollPtr = (TkScrollbar *)(intptr_t)
+ GetControlReference(theControl);
MacScrollbar *macScrollPtr = (MacScrollbar *) scrollPtr;
Tcl_DString cmdString;
@@ -717,16 +711,15 @@ ScrollbarActionProc(
} else if (partCode == kAppearancePartIndicator) {
char valueString[TCL_DOUBLE_SPACE];
- sprintf(valueString, "%g",
- (GetControl32BitValue(macScrollPtr->sbHandle) -
- MIN_SCROLLBAR_VALUE) / SCROLLBAR_SCALING_VALUE);
+ Tcl_PrintDouble(NULL, (GetControl32BitValue(macScrollPtr->sbHandle) -
+ MIN_SCROLLBAR_VALUE) / SCROLLBAR_SCALING_VALUE, valueString);
Tcl_DStringAppendElement(&cmdString, "moveto");
Tcl_DStringAppendElement(&cmdString, valueString);
}
- Tcl_Preserve((ClientData) scrollPtr->interp);
+ Tcl_Preserve(scrollPtr->interp);
Tcl_EvalEx(scrollPtr->interp, Tcl_DStringValue(&cmdString),
Tcl_DStringLength(&cmdString), TCL_EVAL_GLOBAL);
- Tcl_Release((ClientData) scrollPtr->interp);
+ Tcl_Release(scrollPtr->interp);
Tcl_DStringFree(&cmdString);
TkMacOSXRunTclEventLoop();
}
@@ -736,8 +729,8 @@ ScrollbarActionProc(
*
* ScrollbarBindProc --
*
- * This procedure is invoked when the default <ButtonPress>
- * binding on the Scrollbar bind tag fires.
+ * This procedure is invoked when the default <ButtonPress> binding on
+ * the Scrollbar bind tag fires.
*
* Results:
* None.
@@ -756,11 +749,11 @@ ScrollbarBindProc(
Tk_Window tkwin, /* Target window for event. */
KeySym keySym) /* The KeySym if a key event. */
{
- TkWindow *winPtr = (TkWindow*)tkwin;
+ TkWindow *winPtr = (TkWindow *) tkwin;
TkScrollbar *scrollPtr = (TkScrollbar *) winPtr->instanceData;
MacScrollbar *macScrollPtr = (MacScrollbar *) winPtr->instanceData;
- Tcl_Preserve((ClientData)scrollPtr);
+ Tcl_Preserve(scrollPtr);
macScrollPtr->macFlags |= IN_MODAL_LOOP;
if (eventPtr->type == ButtonPress) {
@@ -772,10 +765,11 @@ ScrollbarBindProc(
Window window;
/*
- * To call Macintosh control routines we must have the port
- * set to the window containing the control. We will then test
- * which part of the control was hit and act accordingly.
+ * To call Macintosh control routines we must have the port set to the
+ * window containing the control. We will then test which part of the
+ * control was hit and act accordingly.
*/
+
destPort = TkMacOSXGetDrawablePort(Tk_WindowId(scrollPtr->tkwin));
portChanged = QDSwapPort(destPort, &savePort);
TkMacOSXSetUpClippingRgn(Tk_WindowId(scrollPtr->tkwin));
@@ -787,9 +781,10 @@ ScrollbarBindProc(
TkMacOSXTrackingLoop(1);
if (part == kAppearancePartIndicator && scrollPtr->jump == false) {
/*
- * Case 1: In thumb, no jump scrolling. Call track control
- * with the thumb action proc which will do most of the work.
+ * Case 1: In thumb, no jump scrolling. Call track control with
+ * the thumb action proc which will do most of the work.
*/
+
mouseDownPoint.h = where.h;
mouseDownPoint.v = where.v;
part = HandleControlClick(macScrollPtr->sbHandle, where,
@@ -797,18 +792,20 @@ ScrollbarBindProc(
} else if (part == kAppearancePartIndicator) {
/*
* Case 2: in thumb with jump scrolling. Call HandleControlClick
- * with a NULL action proc. Use the new value of the control
- * to set update the control.
+ * with a NULL action proc. Use the new value of the control to
+ * set update the control.
*/
+
part = HandleControlClick(macScrollPtr->sbHandle, where,
TkMacOSXModifierState(), NULL);
if (part == kAppearancePartIndicator) {
Tcl_DString cmdString;
char valueString[TCL_DOUBLE_SPACE];
- sprintf(valueString, "%g",
+ Tcl_PrintDouble(NULL,
(GetControl32BitValue(macScrollPtr->sbHandle) -
- MIN_SCROLLBAR_VALUE) / SCROLLBAR_SCALING_VALUE);
+ MIN_SCROLLBAR_VALUE) / SCROLLBAR_SCALING_VALUE,
+ valueString);
Tcl_DStringInit(&cmdString);
Tcl_DStringAppend(&cmdString, scrollPtr->command,
strlen(scrollPtr->command));
@@ -816,25 +813,28 @@ ScrollbarBindProc(
Tcl_DStringAppendElement(&cmdString, valueString);
interp = scrollPtr->interp;
- Tcl_Preserve((ClientData) interp);
+ Tcl_Preserve(interp);
Tcl_EvalEx(interp, Tcl_DStringValue(&cmdString),
Tcl_DStringLength(&cmdString), TCL_EVAL_GLOBAL);
- Tcl_Release((ClientData) interp);
+ Tcl_Release(interp);
Tcl_DStringFree(&cmdString);
TkMacOSXRunTclEventLoop();
}
} else if (part != 0) {
/*
* Case 3: in any other part of the scrollbar. We call
- * HandleControlClick with the scrollActionProc which will do
- * most all the work.
+ * HandleControlClick with the scrollActionProc which will do most
+ * all the work.
*/
+
HandleControlClick(macScrollPtr->sbHandle, where,
TkMacOSXModifierState(), scrollActionProc);
+
/*
* Workaround for Carbon bug where the scrollbar down arrow
* sometimes gets "stuck" after the mousebutton has been released.
*/
+
if (scrollPtr->tkwin) {
TkMacOSXSetUpClippingRgn(Tk_WindowId(scrollPtr->tkwin));
}
@@ -862,7 +862,7 @@ ScrollbarBindProc(
macScrollPtr->sbHandle = NULL;
}
macScrollPtr->macFlags &= ~IN_MODAL_LOOP;
- Tcl_Release((ClientData)scrollPtr);
+ Tcl_Release(scrollPtr);
return TCL_OK;
}
@@ -872,15 +872,15 @@ ScrollbarBindProc(
*
* ScrollbarEventProc --
*
- * This procedure is invoked by the Tk dispatcher for various
- * events on scrollbars.
+ * This procedure is invoked by the Tk dispatcher for various events on
+ * scrollbars.
*
* Results:
* None.
*
* Side effects:
- * When the window gets deleted, internal structures get
- * cleaned up. When it gets exposed, it is redisplayed.
+ * When the window gets deleted, internal structures get cleaned up. When
+ * it gets exposed, it is redisplayed.
*
*--------------------------------------------------------------
*/
@@ -911,8 +911,8 @@ ScrollbarEventProc(
*
* UpdateControlValues --
*
- * This procedure updates the Macintosh scrollbar control
- * to display the values defined by the Tk scrollbar.
+ * This procedure updates the Macintosh scrollbar control to display the
+ * values defined by the Tk scrollbar.
*
* Results:
* None.
@@ -929,7 +929,7 @@ UpdateControlValues(
{
TkScrollbar *scrollPtr = (TkScrollbar *) macScrollPtr;
Tk_Window tkwin = scrollPtr->tkwin;
- MacDrawable * macDraw = (MacDrawable *) Tk_WindowId(scrollPtr->tkwin);
+ MacDrawable *macDraw = (MacDrawable *) Tk_WindowId(scrollPtr->tkwin);
double dViewSize;
Rect contrlRect, portRect;
int variant, active;
@@ -940,13 +940,14 @@ UpdateControlValues(
contrlRect.right = macDraw->xOff + Tk_Width(tkwin) - scrollPtr->inset;
contrlRect.bottom = macDraw->yOff + Tk_Height(tkwin) - scrollPtr->inset;
- GetPortBounds (GetWindowPort(GetControlOwner(macScrollPtr->sbHandle)),
+ GetPortBounds(GetWindowPort(GetControlOwner(macScrollPtr->sbHandle)),
&portRect);
/*
- * If the scrollbar is flush against the bottom right hand corner then
- * we leave space to draw the grow region for the window.
+ * If the scrollbar is flush against the bottom right hand corner then we
+ * leave space to draw the grow region for the window.
*/
+
if (portRect.bottom == contrlRect.bottom &&
portRect.right == contrlRect.right) {
TkMacOSXSetScrollbarGrow((TkWindow *) tkwin, true);
@@ -955,16 +956,16 @@ UpdateControlValues(
int growSize;
switch (TkMacOSXWindowClass(macDraw->toplevel->winPtr)) {
- case kFloatingWindowClass:
- case kUtilityWindowClass:
- growSize = metrics[1].width - 1;
- break;
- case kDocumentWindowClass:
- case kMovableAlertWindowClass:
- case kMovableModalWindowClass:
- default:
- growSize = metrics[0].width - 1;
- break;
+ case kFloatingWindowClass:
+ case kUtilityWindowClass:
+ growSize = metrics[1].width - 1;
+ break;
+ case kDocumentWindowClass:
+ case kMovableAlertWindowClass:
+ case kMovableModalWindowClass:
+ default:
+ growSize = metrics[0].width - 1;
+ break;
}
if (scrollPtr->vertical) {
contrlRect.bottom -= growSize;
@@ -1000,23 +1001,21 @@ UpdateControlValues(
}
/*
- * Ensure we set scrollbar control bounds only once all size
- * adjustments have been computed.
+ * Ensure we set scrollbar control bounds only once all size adjustments
+ * have been computed.
*/
SetControlBounds(macScrollPtr->sbHandle, &contrlRect);
/*
- * Given the Tk parameters for the fractions of the start and
- * end of the thumb, the following calculation determines the
- * location for the Macintosh thumb.
- * The Aqua scroll control works as follows.
- * The scrollbar's value is the position of the left (or top) side of
- * the view area in the content area being scrolled.
- * The maximum value of the control is therefore the dimension of
- * the content area less the size of the view area.
- * Since these values are all integers, and Tk gives the thumb position
- * as fractions, we have introduced a scaling factor.
+ * Given the Tk parameters for the fractions of the start and end of the
+ * thumb, the following calculation determines the location for the
+ * Macintosh thumb. The Aqua scroll control works as follows. The
+ * scrollbar's value is the position of the left (or top) side of the view
+ * area in the content area being scrolled. The maximum value of the
+ * control is therefore the dimension of the content area less the size of
+ * the view area. Since these values are all integers, and Tk gives the
+ * thumb position as fractions, we have introduced a scaling factor.
*/
dViewSize = (scrollPtr->lastFraction - scrollPtr->firstFraction)
@@ -1043,3 +1042,11 @@ UpdateControlValues(
}
SetControlVisibility(macScrollPtr->sbHandle, true, false);
}
+
+/*
+ * Local Variables:
+ * mode: c
+ * c-basic-offset: 4
+ * fill-column: 78
+ * End:
+ */
Documentation() { return "Opis primera"; } QCString trPageDocumentation() { return "Opis povezanih strani"; } QCString trReferenceManual() { return "Priročnik"; } QCString trDefines() { return "Makro deklaracije"; } QCString trTypedefs() { return "Uporabniško definirani tipi"; } QCString trEnumerations() { return "Naštevni tipi"; } QCString trFunctions() { return "Funkcije"; } QCString trVariables() { return "Spremenljivke"; } QCString trEnumerationValues() { return "Vrednosti naštevnih tipov"; } QCString trDefineDocumentation() { return "Opis makro definicije"; } QCString trTypedefDocumentation() { return "Opis uporabniško definiranega tipa"; } QCString trEnumerationTypeDocumentation() { return "Opis naštevnega (enum) tipa"; } QCString trFunctionDocumentation() { return "Opis funkcije"; } QCString trVariableDocumentation() { return "Opis spremenljivke"; } QCString trCompounds() { return "Strukture"; } QCString trGeneratedAt(const char *date,const char *projName) { QCString result=(QCString)"Generirano "+date; if (projName) result+=(QCString)" projekt: "+projName; result+=(QCString)" generator: "; return result; } QCString trClassDiagram(const char *clName) { return (QCString)"Diagram razredov za "+clName; } QCString trForInternalUseOnly() { return "Samo za interno uporabo."; } /* QCString trReimplementedForInternalReasons() */ /* { return "Ponovno implementirano zaradi internih razlogov. " */ /* "Nima vpliva na API."; */ /* } */ QCString trWarning() { return "Opozorilo"; } /* QCString trBugsAndLimitations() */ /* { return "Napake in omejtive"; } */ QCString trVersion() { return "Verzija"; } QCString trDate() { return "Datum"; } QCString trReturns() { return "Rezultat(i)"; } QCString trSeeAlso() { return "Glej"; } QCString trParameters() { return "Parametri"; } QCString trExceptions() { return "Prekinitve"; } QCString trGeneratedBy() { return "Izdelano s pomočjo"; } ////////////////////////////////////////////////////////////////////////// // new since 0.49-990307 ////////////////////////////////////////////////////////////////////////// QCString trNamespaceList() { return "imenski prostori"; } QCString trNamespaceListDescription(bool extractAll) { QCString result="Seznam "; if (!extractAll) result+="dokumentiranih "; result+="imenskih prostorov z opisom:"; return result; } QCString trFriends() { return "Prijatelji (Friends) "; } ////////////////////////////////////////////////////////////////////////// // new since 0.49-990405 ////////////////////////////////////////////////////////////////////////// QCString trRelatedFunctionDocumentation() { return "Podatki o poveznih funkcijah"; } ////////////////////////////////////////////////////////////////////////// // new since 0.49-990425 ////////////////////////////////////////////////////////////////////////// QCString trCompoundReference(const char *clName, ClassDef::CompoundType compType, bool /*isTemplate*/) // used as the title of the HTML page of a class/struct/union { QCString result=""; switch(compType) { case ClassDef::Class: result+=" Razred "; break; case ClassDef::Struct: result+=" Struktura "; break; case ClassDef::Union: result+=" Množica "; break; case ClassDef::Interface: result+=" IDL vmesnik "; break; case ClassDef::Protocol: result+=" protocol "; break; // translate me! case ClassDef::Category: result+=" category "; break; // translate me! case ClassDef::Exception: result+=" IDL prekinitev "; break; default: break; } result += (QCString)clName; return result; } QCString trFileReference(const char *fileName) // used as the title of the HTML page of a file { QCString result="Datoteka "; result+=fileName; return result; } QCString trNamespaceReference(const char *namespaceName) // used as the title of the HTML page of a namespace { QCString result ="Imenski prostor "; result+=namespaceName; return result; } // these are for the member sections of a class, struct or union QCString trPublicMembers() { return "Javne metode"; } QCString trPublicSlots() { return "Public slotovi"; } QCString trSignals() { return "Programske prekinitve"; } QCString trStaticPublicMembers() { return "Statične javne metode in atributi"; } QCString trProtectedMembers() { return "Zaščitene metode in atributi"; } QCString trProtectedSlots() { return "Zaščiteni sloti"; } QCString trStaticProtectedMembers() { return "Statične zaščitene metode in atributi"; } QCString trPrivateMembers() { return "Skrite metode in atributi"; } QCString trPrivateSlots() { return "Skriti slotovi"; } QCString trStaticPrivateMembers() { return "Statične skrite metode in atributi"; } // end of member sections QCString trWriteList(int numEntries) { // this function is used to produce a comma-separated list of items. // use generateMarker(i) to indicate where item i should be put. QCString result; int i; // the inherits list contain `numEntries' classes for (i=0;i<numEntries;i++) { // use generateMarker to generate placeholders for the class links! result+=generateMarker(i); // generate marker for entry i in the list // (order is left to right) if (i!=numEntries-1) // not the last entry, so we need a separator { if (i<numEntries-2) // not the fore last entry result+=", "; else // the fore last entry result+=" in "; } } return result; } QCString trInheritsList(int numEntries) // used in class documentation to produce a list of base classes, // if class diagrams are disabled. { return "Deduje od "+trWriteList(numEntries)+"."; } QCString trInheritedByList(int numEntries) // used in class documentation to produce a list of super classes, // if class diagrams are disabled. { return "Naslijeðena u "+trWriteList(numEntries)+"."; } QCString trReimplementedFromList(int numEntries) // used in member documentation blocks to produce a list of // members that are hidden by this one. { return "Skrije implementacijo iz "+trWriteList(numEntries)+"."; } QCString trReimplementedInList(int numEntries) { // used in member documentation blocks to produce a list of // all member that overwrite the implementation of this member. return "Metodo skrijejo implementacije v razredih "+trWriteList(numEntries)+"."; } QCString trNamespaceMembers() // This is put above each page as a link to all members of namespaces. { return "elementi imenskega prostora"; } QCString trNamespaceMemberDescription(bool extractAll) // This is an introduction to the page with all namespace members { QCString result="Seznam vseh "; if (!extractAll) result+="dokumentiranih "; result+="elementov imenskega prostora s povezavami na "; if (extractAll) result+="opis vsakega elementa:"; else result+="imenski prostor, ki mu pripadajo:"; return result; } QCString trNamespaceIndex() // This is used in LaTeX as the title of the chapter with the // index of all namespaces. { return "Indeks imenskih prostorov"; } QCString trNamespaceDocumentation() // This is used in LaTeX as the title of the chapter containing // the documentation of all namespaces. { return "Podatki o imenskih prostorih"; } ////////////////////////////////////////////////////////////////////////// // new since 0.49-990522 ////////////////////////////////////////////////////////////////////////// /*! This is used in the documentation before the list of all * namespaces in a file. */ virtual QCString trNamespaces() { return "Imenski prostori"; } ////////////////////////////////////////////////////////////////////////// // new since 0.49-990728 ////////////////////////////////////////////////////////////////////////// /*! This is put at the bottom of a class documentation page and is * followed by a list of files that were used to generate the page. */ QCString trGeneratedFromFiles(ClassDef::CompoundType compType, bool single) { // here s is one of " Class", " Struct" or " Union" // single is true implies a single file QCString result=(QCString)"Opis "; switch(compType) { case ClassDef::Class: result+="razreda"; break; case ClassDef::Struct: result+="strukture"; break; case ClassDef::Union: result+="unije"; break; case ClassDef::Interface: result+="vmesnika (interface)"; break; case ClassDef::Protocol: result+="protocol"; break; // translate me! case ClassDef::Category: result+="category"; break; // translate me! case ClassDef::Exception: result+="prekinitve (exception)"; break; default: break; } result+=" je zgrajen na podlagi naslednj"; if (single) result+="e "; else result+="ih"; result+=" datotek"; if (single) result+="e :"; else result+=" :"; return result; } ////////////////////////////////////////////////////////////////////////// // new since 0.49-990901 ////////////////////////////////////////////////////////////////////////// /*! This is used as the heading text for the retval command. */ QCString trReturnValues() { return "Povratna vrednost"; } /*! This is in the (quick) index as a link to the main page (index.html) */ QCString trMainPage() { return "prva stran"; } /*! This is used in references to page that are put in the LaTeX * documentation. It should be an abbreviation of the word page. */ QCString trPageAbbreviation() { return "str."; } ////////////////////////////////////////////////////////////////////////// // new since 0.49-991106 ////////////////////////////////////////////////////////////////////////// /* QCString trSources() */ /* { */ /* return "Izvorne datoteke"; */ /* } */ QCString trDefinedAtLineInSourceFile() { return "Definirano v @0 vrstici datoteke @1."; } QCString trDefinedInSourceFile() { return "Definirano v datoteki @0."; } ////////////////////////////////////////////////////////////////////////// // new since 0.49-991205 ////////////////////////////////////////////////////////////////////////// QCString trDeprecated() { return "Zastarelo"; } ////////////////////////////////////////////////////////////////////////// // new since 1.0.0 ////////////////////////////////////////////////////////////////////////// /*! this text is put before a collaboration diagram */ QCString trCollaborationDiagram(const char *clName) { return (QCString)"Kolaboracijski diagram razreda "+clName+":"; } /*! this text is put before an include dependency graph */ QCString trInclDepGraph(const char *fName) { return (QCString)"Graf prikazuje seznam datotek, " "ki jih datoteka \""+fName+"\" " "direktno ali indirektno vključuje. Pravokotniki ponazarjajo datoteke, puščice " "predstavljajo relacije med njimi. " "črn pravokotnik ponazarja datoteko "+fName+". Puščice A->B ponazarjajo " "usmerjeno relacijo \"A vključuje B\"." ; } /*! header that is put before the list of constructor/destructors. */ QCString trConstructorDocumentation() { return "Opis konstruktorjev in destruktorjev "; } /*! Used in the file documentation to point to the corresponding sources. */ QCString trGotoSourceCode() { return "izvorna koda"; } /*! Used in the file sources to point to the corresponding documentation. */ QCString trGotoDocumentation() { return "dokumenacija tekoče datoteke."; } /*! Text for the \pre command */ QCString trPrecondition() { return "Predpogoji (preconditions)"; } /*! Text for the \post command */ QCString trPostcondition() { return "Naknadni pogoji (posconditions)"; } /*! Text for the \invariant command */ QCString trInvariant() { return "Invarianta"; } /*! Text shown before a multi-line variable/enum initialization */ QCString trInitialValue() { return "Začetna vrednost / definicija :"; } /*! Text used the source code in the file index */ QCString trCode() { return "koda"; } QCString trGraphicalHierarchy() { return "Hierarhija razredov v grafični obliki"; } QCString trGotoGraphicalHierarchy() { return "Dedovalna hierarhija v grafični obliki"; } QCString trGotoTextualHierarchy() { return "Dedovalna hierarhija v tekstovni obliki"; } QCString trPageIndex() { return "Indeks strani"; } ////////////////////////////////////////////////////////////////////////// // new since 1.1.0 ////////////////////////////////////////////////////////////////////////// QCString trNote() { return "Opomba"; } QCString trPublicTypes() { return "Javni tipi"; } QCString trPublicAttribs() { return "Javni atributi"; } QCString trStaticPublicAttribs() { return "Statični javni atributi"; } QCString trProtectedTypes() { return "Zaščiteni tipi"; } QCString trProtectedAttribs() { return "Zaščiteni atributi"; } QCString trStaticProtectedAttribs() { return "Statični zaščiteni tipi"; } QCString trPrivateTypes() { return "Skriti tipi"; } QCString trPrivateAttribs() { return "Skriti atributi"; } QCString trStaticPrivateAttribs() { return "Statični skriti atributi"; } ////////////////////////////////////////////////////////////////////////// // new since 1.1.3 ////////////////////////////////////////////////////////////////////////// /*! Used as a marker that is put before a todo item */ virtual QCString trTodo() { return "TODO"; } /*! Used as the header of the todo list */ virtual QCString trTodoList() { return "Seznam nedokončanih opravil"; } ////////////////////////////////////////////////////////////////////////// // new since 1.1.4 ////////////////////////////////////////////////////////////////////////// virtual QCString trReferencedBy() { return "Uporabniki entitete: "; } virtual QCString trRemarks() { return "Opomba"; } virtual QCString trAttention() { return "Pozor"; } virtual QCString trInclByDepGraph() { return "Graf prikazuje datoteke, ki posredno ali neposredno " "vključujejo tekočo datoteko. Pravokotniki simbolizirajo datoteke, " "puščice pa relacije med datotekami. Tekoča datoteka je prikazana " "kot pravokotnik s črno podlago, ostale pa kot pravokotnik brez podlage. " "Smer puščice A->B definira relacijo \"A vključuje B\". " "Vse datoteke, ki torej mejijo na tekočo (t.j. obstaja povezava med črnim in " "praznim pravokotnikom), jo direktno vključujejo, medtem, ko jo ostale vključujejo " "le posredno. " ; } virtual QCString trSince() { return "Od"; } ////////////////////////////////////////////////////////////////////////// // new since 1.1.5 ////////////////////////////////////////////////////////////////////////// /*! title of the graph legend page */ virtual QCString trLegendTitle() { return "Legenda grafa"; } /*! page explaining how the dot graph's should be interpreted * The %A in the text below are to prevent link to classes called "A". */ virtual QCString trLegendDocs() { return "Tekoča stran pojasnjuje način interpretacije grafov, ki jih izriše " "doxygen.<p>\n" "Poglejmo si naslednji primer:\n" "\\code\n" "/*! Nevide razred zaradi rezanja */\n" "class Invisible { };\n\n" "/*! Odrezan razred, dedovalna relacija je skrita */\n" "class Truncated : public Invisible { };\n\n" "/* razred, ki ni opisan z doxygen komentarji */\n" "class Undocumented { };\n\n" "/*! Razred, ki ga dedujemo s pomočjo javnega dedovanja */\n" "class PublicBase : public Truncated { };\n\n" "/*! A template class */\n" "template<class T> class Templ { };\n\n" "/*! Razred, ki ga dedujemo s pomočjo zaščitenega dedovanja */\n" "class ProtectedBase { };\n\n" "/*! Razred, ki ga dedujemo s pomočjo skritega dedovanja */\n" "class PrivateBase { };\n\n" "/*! Razred, ki ga uporablja dedovani razred */\n" "class Used { };\n\n" "/*! Super class that inherits a number of other classes */\n" "class Inherited : public PublicBase,\n" " protected ProtectedBase,\n" " private PrivateBase,\n" " public Undocumented,\n" " public Templ<int>\n" "{\n" " private:\n" " Used *m_usedClass;\n" "};\n" "\\endcode\n" "If the \\c MAX_DOT_GRAPH_HEIGHT tag in the configuration file " "is set to 200 this will result in the following graph:" "<p><center><img src=\"graph_legend."+getDotImageExtension()+"\"></center>\n" "<p>\n" "The boxes in the above graph have the following meaning:\n" "<ul>\n" "<li>%A filled black box represents the struct or class for which the " "graph is generated.\n" "<li>%A box with a black border denotes a documented struct or class.\n" "<li>%A box with a gray border denotes an undocumented struct or class.\n" "<li>%A box with a red border denotes a documented struct or class for\n" "which not all inheritance/containment relations are shown. %A graph is " "truncated if it does not fit within the specified boundaries." "</ul>\n" "The arrows have the following meaning:\n" "<ul>\n" "<li>%A dark blue arrow is used to visualize a public inheritance " "relation between two classes.\n" "<li>%A dark green arrow is used for protected inheritance.\n" "<li>%A dark red arrow is used for private inheritance.\n" "<li>%A purple dashed arrow is used if a class is contained or used " "by another class. The arrow is labeled with the variable(s) " "through which the pointed class or struct is accessible. \n" "</ul>\n"; } /*! text for the link to the legend page */ virtual QCString trLegend() { return "legenda"; } ////////////////////////////////////////////////////////////////////////// // new since 1.2.0 ////////////////////////////////////////////////////////////////////////// /*! Used as a marker that is put before a test item */ virtual QCString trTest() { return "Test"; } /*! Used as the header of the test list */ virtual QCString trTestList() { return "Test List"; } ////////////////////////////////////////////////////////////////////////// // new since 1.2.2 ////////////////////////////////////////////////////////////////////////// /*! Used as a section header for IDL properties */ virtual QCString trProperties() { return "IDL Lastnosti"; } /*! Used as a section header for IDL property documentation */ virtual QCString trPropertyDocumentation() { return "Opis IDL lastnosti"; } ////////////////////////////////////////////////////////////////////////// // new since 1.2.4 ////////////////////////////////////////////////////////////////////////// /*! Used for Java interfaces in the summary section of Java packages */ /* virtual QCString trInterfaces() */ /* { */ /* return "Vmesniki"; */ /* } */ /*! Used for Java classes in the summary section of Java packages */ virtual QCString trClasses() { if (Config_getBool(OPTIMIZE_OUTPUT_FOR_C)) { return "Podatkovne strukture"; } else { return "Razredi"; } } /*! Used as the title of a Java package */ virtual QCString trPackage(const char *name) { return (QCString)"JAVA paket "+name; } /*! Title of the package index page */ virtual QCString trPackageList() { return "Seznam JAVA paketov"; } /*! The description of the package index page */ virtual QCString trPackageListDescription() { return "Seznam JAVA paketov in njihovih kratkih opisov v primeru, da obstajajo:"; } /*! The link name in the Quick links header for each page */ virtual QCString trPackages() { return "JAVA paketi"; } /*! Used as a chapter title for Latex & RTF output */ /* virtual QCString trPackageDocumentation() */ /* { */ /* return "Opisi JAVA paketov"; */ /* } */ /*! Text shown before a multi-line define */ virtual QCString trDefineValue() { return "Vrednost:"; } ////////////////////////////////////////////////////////////////////////// // new since 1.2.5 ////////////////////////////////////////////////////////////////////////// /*! Used as a marker that is put before a \\bug item */ virtual QCString trBug() { return "Programska napaka"; } /*! Used as the header of the bug list */ virtual QCString trBugList() { return "Seznam programskih napak"; } ////////////////////////////////////////////////////////////////////////// // new since 1.2.6 ////////////////////////////////////////////////////////////////////////// /*! Used as ansicpg for RTF file * * The following table shows the correlation of Charset name, Charset Value and * <pre> * Codepage number: * Charset Name Charset Value(hex) Codepage number * ------------------------------------------------------ * DEFAULT_CHARSET 1 (x01) * SYMBOL_CHARSET 2 (x02) * OEM_CHARSET 255 (xFF) * ANSI_CHARSET 0 (x00) 1252 * RUSSIAN_CHARSET 204 (xCC) 1251 * EE_CHARSET 238 (xEE) 1250 * GREEK_CHARSET 161 (xA1) 1253 * TURKISH_CHARSET 162 (xA2) 1254 * BALTIC_CHARSET 186 (xBA) 1257 * HEBREW_CHARSET 177 (xB1) 1255 * ARABIC _CHARSET 178 (xB2) 1256 * SHIFTJIS_CHARSET 128 (x80) 932 * HANGEUL_CHARSET 129 (x81) 949 * GB2313_CHARSET 134 (x86) 936 * CHINESEBIG5_CHARSET 136 (x88) 950 * </pre> * */ virtual QCString trRTFansicp() { return "1250"; } /*! Used as ansicpg for RTF fcharset * \see trRTFansicp() for a table of possible values. */ virtual QCString trRTFCharSet() { return "0"; } /*! Used as header RTF general index */ virtual QCString trRTFGeneralIndex() { return "Indeks"; } /*! This is used for translation of the word that will possibly * be followed by a single name or by a list of names * of the category. */ virtual QCString trClass(bool first_capital, bool singular) { QCString result((first_capital ? "Razred" : "razred")); if (!singular) result+="i"; return result; } /*! This is used for translation of the word that will possibly * be followed by a single name or by a list of names * of the category. */ virtual QCString trFile(bool first_capital, bool singular) { QCString result((first_capital ? "Datotek" : "datotek")); if (!singular) result+="e"; else result += "a"; return result; } /*! This is used for translation of the word that will possibly * be followed by a single name or by a list of names * of the category. */ virtual QCString trNamespace(bool first_capital, bool singular) { QCString result((first_capital ? "Imenski prostor" : "imenski prostor")); if (!singular) result+="i"; return result; } /*! This is used for translation of the word that will possibly * be followed by a single name or by a list of names * of the category. */ virtual QCString trGroup(bool first_capital, bool singular) { QCString result((first_capital ? "Skupina" : "skupina")); if (!singular) result+="s"; return result; } /*! This is used for translation of the word that will possibly * be followed by a single name or by a list of names * of the category. */ virtual QCString trPage(bool first_capital, bool singular) { QCString result((first_capital ? "Stran" : "stran")); if (!singular) result+="i"; return result; } /*! This is used for translation of the word that will possibly * be followed by a single name or by a list of names * of the category. */ virtual QCString trMember(bool first_capital, bool singular) { QCString result((first_capital ? "Element" : "element")); if (!singular) result+="i"; return result; } /*! This is used for translation of the word that will possibly * be followed by a single name or by a list of names * of the category. */ /* virtual QCString trField(bool first_capital, bool singular) */ /* { */ /* QCString result((first_capital ? "Polj" : "polj")); */ /* if (!singular) result+="a"; */ /* else result += "e"; */ /* return result; */ /* } */ /*! This is used for translation of the word that will possibly * be followed by a single name or by a list of names * of the category. */ virtual QCString trGlobal(bool first_capital, bool singular) { QCString result((first_capital ? "Global" : "global")); if (!singular) result+="s"; return result; } ////////////////////////////////////////////////////////////////////////// // new since 1.2.7 ////////////////////////////////////////////////////////////////////////// /*! This text is generated when the \\author command is used and * for the author section in man pages. */ virtual QCString trAuthor(bool first_capital, bool singular) { QCString result((first_capital ? "Avtor" : "avtor")); if (!singular) result+="ji"; return result; } ////////////////////////////////////////////////////////////////////////// // new since 1.2.11 ////////////////////////////////////////////////////////////////////////// /*! This text is put before the list of members referenced by a member */ virtual QCString trReferences() { return "Reference"; } ////////////////////////////////////////////////////////////////////////// // new since 1.2.13 ////////////////////////////////////////////////////////////////////////// /*! used in member documentation blocks to produce a list of * members that are implemented by this one. */ virtual QCString trImplementedFromList(int numEntries) { return "Implementira "+trWriteList(numEntries)+"."; } /*! used in member documentation blocks to produce a list of * all members that implement this abstract member. */ virtual QCString trImplementedInList(int numEntries) { return "Implementirano v "+trWriteList(numEntries)+"."; } ////////////////////////////////////////////////////////////////////////// // new since 1.2.16 ////////////////////////////////////////////////////////////////////////// /*! used in RTF documentation as a heading for the Table * of Contents. */ virtual QCString trRTFTableOfContents() { return "Vsebina"; } ////////////////////////////////////////////////////////////////////////// // new since 1.2.17 ////////////////////////////////////////////////////////////////////////// /*! Used as the header of the list of item that have been * flagged deprecated */ virtual QCString trDeprecatedList() { return "Seznam opuščenih"; } ////////////////////////////////////////////////////////////////////////// // new since 1.2.18 ////////////////////////////////////////////////////////////////////////// /*! Used as a header for declaration section of the events found in * a C# program */ virtual QCString trEvents() { return "Dogodki"; } /*! Header used for the documentation section of a class' events. */ virtual QCString trEventDocumentation() { return "Opisi dogodkov"; } ////////////////////////////////////////////////////////////////////////// // new since 1.3 ////////////////////////////////////////////////////////////////////////// /*! Used as a heading for a list of Java class types with package scope. */ virtual QCString trPackageTypes() { return "Tipi paketov"; } /*! Used as a heading for a list of Java class functions with package * scope. */ virtual QCString trPackageMembers() { return "Funkcije paketa"; /* don't know the context */ } /*! Used as a heading for a list of static Java class functions with * package scope. */ virtual QCString trStaticPackageMembers() { return "Statične funkcije paketa"; } /*! Used as a heading for a list of Java class variables with package * scope. */ virtual QCString trPackageAttribs() { return "Atributi paketa"; } /*! Used as a heading for a list of static Java class variables with * package scope. */ virtual QCString trStaticPackageAttribs() { return "Statični atributi paketa"; } ////////////////////////////////////////////////////////////////////////// // new since 1.3.1 ////////////////////////////////////////////////////////////////////////// /*! Used in the quick index of a class/file/namespace member list page * to link to the unfiltered list of all members. */ virtual QCString trAll() { return "Vse"; } /*! Put in front of the call graph for a function. */ virtual QCString trCallGraph() { return "Graf klicev tekoče funkcije:"; } ////////////////////////////////////////////////////////////////////////// // new since 1.3.3 ////////////////////////////////////////////////////////////////////////// /*! This string is used as the title for the page listing the search * results. */ virtual QCString trSearchResultsTitle() { return "Rezultat(i) iskanja"; } /*! This string is put just before listing the search results. The * text can be different depending on the number of documents found. * Inside the text you can put the special marker $num to insert * the number representing the actual number of search results. * The @a numDocuments parameter can be either 0, 1 or 2, where the * value 2 represents 2 or more matches. HTML markup is allowed inside * the returned string. */ virtual QCString trSearchResults(int numDocuments) { if (numDocuments==0) { return "Oprostite, noben dokument ne ustreza vašemu povpraševanju."; } else if (numDocuments==1) { return "Našel sem <b>1</b> dokument, ki ustreza vašemu povpraševanju."; } else if (numDocuments==2) { return "Našel sem <b>2</b> dokumenta, ki ustrezata vašemu povpraševanju."; } else { return "Našel sem <b>$num</b> dokumentov, ki ustrezajo vašemu povpraševanju. " "Dokumenti z najboljšo stopnjo ujemanja se nahajajo na začetku."; } } /*! This string is put before the list of matched words, for each search * result. What follows is the list of words that matched the query. */ virtual QCString trSearchMatches() { return "Zadetki:"; } ////////////////////////////////////////////////////////////////////////// // new since 1.3.8 ////////////////////////////////////////////////////////////////////////// /*! This is used in HTML as the title of page with source code for file filename */ virtual QCString trSourceFile(QCString& filename) { return filename + " izvorna koda"; } ////////////////////////////////////////////////////////////////////////// // new since 1.3.9 ////////////////////////////////////////////////////////////////////////// /*! This is used as the name of the chapter containing the directory * hierarchy. */ virtual QCString trDirIndex() { return "Hierarhija imenikov"; } /*! This is used as the name of the chapter containing the documentation * of the directories. */ virtual QCString trDirDocumentation() { return "Opisi imenikov"; } /*! This is used as the title of the directory index and also in the * Quick links of an HTML page, to link to the directory hierarchy. */ virtual QCString trDirectories() { return "Imeniki"; } /*! This returns a sentences that introduces the directory hierarchy. * and the fact that it is sorted alphabetically per level */ virtual QCString trDirDescription() { return "Imeniška hierarhija je urejena v glavnem, toda ne popolnoma, po abecedi, "; } /*! This returns the title of a directory page. The name of the * directory is passed via \a dirName. */ virtual QCString trDirReference(const char *dirName) { QCString result=dirName; result+=" imeniške reference"; /* not sure for context */ return result; } /*! This returns the word directory with or without starting capital * (\a first_capital) and in sigular or plural form (\a singular). */ virtual QCString trDir(bool first_capital, bool singular) { QCString result((first_capital ? "Imenik" : "imenik")); if (singular) result+="i"; else result+=""; return result; } ////////////////////////////////////////////////////////////////////////// // new since 1.4.1 ////////////////////////////////////////////////////////////////////////// /*! This text is added to the documentation when the \\overload command * is used for a overloaded function. */ virtual QCString trOverloadText() { return "To je ponovno definirana metoda, " /* don't know Slovene expresion for overloaded */ "podana je zaradi priročnosti. Metoda se od predhodnje razlikuje " "samo v številu in/ali tipu formalnih argumentov."; } }; #endif