move stuff from a class template to a ordinary class...

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@20022 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
André Pönitz 2007-09-03 18:22:17 +00:00
parent 3b6eb864d5
commit ff3b32e8b7
3 changed files with 14 additions and 16 deletions

View File

@ -55,6 +55,7 @@ void ControlEmbeddedFiles::updateEmbeddedFiles()
{
// copy buffer embeddedFiles to a local copy
kernel().buffer().embeddedFiles().update();
//kernel().buffer().embeddingChanged();
}

View File

@ -73,6 +73,15 @@ void GuiDialogView::hide()
}
void GuiDialogView::build()
{
// protect the BC from unwarranted state transitions
updating_ = true;
build_dialog();
updating_ = false;
}
bool GuiDialogView::isValid()
{
return true;

View File

@ -45,8 +45,8 @@ public:
protected:
/// build the actual dialog
virtual void build_dialog() = 0;
///
virtual void build() = 0;
/// Build the dialog
virtual void build();
/// Hide the dialog.
virtual void hide();
/// Create the dialog if necessary, update it and display it.
@ -55,30 +55,26 @@ protected:
virtual void update_contents() = 0;
///
virtual bool isVisible() const;
/// is the dialog currently valid ?
virtual bool isValid();
/// are we updating ?
bool updating_;
///
GuiDialog & parent_;
public Q_SLOTS:
// dialog closed from WM
void slotWMHide();
// Restore button clicked
void slotRestore();
// OK button clicked
void slotOK();
// Apply button clicked
void slotApply();
// Close button clicked
void slotClose();
private:
/// Pointer to the actual instantiation of the Qt dialog
virtual QWidget * form() const = 0;
@ -107,14 +103,6 @@ protected:
dialog_->update();
}
/// Build the dialog
virtual void build() {
// protect the BC from unwarranted state transitions
updating_ = true;
build_dialog();
updating_ = false;
}
/// Pointer to the actual instantiation of the Qt dialog
virtual GUIDialog * form() const { return dialog_.get(); }