#include "../config.h"
#include <qaccel.h>
-#include "bc.h"
+#include "bs.h"
#include "filesave.xpm"
#include "fileopen.xpm"
#include "filenew.xpm"
-BcApp::BcApp()
+BSApp::BSApp()
{
setCaption(tr("Bc " VERSION));
viewStatusBar->setOn(true);
}
-BcApp::~BcApp()
+BSApp::~BSApp()
{
}
/** initializes all QActions of the application */
-void BcApp::initActions(){
+void BSApp::initActions(){
QPixmap openIcon, saveIcon, newIcon;
newIcon = QPixmap(filenew);
}
-void BcApp::initMenuBar()
+void BSApp::initMenuBar()
{
///////////////////////////////////////////////////////////////////
// MENUBAR
}
-void BcApp::initToolBar()
+void BSApp::initToolBar()
{
///////////////////////////////////////////////////////////////////
// TOOLBAR
}
-void BcApp::initStatusBar()
+void BSApp::initStatusBar()
{
///////////////////////////////////////////////////////////////////
//STATUSBAR
statusBar()->message(tr("Ready."), 2000);
}
-void BcApp::initDoc()
+void BSApp::initDoc()
{
- doc=new BcDoc();
+ doc=new BSDoc();
}
-void BcApp::initView()
+void BSApp::initView()
{
////////////////////////////////////////////////////////////////////
// set the main widget here
- view=new BcView(this, doc);
+ view=new BSView(this, doc);
setCentralWidget(view);
}
-bool BcApp::queryExit()
+bool BSApp::queryExit()
{
int exit=QMessageBox::information(this, tr("Quit..."),
tr("Do your really want to quit?"),
/////////////////////////////////////////////////////////////////////
-void BcApp::slotFileNew()
+void BSApp::slotFileNew()
{
statusBar()->message(tr("Creating new file..."));
doc->newDoc();
statusBar()->message(tr("Ready."));
}
-void BcApp::slotFileOpen()
+void BSApp::slotFileOpen()
{
statusBar()->message(tr("Opening file..."));
}
-void BcApp::slotFileSave()
+void BSApp::slotFileSave()
{
statusBar()->message(tr("Saving file..."));
doc->save();
statusBar()->message(tr("Ready."));
}
-void BcApp::slotFileSaveAs()
+void BSApp::slotFileSaveAs()
{
statusBar()->message(tr("Saving file under new filename..."));
QString fn = QFileDialog::getSaveFileName(0, 0, this);
statusBar()->message(tr("Ready."));
}
-void BcApp::slotFileClose()
+void BSApp::slotFileClose()
{
statusBar()->message(tr("Closing file..."));
statusBar()->message(tr("Ready."));
}
-void BcApp::slotFilePrint()
+void BSApp::slotFilePrint()
{
statusBar()->message(tr("Printing..."));
QPrinter printer;
statusBar()->message(tr("Ready."));
}
-void BcApp::slotFileQuit()
+void BSApp::slotFileQuit()
{
statusBar()->message(tr("Exiting application..."));
///////////////////////////////////////////////////////////////////
statusBar()->message(tr("Ready."));
}
-void BcApp::slotEditCut()
+void BSApp::slotEditCut()
{
statusBar()->message(tr("Cutting selection..."));
statusBar()->message(tr("Ready."));
}
-void BcApp::slotEditCopy()
+void BSApp::slotEditCopy()
{
statusBar()->message(tr("Copying selection to clipboard..."));
statusBar()->message(tr("Ready."));
}
-void BcApp::slotEditPaste()
+void BSApp::slotEditPaste()
{
statusBar()->message(tr("Inserting clipboard contents..."));
}
-void BcApp::slotViewToolBar(bool toggle)
+void BSApp::slotViewToolBar(bool toggle)
{
statusBar()->message(tr("Toggle toolbar..."));
///////////////////////////////////////////////////////////////////
statusBar()->message(tr("Ready."));
}
-void BcApp::slotViewStatusBar(bool toggle)
+void BSApp::slotViewStatusBar(bool toggle)
{
statusBar()->message(tr("Toggle statusbar..."));
///////////////////////////////////////////////////////////////////
statusBar()->message(tr("Ready."));
}
-void BcApp::slotHelpAbout()
+void BSApp::slotHelpAbout()
{
QMessageBox::about(this,tr("About..."),
tr("Bc\nVersion " VERSION "\n(c) 2001 by Michael Andreen") );