summaryrefslogtreecommitdiffstats
path: root/src/komposetaskprefswidget.cpp
blob: 3254158a9941b6c14e51fdc3460f443c464ab7fb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
//
// C++ Implementation: komposetaskprefswidget
//
// Description:
//
//
// Author: Hans Oischinger <hans.oischinger@kde-mail.net>, (C) 2004
//
// Copyright: See COPYING file that comes with this distribution
//
//
#include "komposetaskprefswidget.h"

#include "komposetaskwidget.h"
#include "komposetask.h"
#include "komposetaskprefswidget.h"
#include "komposesettings.h"

#include <tdetoolbar.h>
#include <tdetoolbarbutton.h>
#include <tdeactioncollection.h>
#include <tdeaction.h>
#include <tdeshortcut.h>
#include <tdelocale.h>

#include <tqiconset.h>

KomposeTaskPrefsWidget::KomposeTaskPrefsWidget(KomposeTaskWidget *parent, const char *name)
    : TQDockArea(TQt::Horizontal , TQDockArea::Normal, parent, name)
{
  TDEToolBar* pToolBar = new TDEToolBar( this, i18n("Task Actions") );
  pToolBar->setLabel(i18n("Task"));
  pToolBar->setResizeEnabled ( false );
  pToolBar->setMovingEnabled ( false );
  pToolBar->setHorizontallyStretchable ( false );
  pToolBar->setVerticallyStretchable ( false );
  pToolBar->setIconSize( 16 );
  
  parent->getActMinimizeRestoreTask()->plug(pToolBar);
  parent->getActCloseTask()->plug(pToolBar);
  
  lineUp(false);

  resize(pToolBar->size());
}


KomposeTaskPrefsWidget::~KomposeTaskPrefsWidget()
{
}



#include "komposetaskprefswidget.moc"