Last change
on this file was 2, checked in by dmik, 19 years ago |
Imported original Psi 0.10 sources from Affinix
|
File size:
1.1 KB
|
Line | |
---|
1 | #include "opt_lookfeel.h"
|
---|
2 | #include "common.h"
|
---|
3 | #include "iconwidget.h"
|
---|
4 | #include "mainwin.h"
|
---|
5 | #include "psicon.h"
|
---|
6 | #include "psitoolbar.h"
|
---|
7 |
|
---|
8 | //----------------------------------------------------------------------------
|
---|
9 | // OptionsTabLookFeelToolbars
|
---|
10 | //----------------------------------------------------------------------------
|
---|
11 |
|
---|
12 | OptionsTabLookFeelToolbars::OptionsTabLookFeelToolbars(QObject *parent)
|
---|
13 | : OptionsTab(parent, "", "", "", "")
|
---|
14 | {
|
---|
15 | }
|
---|
16 |
|
---|
17 | QWidget *OptionsTabLookFeelToolbars::widget()
|
---|
18 | {
|
---|
19 | return 0;
|
---|
20 | }
|
---|
21 |
|
---|
22 | void OptionsTabLookFeelToolbars::applyOptions(Options *o)
|
---|
23 | {
|
---|
24 | o->toolbars = option.toolbars;
|
---|
25 |
|
---|
26 | // get current toolbars' positions
|
---|
27 | MainWin *mainWin = (MainWin *)psi->mainWin();
|
---|
28 | for (uint i = 0; i < o->toolbars.count() && i < mainWin->toolbars.count(); i++) {
|
---|
29 | //if ( toolbarPositionInProgress && posTbDlg->n() == (int)i )
|
---|
30 | // continue;
|
---|
31 |
|
---|
32 | Options::ToolbarPrefs &tbPref = o->toolbars["mainWin"][i];
|
---|
33 | mainWin->getLocation ( mainWin->toolbars.at(i), tbPref.dock, tbPref.index, tbPref.nl, tbPref.extraOffset );
|
---|
34 | }
|
---|
35 | }
|
---|
36 |
|
---|
37 | void OptionsTabLookFeelToolbars::setData(PsiCon *p, QWidget *)
|
---|
38 | {
|
---|
39 | psi = p;
|
---|
40 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.