~ubuntu-branches/ubuntu/edgy/psi/edgy

« back to all changes in this revision

Viewing changes to src/options/opt_lookfeel.cpp

  • Committer: Bazaar Package Importer
  • Author(s): Jan Niehusmann
  • Date: 2004-06-15 00:10:41 UTC
  • mfrom: (1.1.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20040615001041-enywb6pcpe4sjsw6
Tags: 0.9.2-1
* New upstream release
* Set KDEDIR for ./configure so kde specific files get installed
* Don't install libpsiwidgets.so. It got installed in /usr/share
  where it doesn't belong. May be included (at a better location)
  later.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
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
                mainWin->getLocation ( mainWin->toolbars.at(i), o->toolbars[i].dock, o->toolbars[i].index, o->toolbars[i].nl, o->toolbars[i].extraOffset );
 
33
        }
 
34
}
 
35
 
 
36
void OptionsTabLookFeelToolbars::setData(PsiCon *p, QWidget *)
 
37
{
 
38
        psi = p;
 
39
}