1 /***************************************************************************
2 * Copyright (C) 2006 by Pino Toscano <toscano.pino@tiscali.it> *
4 * This program is free software; you can redistribute it and/or modify *
5 * it under the terms of the GNU General Public License as published by *
6 * the Free Software Foundation; either version 2 of the License, or *
7 * (at your option) any later version. *
8 ***************************************************************************/
10 #include "dlgaccessibility.h"
12 #include "ui_dlgaccessibilitybase.h"
14 DlgAccessibility::DlgAccessibility( QWidget
* parent
)
15 : QWidget( parent
), m_selected( 0 )
17 m_dlg
= new Ui_DlgAccessibilityBase();
18 m_dlg
->setupUi( this );
20 // ### not working yet, hide for now
21 m_dlg
->kcfg_HighlightImages
->hide();
23 m_color_pages
.append( m_dlg
->page_invert
);
24 m_color_pages
.append( m_dlg
->page_paperColor
);
25 m_color_pages
.append( m_dlg
->page_darkLight
);
26 m_color_pages
.append( m_dlg
->page_bw
);
27 foreach ( QWidget
* page
, m_color_pages
)
29 m_color_pages
[ m_selected
]->show();
31 connect( m_dlg
->kcfg_RenderMode
, SIGNAL( currentIndexChanged( int ) ), this, SLOT( slotColorMode( int ) ) );
34 DlgAccessibility::~DlgAccessibility()
39 void DlgAccessibility::slotColorMode( int mode
)
41 m_color_pages
[ m_selected
]->hide();
42 m_color_pages
[ mode
]->show();
47 #include "dlgaccessibility.moc"