MainForm::miniCalc()
{
const QString code = "var calc= new Calc(); calc.Show();";
- engine->project.interpreter()->evaluate(code);
+ engine.project.interpreter()->evaluate(code);
}
void windowsMenuActivated( int id );
void tileHorizontal();
void setBackground( const QPixmap &pix );
+ void miniCalc();
protected:
protected slots:
+/****************************************************************************
+** $Id$
+**
+** Source file of Ananas project
+*
+** Copyright (C) 2008 Andrey Paskal.
+**
+** This file is part of the extention of the Ananas
+** automation accounting system.
+**
+** This file may be distributed and/or modified under the terms of the
+** GNU General Public License version 2 as published by the Free Software
+** Foundation and appearing in the file LICENSE.GPL included in the
+** packaging of this file.
+**
+** This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE
+** WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
+**
+**********************************************************************/
+
+
#include "acalc.h"
/**
*
*\_en
*\ru
- * \brief
+ * \brief Создает экземпляр диалога
+ * \see aCalc::Show()
*
*\_ru
*/
/**
*\en
- * \brief Destructor
+ * \brief
*\_en
*\ru
- * \brief Деструктор
+ * \brief Открывает окно калькулятора перед пользователем на экране.
*\_ru
*/
void
+/****************************************************************************
+** $Id$
+**
+** Source file of Ananas project
+*
+** Copyright (C) 2008 Andrey Paskal.
+**
+** This file is part of the extention of the Ananas
+** automation accounting system.
+**
+** This file may be distributed and/or modified under the terms of the
+** GNU General Public License version 2 as published by the Free Software
+** Foundation and appearing in the file LICENSE.GPL included in the
+** packaging of this file.
+**
+** This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE
+** WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
+**
+**********************************************************************/
+
#ifndef ACALC_H
#define ACALC_H
protected:
MiniCalc* calcInstance;
-}
+};
#endif // ACALC_H
/****************************************************************************
-** Form implementation generated from reading ui file 'aminicalc.ui'
+** $Id$
**
-** Created: 2008-06-18T13:53:05
+** Source file of Ananas project
+**
+** Copyright (C) 2005-2005 Trolltech AS. All rights reserved.
+** Copyright (C) 2008 Dmitry Kruglikov.
**
-** WARNING! All changes made in this file will be lost!
-****************************************************************************/
+** This file is part of the extention of the Ananas
+** automation accounting system.
+** Based on code samples of the documentation of the Qt Toolkit
+**
+** This file may be distributed and/or modified under the terms of the
+** GNU General Public License version 2 as published by the Free Software
+** Foundation and appearing in the file LICENSE.GPL included in the
+** packaging of this file.
+**
+** This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE
+** WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
+**
+**********************************************************************/
#include "aminicalc.h"
*/
void MiniCalc::languageChange()
{
- setCaption( tr( "A-Calc" ) );
+ setCaption( tr( "Calculator" ) );
extMem->setText( tr( "ME" ) );
toDocButton->setText( tr( "->" ) );
clearMemoryButton->setText( tr( "MC" ) );
/****************************************************************************
-** Form interface generated from reading ui file 'aminicalc.ui'
+** $Id$
**
-** Created: 2008-06-18T13:52:59
+** Source file of Ananas project
+**
+** Copyright (C) 2005-2005 Trolltech AS. All rights reserved.
+** Copyright (C) 2008 Dmitry Kruglikov.
**
-** WARNING! All changes made in this file will be lost!
-****************************************************************************/
+** This file is part of the extention of the Ananas
+** automation accounting system.
+** Based on code samples of the documentation of the Qt Toolkit
+**
+** This file may be distributed and/or modified under the terms of the
+** GNU General Public License version 2 as published by the Free Software
+** Foundation and appearing in the file LICENSE.GPL included in the
+** packaging of this file.
+**
+** This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE
+** WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
+**
+**********************************************************************/
#ifndef MINICALC_H
#define MINICALC_H
+++ /dev/null
-#include "calc.h"
-
-/**
- *\en
- * \brief Constructor that create object aDateService for use in ananas script.
- *
- * Constructs current date object.
- *\_en
- *\ru
- * \brief Конструктор, который создает aDateService для работы в ананас скрипте.
- *
- * Создается объект с текущей датой.
- *\_ru
- */
-aCalc::aCalc(): AExtension("Calc")
-{
- QDate date = QDate::currentDate();
- calcInstance = new MiniCalc();
-}
-
+++ /dev/null
-#ifndef ACALC_H
-#define ACALC_H
-
-#include <qdatetime.h>
-#include "aextension.h"
-#include "aminicalc.h"
-
-class ANANAS_EXPORT aCalc : public AExtension
-{
- Q_OBJECT
- public:
- aCalc();
- ~aCalc();
-
- public slots:
- void Show();
-
- protected:
- MiniCalc* calcInstance;
-}
-
-#endif // ACALC_H