Zaebis Software

С/С++, Delphi, Pascal, Basic, FoxPro, Java и т.д.

Moderator: Gen1us2k

Post Reply
User avatar
Gen1us2k
Модератор
Модератор
Posts: 771
Joined: 02 Mar 2010, 16:13

Zaebis Software

Post by Gen1us2k » 16 Dec 2010, 08:04

Need Qt

Code: Select all

diff -Naru zaebis.old/done.cpp zaebis/done.cpp
--- zaebis.old/done.cpp 1970-01-01 03:00:00.000000000 +0300
+++ zaebis/done.cpp 2010-08-13 19:33:57.000000000 +0300
@@ -0,0 +1,7 @@
+#include "done.h"
+
+done::done(QWidget *parent) : QMessageBox(parent){
+ setText(QString::fromUtf8("Теперь все заебись!"));
+ setWindowTitle(QString::fromUtf8("Заебись"));
+ setStandardButtons(QMessageBox::Yes);
+}
diff -Naru zaebis.old/done.h zaebis/done.h
--- zaebis.old/done.h 1970-01-01 03:00:00.000000000 +0300
+++ zaebis/done.h 2010-08-13 16:56:01.000000000 +0300
@@ -0,0 +1,13 @@
+#ifndef DONE_H
+#define DONE_H
+
+#include <QtGui/QMessageBox>
+
+class done : public QMessageBox{
+ Q_OBJECT
+
+public:
+ done(QWidget *parent = 0);
+};
+
+#endif // DONE_H
diff -Naru zaebis.old/good.cpp zaebis/good.cpp
--- zaebis.old/good.cpp 2009-04-07 20:52:02.000000000 +0300
+++ zaebis/good.cpp 2010-08-13 23:22:08.000000000 +0300
@@ -1,6 +1,14 @@
#include "good.h"
+#include "done.h"
+
+#include <QMessageBox>

good::good(QWidget *parent) : QPushButton(parent){
setText(QString::fromUtf8("Сделать заебись!"));
setWindowTitle(QString::fromUtf8("Заебись"));
}
+
+void good::closeEvent(QCloseEvent *e){
+ done d;
+ d.exec();
+}
diff -Naru zaebis.old/good.h zaebis/good.h
--- zaebis.old/good.h 2009-04-07 20:51:00.000000000 +0300
+++ zaebis/good.h 2010-08-13 13:59:26.000000000 +0300
@@ -2,11 +2,16 @@
#define GOOD_H

#include <QtGui/QPushButton>
+#include <QCloseEvent>

class good : public QPushButton{
Q_OBJECT

+protected:
+ void closeEvent( QCloseEvent *e );
+
public:
+ bool zaebis;
good(QWidget *parent = 0);
};

diff -Naru zaebis.old/good.pro zaebis/good.pro
--- zaebis.old/good.pro 2009-04-07 22:50:47.000000000 +0300
+++ zaebis/good.pro 2010-08-13 23:24:49.000000000 +0300
@@ -3,6 +3,6 @@

QT += core gui

-HEADERS += good.h
-SOURCES += main.cpp \
+HEADERS += good.h done.h
+SOURCES += main.cpp done.cpp \
good.cpp
diff -Naru zaebis.old/main.cpp zaebis/main.cpp
--- zaebis.old/main.cpp 2009-04-07 20:46:24.000000000 +0300
+++ zaebis/main.cpp 2010-08-13 23:23:24.000000000 +0300
@@ -1,4 +1,5 @@
#include "good.h"
+#include "done.h"

#include <QtGui>
#include <QApplication>
@@ -7,6 +8,8 @@
{
QApplication a(argc, argv);
good w;
+ done don;
+ QObject::connect(&w, SIGNAL(clicked()), &a, SLOT(closeAllWindows()));
w.show();
return a.exec();
}
Image
Home: Windows Heaven
Home: Debian 6
For Servers: Debian || RHEL Based || Gentoo || FreeBSD
User avatar
Raven
Бородатый сис
Бородатый сис
Posts: 2794
Joined: 03 Mar 2010, 15:12
ОС: RHEL 8
Location: Из серверной

Re: Zaebis Software

Post by Raven » 16 Dec 2010, 09:16

И че оно мутит?
Я не злопамятный, я просто часто ковыряю логи
User avatar
Gen1us2k
Модератор
Модератор
Posts: 771
Joined: 02 Mar 2010, 16:13

Re: Zaebis Software

Post by Gen1us2k » 16 Dec 2010, 23:41

делает все забибись %)
Image
Home: Windows Heaven
Home: Debian 6
For Servers: Debian || RHEL Based || Gentoo || FreeBSD
User avatar
romb
Злой чайник
Злой чайник
Posts: 143
Joined: 19 Oct 2010, 16:59
ОС: MSDOS
Location: местный
Contact:

Re: Zaebis Software

Post by romb » 05 Jan 2011, 12:42

%) %) %)
Image
Post Reply

Return to “Компилируемые языки программирования”