2001-04-02 15:12:55 +00:00
|
|
|
/**
|
|
|
|
* \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"
|
2001-04-05 14:41:19 +00:00
|
|
|
#include "ControlButtons.h"
|
2001-04-02 15:12:55 +00:00
|
|
|
|
2001-04-05 14:41:19 +00:00
|
|
|
#include <qdialog.h>
|
|
|
|
|
|
|
|
KFormDialogBase::KFormDialogBase(ControlButtons & c)
|
2001-04-02 15:12:55 +00:00
|
|
|
: 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();
|
|
|
|
}
|