// -*- C++ -*- /* This file is part of *====================================================== * *LyX,TheDocumentProcessor *Copyright(C)1995MatthiasEttrich * *ThisfileisCopyright(C)1996-1998 *LarsGullikBjønnes *
*======================================================*/
/** The LyX toolbar class Thisclass{\emis}theLyXtoolbar,andisnotlikelytobeenhanced furtheruntilwebeginthemovetoQt.Wewillprobablyhavetomakeour ownQToolBar,atleastuntilTrollTechmakestheirs.
*/ class Toolbar { public: ///
Toolbar(Toolbar const &, LyXView *o, int x, int y);
/// The special toolbar actions enum TOOLBARITEMS { /// adds space between buttons in the toolbar
TOOL_SEPARATOR = -1, /// a special combox insead of a button
TOOL_LAYOUTS = -2, /// begin a new line of button (not working)
TOOL_NEWLINE = -3
};
///
Combox *combox;
/// void read(LyXLex&); /// sets up the default toolbar void init(); /// (re)sets the toolbar void set(bool doingmain=false);
/** this is to be the entry point to the toolbar
frame, where you can change the toolbar realtime. */ void edit(); /// add a new button to the toolbar. void add(int ,bool doclean=true); /// name of func instead of kb_action void add(LString const & , bool doclean=true); /// invokes the n'th icon in the toolbar void push(int); /// activates the toolbar void activate(); /// deactivates the toolbar void deactivate();
/// a list containing all the buttons
toolbarItem *toollist; ///
LyXView *owner; ///
FL_OBJECT *bubble_timer; /// Starting position int sxpos, sypos; /// int xpos; /// int ypos; /// int buttonwidth; /// int height; /// int standardspacing; /// int sepspace; /// bool cleaned;
/// char **getPixmap(kb_action, LString const & arg=LString()); /// removes all toolbar buttons from the toolbar. void clean(); /// staticvoid ToolbarCB(FL_OBJECT*, long); /// staticvoid BubbleTimerCB(FL_OBJECT *, long); /// staticint BubblePost(FL_OBJECT *ob, int event,
FL_Coord mx, FL_Coord my, int key, void *xev);
/** more...
*/ void lightReset(){
standardspacing = 2; // the usual space between items
sepspace = 6; // extra space
xpos = sxpos - standardspacing;
ypos = sypos;
buttonwidth = 30; // the standard button width
height = 30; // the height of all items in the toolbar
}
}; #endif
Messung V0.5 in Prozent
¤ Dauer der Verarbeitung: 0.13 Sekunden
(vorverarbeitet am 2026-09-28)
¤
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.