Source Code (Use browser search to find items of interest.)

Class Index

klyx'InsertInfoDialog (./klyx/src/InsertInfoDialog.h:15)

class InsertInfoDialog : public QDialog
{
  Q_OBJECT

public:
  InsertInfoDialog ( LyXView* view, QWidget * parent=0, const char * name=0,
		     WFlags f=0 );

  void setContents( const QString& text );
  QString contents();

private slots:
  void closeClicked();

private:
  LyXView* _view;

  QMultiLineEdit* contentsML;
};

#endif

/*
 * $Log: InsertInfoDialog.h,v $
 * Revision 1.4  1999/11/20 17:38:37  kalle
 * Qt changed signal signatures, more Unicode-safe
 *
 * Revision 1.3  1998/09/05 16:30:27  ettrich
 * Matthias: info insets fixed.... was broken, sorry
 *
 * Revision 1.2  1998/03/02 21:13:48  kalle
 * Kalle: Started to make dialogs more Qt-like
 *
 * Revision 1.1  1998/02/16 20:20:57  kalle
 * Kalle: First XForms-free version
 *
 */

klyx'InsertInfoDialog::InsertInfoDialog() (./klyx/src/InsertInfoDialog.C:13)

InsertInfoDialog::InsertInfoDialog( LyXView* view, QWidget * parent,
				    const char * name,
				    WFlags f ) :
  QDialog( parent, name, true, f ),
  _view( view )
{
  contentsML = new QMultiLineEdit( this );
  contentsML->setGeometry( 10, 10, 380, 120 );

  QPushButton* closePB = new QPushButton( i18n( "Close" ),
										  this );
  closePB->setGeometry( 130, 140, 120, 30 );
  closePB->setDefault( true );
  connect( closePB, SIGNAL( clicked() ), SLOT( closeClicked() ) );

  setCaption( i18n( "Note" ) );
}



klyx'InsertInfoDialog::closeClicked() (./klyx/src/InsertInfoDialog.C:32)

void InsertInfoDialog::closeClicked()
{
  accept();
}



klyx'InsertInfoDialog::setContents() (./klyx/src/InsertInfoDialog.C:38)

void InsertInfoDialog::setContents( const QString& text )
{
  contentsML->setText( text );
}


klyx'InsertInfoDialog::contents() (./klyx/src/InsertInfoDialog.C:43)

QString InsertInfoDialog::contents()
{
    return contentsML->text();
}


/*
 * $Log: InsertInfoDialog.C,v $
 * Revision 1.7  2000/02/12 18:41:33  coolo
 * some smaller compilation fixes
 *
 * Revision 1.6  1999/11/20 17:38:37  kalle
 * Qt changed signal signatures, more Unicode-safe
 *
 * Revision 1.5  1999/01/05 11:16:32  kulow
 * s/klocale->translate/i18n
 * updated po files with the newly i18ned file dialogs
 *
 * Revision 1.4  1998/09/05 16:30:26  ettrich
 * Matthias: info insets fixed.... was broken, sorry
 *
 * Revision 1.3  1998/07/02 18:22:52  ettrich
 * Matthias: made Notes editable as they should be
 *
 * Revision 1.2  1998/03/02 21:13:47  kalle
 * Kalle: Started to make dialogs more Qt-like
 *
 * Revision 1.1  1998/02/16 20:20:57  kalle
 * Kalle: First XForms-free version
 *
 */