Switch to unified view

a/src/qtgui/rclmain_w.cpp b/src/qtgui/rclmain_w.cpp
1
#ifndef lint
1
#ifndef lint
2
static char rcsid[] = "@(#$Id: rclmain_w.cpp,v 1.21 2007-01-08 10:11:53 dockes Exp $ (C) 2005 J.F.Dockes";
2
static char rcsid[] = "@(#$Id: rclmain_w.cpp,v 1.22 2007-01-13 15:21:41 dockes Exp $ (C) 2005 J.F.Dockes";
3
#endif
3
#endif
4
/*
4
/*
5
 *   This program is free software; you can redistribute it and/or modify
5
 *   This program is free software; you can redistribute it and/or modify
6
 *   it under the terms of the GNU General Public License as published by
6
 *   it under the terms of the GNU General Public License as published by
7
 *   the Free Software Foundation; either version 2 of the License, or
7
 *   the Free Software Foundation; either version 2 of the License, or
...
...
149
    toolsSpellAction->setEnabled(FALSE);
149
    toolsSpellAction->setEnabled(FALSE);
150
#endif
150
#endif
151
151
152
    connect(preferencesQuery_PrefsAction, SIGNAL(activated()), 
152
    connect(preferencesQuery_PrefsAction, SIGNAL(activated()), 
153
        this, SLOT(showUIPrefs()));
153
        this, SLOT(showUIPrefs()));
154
    connect(extIdxAction, SIGNAL(activated()), this, SLOT(showExtIdxDialog()));
154
155
155
156
156
#if (QT_VERSION < 0x040000)
157
#if (QT_VERSION < 0x040000)
157
    nextPageAction->setIconSet(createIconSet("nextpage.png"));
158
    nextPageAction->setIconSet(createIconSet("nextpage.png"));
158
    prevPageAction->setIconSet(createIconSet("prevpage.png"));
159
    prevPageAction->setIconSet(createIconSet("prevpage.png"));
...
...
454
void RclMain::showUIPrefs()
455
void RclMain::showUIPrefs()
455
{
456
{
456
    if (uiprefs == 0) {
457
    if (uiprefs == 0) {
457
    uiprefs = new UIPrefsDialog(0);
458
    uiprefs = new UIPrefsDialog(0);
458
    connect(uiprefs, SIGNAL(uiprefsDone()), this, SLOT(setUIPrefs()));
459
    connect(uiprefs, SIGNAL(uiprefsDone()), this, SLOT(setUIPrefs()));
459
  uiprefs->show();
460
    } else {
460
    } else {
461
    // Close and reopen, in hope that makes us visible...
461
    // Close and reopen, in hope that makes us visible...
462
    uiprefs->close();
462
    uiprefs->close();
463
    }
463
        uiprefs->show();
464
    uiprefs->show();
465
}
466
467
void RclMain::showExtIdxDialog()
468
{
469
    if (uiprefs == 0) {
470
  uiprefs = new UIPrefsDialog(0);
471
  connect(uiprefs, SIGNAL(uiprefsDone()), this, SLOT(setUIPrefs()));
472
    } else {
473
  // Close and reopen, in hope that makes us visible...
474
  uiprefs->close();
464
    }
475
    }
476
    uiprefs->tabWidget->setCurrentPage(2);
477
    uiprefs->show();
465
}
478
}
466
479
467
// If a preview (toplevel) window gets closed by the user, we need to
480
// If a preview (toplevel) window gets closed by the user, we need to
468
// clean up because there is no way to reopen it. And check the case
481
// clean up because there is no way to reopen it. And check the case
469
// where the current one is closed
482
// where the current one is closed