compile
[kdegraphics.git] / okular / conf / dlgaccessibility.cpp
bloba452f959665382a847a0e9326dc653fe2420c8f7
1 /***************************************************************************
2 * Copyright (C) 2006 by Pino Toscano <toscano.pino@tiscali.it> *
3 * *
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 )
28 page->hide();
29 m_color_pages[ m_selected ]->show();
31 connect( m_dlg->kcfg_RenderMode, SIGNAL( currentIndexChanged( int ) ), this, SLOT( slotColorMode( int ) ) );
34 DlgAccessibility::~DlgAccessibility()
36 delete m_dlg;
39 void DlgAccessibility::slotColorMode( int mode )
41 m_color_pages[ m_selected ]->hide();
42 m_color_pages[ mode ]->show();
44 m_selected = mode;
47 #include "dlgaccessibility.moc"