]> ruin.nu Git - hbs.git/blobdiff - bs/bs.cpp
Changed lots of classnames from Bc to BS
[hbs.git] / bs / bs.cpp
index 1422dcd3ed48e792b46d2bcfce811d891aa087c0..42dc30a8d295b34eb3c8eda071facac9bba178dd 100644 (file)
--- a/bs/bs.cpp
+++ b/bs/bs.cpp
 #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));
 
@@ -41,12 +41,12 @@ BcApp::BcApp()
   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);
@@ -121,7 +121,7 @@ void BcApp::initActions(){
 
 }
 
-void BcApp::initMenuBar()
+void BSApp::initMenuBar()
 {
   ///////////////////////////////////////////////////////////////////
   // MENUBAR
@@ -171,7 +171,7 @@ void BcApp::initMenuBar()
 
 }
 
-void BcApp::initToolBar()
+void BSApp::initToolBar()
 {
   ///////////////////////////////////////////////////////////////////
   // TOOLBAR
@@ -184,27 +184,27 @@ void BcApp::initToolBar()
 
 }
 
-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?"),
@@ -227,14 +227,14 @@ bool BcApp::queryExit()
 /////////////////////////////////////////////////////////////////////
 
 
-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..."));
 
@@ -253,14 +253,14 @@ void BcApp::slotFileOpen()
 }
 
 
-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);
@@ -276,14 +276,14 @@ void BcApp::slotFileSaveAs()
   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;
@@ -301,7 +301,7 @@ void BcApp::slotFilePrint()
   statusBar()->message(tr("Ready."));
 }
 
-void BcApp::slotFileQuit()
+void BSApp::slotFileQuit()
 {
   statusBar()->message(tr("Exiting application..."));
   ///////////////////////////////////////////////////////////////////
@@ -325,21 +325,21 @@ void BcApp::slotFileQuit()
   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..."));
 
@@ -347,7 +347,7 @@ void BcApp::slotEditPaste()
 }
 
 
-void BcApp::slotViewToolBar(bool toggle)
+void BSApp::slotViewToolBar(bool toggle)
 {
   statusBar()->message(tr("Toggle toolbar..."));
   ///////////////////////////////////////////////////////////////////
@@ -365,7 +365,7 @@ void BcApp::slotViewToolBar(bool toggle)
   statusBar()->message(tr("Ready."));
 }
 
-void BcApp::slotViewStatusBar(bool toggle)
+void BSApp::slotViewStatusBar(bool toggle)
 {
   statusBar()->message(tr("Toggle statusbar..."));
   ///////////////////////////////////////////////////////////////////
@@ -383,7 +383,7 @@ void BcApp::slotViewStatusBar(bool toggle)
   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") );