From koffice Wed Feb 23 23:26:32 2000 From: David Faure Date: Wed, 23 Feb 2000 23:26:32 +0000 To: koffice Subject: Re: Quick (and I think easy) KDialogBase question X-MARC-Message: https://marc.info/?l=koffice&m=95134849404423 On Wed, Feb 23, 2000 at 06:23:51PM -0500, Erik Severinghaus wrote: > I found a little free time, and am trying to throw a front end on the > KoDocumentInfo stuff that Torben implemented, and am having some > problems with KDialogBase. Please forgive my ignorance (or you may think > stupidity) but here is the beginning: > > void KoMainWindow::slotFileProperties() > { > KDialogBase *dia = new KDialogBase(this, "propertiesdialog", > true, > caption, Ok|Cancel, Ok, true ); > } > > and despite the fact that Ok and Cancel are both defined in the enum in > kdialogbase.h which is included, I receive the following error: I have > also tried "enum ButtonCode Ok" which also yields errors. Any help would > really be appreciated, and I'm sorry for the dumb question. > > koMainWindow.cc: In method `KoMainWindow::KoMainWindow(KInstance * = 0, > const char * = 0)': > koMainWindow.cc:120: warning: unused variable `class KAction * print' > koMainWindow.cc: In method `void KoMainWindow::slotFileProperties()': > koMainWindow.cc:469: `Ok' undeclared (first use this function) Use KDialogBase::Ok -- David FAURE david@mandrakesoft.com, faure@kde.org http://home.clara.net/faure/ KDE, Making The Future of Computing Available Today