Re: Lyx-qt Button icons

2005-04-10 Thread Matej Cepl
Santiago Hirschfeld wrote:
 I'm using KDE now, and i wonder, how can i change the default icons in
 the toolbar of LyX?

I am afraid you can't without recompiling whole thing -- LyX is Qt, not KDE
application, and some things (notably menus and toolbars) are done in LyX
itself not by Qt/KDE. I think it is a design flaw of LyX, but that's
another question (well, I think that relying on XForms as a first UI
toolkit is a design flaw in itself, but that highly flammable and
off-topic).

Matj

-- 
Matej Cepl, http://www.ceplovi.cz/matej
GPG Finger: 89EF 4BC6 288A BF43 1BAB  25C3 E09F EF25 D964 84AC
138 Highland Ave. #10, Somerville, Ma 02143, (617) 623-1488
 
The main idea of the pope's asking for forgiveness was not to be
afraid of the truth. DO NOT BE AFRAID OF TRUTH! We have to have
faith in the God's governing power to be able not to be afraid.
-- On NPR The Connection from March 13, 2000




Re: Lyx-qt Button icons

2005-04-10 Thread Angus Leeming
Matej Cepl wrote:
Santiago Hirschfeld wrote:
I'm using KDE now, and i wonder, how can i change the default icons in
the toolbar of LyX?

I am afraid you can't without recompiling whole thing -- 
What makes you say that?
What appears in the menu and toolbars is controlled by an external 
file. If you fire up LyX and open the Edit-Preferences dialog, you'll 
 see a User interface file entry at the top of the Look and 
feel-User interface pane. (I assume that you're using the Qt 
frontend.) This is set, by default, to a file default.ui.

Copy $PREFIX/share/lyx/ui/default.ui to $HOME/.lyx/ui/default.ui 
or to some other file name if you change the file in the 
Edit-Preferences dialog. Edit this file to taste.

The toolbar entries, eg Icon graphics-insert, detail the LFUN that 
will be executed when you press the button. Thus, add or remove 
entries to alter the contents of the toolbar.

The names of the image files associated with each LFUN cannot be 
changed. Ie, there is a direct correspondence between LFUN and image 
file name. Thus you'll find 
$PREFIX/share/lyx/images/graphics-insert.xpm Insert your own version 
of this file in $HOME/.lyx/images/graphics-insert.xpm

LyX is Qt, not KDE application, and some things (notably menus and 
 toolbars) are done in LyX itself not by Qt/KDE. I think it is a
 design flaw of LyX, but that's another question (well, I think that
 relying on XForms as a first UI toolkit is a design flaw in itself,
but that highly flammable and off-topic).
I think we're coming round to the idea of just dropping XForms.
Angus


Re: Lyx-qt Button icons

2005-04-10 Thread Matej Cepl
Angus Leeming wrote:
 What makes you say that?
 What appears in the menu and toolbars is controlled by an external
 file.

I am sorry for misleading information.

 I think we're coming round to the idea of just dropping XForms.

Cool!

Matj

-- 
Matej Cepl, http://www.ceplovi.cz/matej
GPG Finger: 89EF 4BC6 288A BF43 1BAB  25C3 E09F EF25 D964 84AC
138 Highland Ave. #10, Somerville, Ma 02143, (617) 623-1488
 
understand, v.:
To reach a point, in your investigation of some subject, at
which you cease to examine what is really present, and
operate on the basis of your own internal model instead.



Re: Lyx-qt Button icons

2005-04-10 Thread Matej Cepl
Santiago Hirschfeld wrote:
 I'm using KDE now, and i wonder, how can i change the default icons in
 the toolbar of LyX?

I am afraid you can't without recompiling whole thing -- LyX is Qt, not KDE
application, and some things (notably menus and toolbars) are done in LyX
itself not by Qt/KDE. I think it is a design flaw of LyX, but that's
another question (well, I think that relying on XForms as a first UI
toolkit is a design flaw in itself, but that highly flammable and
off-topic).

Matj

-- 
Matej Cepl, http://www.ceplovi.cz/matej
GPG Finger: 89EF 4BC6 288A BF43 1BAB  25C3 E09F EF25 D964 84AC
138 Highland Ave. #10, Somerville, Ma 02143, (617) 623-1488
 
The main idea of the pope's asking for forgiveness was not to be
afraid of the truth. DO NOT BE AFRAID OF TRUTH! We have to have
faith in the God's governing power to be able not to be afraid.
-- On NPR The Connection from March 13, 2000




Re: Lyx-qt Button icons

2005-04-10 Thread Angus Leeming
Matej Cepl wrote:
Santiago Hirschfeld wrote:
I'm using KDE now, and i wonder, how can i change the default icons in
the toolbar of LyX?

I am afraid you can't without recompiling whole thing -- 
What makes you say that?
What appears in the menu and toolbars is controlled by an external 
file. If you fire up LyX and open the Edit-Preferences dialog, you'll 
 see a User interface file entry at the top of the Look and 
feel-User interface pane. (I assume that you're using the Qt 
frontend.) This is set, by default, to a file default.ui.

Copy $PREFIX/share/lyx/ui/default.ui to $HOME/.lyx/ui/default.ui 
or to some other file name if you change the file in the 
Edit-Preferences dialog. Edit this file to taste.

The toolbar entries, eg Icon graphics-insert, detail the LFUN that 
will be executed when you press the button. Thus, add or remove 
entries to alter the contents of the toolbar.

The names of the image files associated with each LFUN cannot be 
changed. Ie, there is a direct correspondence between LFUN and image 
file name. Thus you'll find 
$PREFIX/share/lyx/images/graphics-insert.xpm Insert your own version 
of this file in $HOME/.lyx/images/graphics-insert.xpm

LyX is Qt, not KDE application, and some things (notably menus and 
 toolbars) are done in LyX itself not by Qt/KDE. I think it is a
 design flaw of LyX, but that's another question (well, I think that
 relying on XForms as a first UI toolkit is a design flaw in itself,
but that highly flammable and off-topic).
I think we're coming round to the idea of just dropping XForms.
Angus


Re: Lyx-qt Button icons

2005-04-10 Thread Matej Cepl
Angus Leeming wrote:
 What makes you say that?
 What appears in the menu and toolbars is controlled by an external
 file.

I am sorry for misleading information.

 I think we're coming round to the idea of just dropping XForms.

Cool!

Matj

-- 
Matej Cepl, http://www.ceplovi.cz/matej
GPG Finger: 89EF 4BC6 288A BF43 1BAB  25C3 E09F EF25 D964 84AC
138 Highland Ave. #10, Somerville, Ma 02143, (617) 623-1488
 
understand, v.:
To reach a point, in your investigation of some subject, at
which you cease to examine what is really present, and
operate on the basis of your own internal model instead.



Re: Lyx-qt Button icons

2005-04-10 Thread Matej Cepl
Santiago Hirschfeld wrote:
> I'm using KDE now, and i wonder, how can i change the default icons in
> the toolbar of LyX?

I am afraid you can't without recompiling whole thing -- LyX is Qt, not KDE
application, and some things (notably menus and toolbars) are done in LyX
itself not by Qt/KDE. I think it is a design flaw of LyX, but that's
another question (well, I think that relying on XForms as a first UI
toolkit is a design flaw in itself, but that highly flammable and
off-topic).

Matěj

-- 
Matej Cepl, http://www.ceplovi.cz/matej
GPG Finger: 89EF 4BC6 288A BF43 1BAB  25C3 E09F EF25 D964 84AC
138 Highland Ave. #10, Somerville, Ma 02143, (617) 623-1488
 
The main idea of the pope's asking for forgiveness was not to be
afraid of the truth. DO NOT BE AFRAID OF TRUTH! We have to have
faith in the God's governing power to be able not to be afraid.
-- On NPR The Connection from March 13, 2000




Re: Lyx-qt Button icons

2005-04-10 Thread Angus Leeming
Matej Cepl wrote:
Santiago Hirschfeld wrote:
I'm using KDE now, and i wonder, how can i change the default icons in
the toolbar of LyX?

I am afraid you can't without recompiling whole thing -- 
What makes you say that?
What appears in the menu and toolbars is controlled by an external 
file. If you fire up LyX and open the Edit->Preferences dialog, you'll 
 see a "User interface file" entry at the top of the "Look and 
feel->User interface" pane. (I assume that you're using the Qt 
frontend.) This is set, by default, to a file "default.ui".

Copy "$PREFIX/share/lyx/ui/default.ui" to "$HOME/.lyx/ui/default.ui" 
or to some other file name if you change the file in the 
Edit->Preferences dialog. Edit this file to taste.

The toolbar entries, eg Icon "graphics-insert", detail the LFUN that 
will be executed when you press the button. Thus, add or remove 
entries to alter the contents of the toolbar.

The names of the image files associated with each LFUN cannot be 
changed. Ie, there is a direct correspondence between LFUN and image 
file name. Thus you'll find 
"$PREFIX/share/lyx/images/graphics-insert.xpm" Insert your own version 
of this file in "$HOME/.lyx/images/graphics-insert.xpm"

LyX is Qt, not KDE application, and some things (notably menus and 
> toolbars) are done in LyX itself not by Qt/KDE. I think it is a
> design flaw of LyX, but that's another question (well, I think that
> relying on XForms as a first UI toolkit is a design flaw in itself,
but that highly flammable and off-topic).
I think we're coming round to the idea of just dropping XForms.
Angus


Re: Lyx-qt Button icons

2005-04-10 Thread Matej Cepl
Angus Leeming wrote:
> What makes you say that?
> What appears in the menu and toolbars is controlled by an external
> file.

I am sorry for misleading information.

> I think we're coming round to the idea of just dropping XForms.

Cool!

Matěj

-- 
Matej Cepl, http://www.ceplovi.cz/matej
GPG Finger: 89EF 4BC6 288A BF43 1BAB  25C3 E09F EF25 D964 84AC
138 Highland Ave. #10, Somerville, Ma 02143, (617) 623-1488
 
understand, v.:
To reach a point, in your investigation of some subject, at
which you cease to examine what is really present, and
operate on the basis of your own internal model instead.



Lyx-qt Button icons

2005-04-07 Thread Santiago Hirschfeld
I'm using KDE now, and i wonder, how can i change the default icons in
the toolbar of LyX?

thanks in advance


Lyx-qt Button icons

2005-04-07 Thread Santiago Hirschfeld
I'm using KDE now, and i wonder, how can i change the default icons in
the toolbar of LyX?

thanks in advance


Lyx-qt Button icons

2005-04-07 Thread Santiago Hirschfeld
I'm using KDE now, and i wonder, how can i change the default icons in
the toolbar of LyX?

thanks in advance