[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-core-devel
Subject:    Re: seeking advice on KDialogBase and KFileWidget
From:       Emily Ezust <yoamwmvs () umail ! corel ! com>
Date:       2000-01-27 17:39:54
[Download RAW message or body]

Carsten Pfeiffer wrote:
> > Emily Ezust wrote:
> > > I'm trying to create a tabbed dialog from KDialogBase
> > > which will contain a KFileWidget to allow the user to select a
> > > bunch of files and also check some checkboxes, but the API
> > > doesn't seem to let me do this (at least not in an obvious way).
> Speaking of KFileWidget... that was supposed to be a convenience-widget
> for exact that purpose you're going to use it; but... some days later,
> KDirOperator changed a lot and actually does everything (I think) that
> KFileWidget does. Just the name doesn't tell you that ;)

Hi!
I'm still running into difficulties. If I use KFileWidget,
I can't catch the signals fileHighlighted or fileSelected because
KFileWidget never hooks up the dirOperator's signals to its
own slots to emit signals. There is a function called setDirOperator
that does this, but it's protected. Should that be public? Or
should the connects be done in the constructor?

Now, if I use KDirOperator, I'm not sure how to plop it into 
my tab dialog as I could with KFileWidget.

I want to do something like this:

  QHBox *firstpage = addHBoxPage(i18n("Add"), i18n("Test"));
  m_dirList = new KDirOperator(KDirOperator::Simple,
                               firstpage, "dirlist");

or, as I saw in the archives, maybe this:

  QFrame *frame = addPage(i18n("Advanced"));
  QVBoxLayout *vlay = new QVBoxLayout(frame, 0, spacingHint());
 
  m_dirList = new KDirOperator(KDirOperator::Simple,
                               frame, "dirlist");
  vlay->addWidget(m_dirList);  

(But this doesn't help another problem I have - that the FileWidget
is always so tiny!)

I would much appreciate some advice (or commiseration :-).
-Emily

-- 
Emily Ezust, emilye@corel.com
Corel Corporation
(613)728-0826, x 5936
-- 
The address in the headers is not the poster's real email address.  Do not send
private mail to the poster using your mailer's "reply" feature.  CC's of mail 
to mailing lists are OK.  Problem reports to "postmaster@umail.corel.com".  
The poster's email address is "emilye@corel.com".

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic