Read-only archive of the All About Symbian forum (2001–2013) · About this archive

uiq_21 : no appropriate default constructo

0 replies · 1,292 views · Started 26 August 2005

CImageCurrentFrameDialog' : no appropriate default constructor available

when :

CEikDialog* dialog = new(ELeave) CImageCurrentFrameDialog();

//Header

class CImageCurrentFrameDialog : public CEikDialog
{
public:
CImageCurrentFrameDialog(/*TInt aCurrentFrame,TInt aNumberOfFrames*/);

protected:
// From CEikDialog
virtual void PreLayoutDynInitL();
virtual TBool OkToExitL(TInt aButtonId);

private:
//TInt& iCurrentFrame;
//TInt iNumberOfFrames;
};

//Implements

CImageCurrentFrameDialog::CImageCurrentFrameDialog(/*TInt aCurrentFrame,TInt aNumberOfFrames*/)
{}

// Initialise dialog with current settings
void CImageCurrentFrameDialog::PreLayoutDynInitL()
{
//Change Darin - using CQikNumberEditor instead of CEikNumberEditor
//CQikNumberEditor* frames = static_cast<CQikNumberEditor*>(Control(EImageIdNumberOfFrames));

//Change Darin - using CQikNumberEditor API
/*frames -> SetValueL(iNumberOfFrames);
SetLineDimmedNow(EImageIdNumberOfFrames,ETrue);
const TInt lastFrame = iNumberOfFrames - 1;
//Change Darin - using CQikNumberEditor instead of CEikNumberEditor
frames = static_cast<CQikNumberEditor*>(Control(EImageIdCurrentFrameNumber));
frames -> SetMinimumAndMaximum(0,lastFrame);
frames -> SetValueL(Min(iCurrentFrame,lastFrame));*/
}

// Store dialog result
TBool CImageCurrentFrameDialog::OkToExitL(TInt /*aButtonId*/)
{
//Change Darin - using CQikNumberEditor instead of CEikNumberEditor
//CQikNumberEditor* frames = static_cast<CQikNumberEditor*>(Control(EImageIdCurrentFrameNumber));
//Change Darin - using CQikNumberEditor API
//iCurrentFrame = frames -> Value();
return ETrue;
}

on common files...