X-Git-Url: https://ruin.nu/git/?p=hbs.git;a=blobdiff_plain;f=bs%2Fbs.cpp;h=42dc30a8d295b34eb3c8eda071facac9bba178dd;hp=1422dcd3ed48e792b46d2bcfce811d891aa087c0;hb=1bb3da557a983d00ec3ff37ff94152e6f109ee4a;hpb=ec7ebf4a9acd1d7b7e4e7967c4afa94300ed5ff9 diff --git a/bs/bs.cpp b/bs/bs.cpp index 1422dcd..42dc30a 100644 --- a/bs/bs.cpp +++ b/bs/bs.cpp @@ -18,12 +18,12 @@ #include "../config.h" #include -#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") );