• Skip to content
  • Skip to link menu
KDE API Reference
  • KDE API Reference
  • kdesdk API Reference
  • KDE Home
  • Contact Us
 

okteta

  • sources
  • kde-4.12
  • kdesdk
  • okteta
  • kasten
  • controllers
  • view
  • bytetable
bytetableviewsettings.cpp
Go to the documentation of this file.
1 // This file is generated by kconfig_compiler from bytetableviewsettings.kcfg.
2 // All changes you do to this file will be lost.
3 
4 #include "bytetableviewsettings.h"
5 
6 #include <klocale.h>
7 
8 #include <kglobal.h>
9 #include <QtCore/QFile>
10 
11 using namespace Kasten2;
12 
13 namespace Kasten2 {
14 
15 class ByteTableViewSettingsHelper
16 {
17  public:
18  ByteTableViewSettingsHelper() : q(0) {}
19  ~ByteTableViewSettingsHelper() { delete q; }
20  ByteTableViewSettings *q;
21 };
22 }
23 
24 K_GLOBAL_STATIC(ByteTableViewSettingsHelper, s_globalByteTableViewSettings)
25 ByteTableViewSettings *ByteTableViewSettings::self()
26 {
27  if (!s_globalByteTableViewSettings->q) {
28  new ByteTableViewSettings;
29  s_globalByteTableViewSettings->q->readConfig();
30  }
31 
32  return s_globalByteTableViewSettings->q;
33 }
34 
35 ByteTableViewSettings::ByteTableViewSettings( )
36  : KConfigSkeleton()
37 {
38  Q_ASSERT(!s_globalByteTableViewSettings->q);
39  s_globalByteTableViewSettings->q = this;
40  setCurrentGroup( QLatin1String( "ByteTableView" ) );
41 
42  QList<int> defaultColumnsWidth;
43 
44  KConfigSkeleton::ItemIntList *itemColumnsWidth;
45  itemColumnsWidth = new KConfigSkeleton::ItemIntList( currentGroup(), QLatin1String( "ColumnsWidth" ), mColumnsWidth, defaultColumnsWidth );
46  itemColumnsWidth->setLabel( i18n("ColumnsWidth") );
47  addItem( itemColumnsWidth, QLatin1String( "ColumnsWidth" ) );
48  KConfigSkeleton::ItemString *itemStyle;
49  itemStyle = new KConfigSkeleton::ItemString( currentGroup(), QLatin1String( "Style" ), mStyle );
50  itemStyle->setLabel( i18n("Style") );
51  addItem( itemStyle, QLatin1String( "Style" ) );
52  KConfigSkeleton::ItemString *itemFixedFont;
53  itemFixedFont = new KConfigSkeleton::ItemString( currentGroup(), QLatin1String( "FixedFont" ), mFixedFont );
54  itemFixedFont->setLabel( i18n("FixedFont") );
55  addItem( itemFixedFont, QLatin1String( "FixedFont" ) );
56 }
57 
58 ByteTableViewSettings::~ByteTableViewSettings()
59 {
60  if (!s_globalByteTableViewSettings.isDestroyed()) {
61  s_globalByteTableViewSettings->q = 0;
62  }
63 }
64 
Kasten2::ByteTableViewSettings::mStyle
QString mStyle
Definition: bytetableviewsettings.h:82
Kasten2::ByteTableViewSettings::mColumnsWidth
QList< int > mColumnsWidth
Definition: bytetableviewsettings.h:81
Kasten2::ByteTableViewSettings::ByteTableViewSettings
ByteTableViewSettings()
Definition: bytetableviewsettings.cpp:35
KConfigSkeleton
bytetableviewsettings.h
Kasten2::ByteTableViewSettings
Definition: bytetableviewsettings.h:11
Kasten2::ByteTableViewSettings::~ByteTableViewSettings
~ByteTableViewSettings()
Definition: bytetableviewsettings.cpp:58
Kasten2::ByteTableViewSettings::mFixedFont
QString mFixedFont
Definition: bytetableviewsettings.h:83
QList< int >
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 23:04:07 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

okteta

Skip menu "okteta"
  • Main Page
  • Namespace List
  • Namespace Members
  • Alphabetical List
  • Class List
  • Class Hierarchy
  • Class Members
  • File List
  • File Members
  • Related Pages

kdesdk API Reference

Skip menu "kdesdk API Reference"
  • kapptemplate
  • kcachegrind
  • kompare
  • lokalize
  • okteta
  • umbrello
  •   umbrello

Search



Report problems with this website to our bug tracking system.
Contact the specific authors with questions and comments about the page contents.

KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal