Source Code (Use browser search to find items of interest.)
Class Index
kimageshop'KisShell (./koffice/kimageshop/core/kis_shell.h:30)
class KisShell : public KoMainWindow
{
Q_OBJECT
public:
KisShell( const char* name = 0 );
~KisShell();
/**
* Change these according to your native mimetype.
*/
QString nativeFormatPattern() const { return "*.kis"; }
QString nativeFormatName() const { return "KImageShop"; }
public slots:
virtual void slotFileNew();
virtual void slotFilePrint();
virtual void slotFileClose();
virtual void statusMsg( const QString& );
protected:
virtual KoDocument* createDoc();
virtual bool openDocument( const KURL & url );
private:
KStatusBar *m_pStatusBar;
};
kimageshop'KisShell::KisShell() (./koffice/kimageshop/core/kis_shell.cc:35)
KisShell::KisShell( const char* name )
: KoMainWindow( KisFactory::global(), name )
{
resize(800, 600);
m_pStatusBar = new KStatusBar( this, "shell_statusbar" );
m_pStatusBar->insertItem( i18n( "a little test for the statusbar" ), ID_STATUSBAR_INFOTEXT );
setStatusBar( m_pStatusBar );
}
kimageshop'KisShell::~KisShell() (./koffice/kimageshop/core/kis_shell.cc:47)
KisShell::~KisShell()
{
}
kimageshop'KisShell::createDoc() (./koffice/kimageshop/core/kis_shell.cc:51)
KoDocument* KisShell::createDoc()
{
return new KisDoc;
}
kimageshop'KisShell::slotFileNew() (./koffice/kimageshop/core/kis_shell.cc:56)
void KisShell::slotFileNew()
{
KisDoc* doc = (KisDoc*)rootDocument();
if ( !doc )
{
doc = (KisDoc*)createDoc();
if ( !doc->initDoc() )
{
delete doc;
return;
}
setRootDocument( doc );
}
else
{
doc->slotNewImage();
}
}
kimageshop'KisShell::openDocument() (./koffice/kimageshop/core/kis_shell.cc:76)
bool KisShell::openDocument( const KURL & url )
{
KoDocument* doc = rootDocument();
if (!doc)
{
KoDocument* newdoc = createDoc();
if (newdoc->openURL( url ))
{
setRootDocument( newdoc );
return true;
}
return false;
}
return doc->openURL( url );
}
kimageshop'KisShell::slotFilePrint() (./koffice/kimageshop/core/kis_shell.cc:93)
void KisShell::slotFilePrint()
{
// TODO
}
kimageshop'KisShell::slotFileClose() (./koffice/kimageshop/core/kis_shell.cc:98)
void KisShell::slotFileClose()
{
KisDoc* doc = (KisDoc*)rootDocument();
doc->slotRemoveImage( doc->currentImage() );
}
kimageshop'KisShell::statusMsg() (./koffice/kimageshop/core/kis_shell.cc:104)
void KisShell::statusMsg( const QString& text )
{
m_pStatusBar->changeItem( text, ID_STATUSBAR_INFOTEXT );
}