mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-12-01 05:25:55 +00:00
6b219fc94a
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@1903 a592a061-630c-0410-9148-cb99ea01b6c8
47 lines
603 B
C
47 lines
603 B
C
/**
|
|
* \file KDEFormBase.C
|
|
* Copyright 2001 the LyX Team
|
|
* Read the file COPYING
|
|
*
|
|
* \author John Levon
|
|
*/
|
|
|
|
#include <config.h>
|
|
|
|
#ifdef __GNUG__
|
|
#pragma implementation
|
|
#endif
|
|
|
|
#include "Dialogs.h"
|
|
#include "KFormBase.h"
|
|
#include "ControlButtons.h"
|
|
|
|
#include <qdialog.h>
|
|
|
|
KFormDialogBase::KFormDialogBase(ControlButtons & c)
|
|
: ViewBC<kdeBC>(c)
|
|
{
|
|
}
|
|
|
|
|
|
void KFormDialogBase::show()
|
|
{
|
|
if (!dialog())
|
|
build();
|
|
|
|
bc().refresh();
|
|
|
|
update();
|
|
|
|
dialog()->raise();
|
|
dialog()->setActiveWindow();
|
|
dialog()->show();
|
|
}
|
|
|
|
|
|
void KFormDialogBase::hide()
|
|
{
|
|
if (dialog()->isVisible())
|
|
dialog()->hide();
|
|
}
|