Subversion Repositories OpenInventory

Compare Revisions

Ignore whitespace Rev 196 → Rev 197

/trunk/DBViewer/fileform.h
New file
0,0 → 1,32
#ifndef FILEFORM_H
#define FILEFORM_H
 
#include <QWidget>
 
namespace Ui {
class FileForm;
}
 
class FileForm : public QWidget {
Q_OBJECT
public:
FileForm(QWidget *parent = 0);
~FileForm();
void setData(QByteArray new_data){Data = new_data;}
QByteArray data(){return Data;}
 
protected:
void changeEvent(QEvent *e);
 
private:
Ui::FileForm *ui;
QByteArray Data;
 
private slots:
void on_pushButton_clicked(); // îáðàáîò÷èê íàæàòèÿ êíîïêè "Ïîìåíÿòü èêîíêó"
void on_pushButton_2_clicked(); // îáðàáîò÷èê íàæàòèÿ êíîïêè "Ïîìåíÿòü èêîíêó"
 
 
};
 
#endif // FILEFORM_H
/trunk/DBViewer/fileform.ui
New file
0,0 → 1,72
<?xml version="1.0" encoding="UTF-8"?>
<ui version="4.0">
<class>FileForm</class>
<widget class="QWidget" name="FileForm">
<property name="geometry">
<rect>
<x>0</x>
<y>0</y>
<width>92</width>
<height>32</height>
</rect>
</property>
<property name="windowTitle">
<string>Form</string>
</property>
<widget class="QPushButton" name="pushButton">
<property name="geometry">
<rect>
<x>0</x>
<y>0</y>
<width>31</width>
<height>30</height>
</rect>
</property>
<property name="text">
<string/>
</property>
<property name="icon">
<iconset resource="dbviewer.qrc">
<normaloff>:/Open.png</normaloff>:/Open.png</iconset>
</property>
</widget>
<widget class="QPushButton" name="pushButton_2">
<property name="geometry">
<rect>
<x>30</x>
<y>0</y>
<width>31</width>
<height>30</height>
</rect>
</property>
<property name="text">
<string/>
</property>
<property name="icon">
<iconset resource="dbviewer.qrc">
<normaloff>:/Delete.png</normaloff>:/Delete.png</iconset>
</property>
</widget>
<widget class="QPushButton" name="pushButton_3">
<property name="geometry">
<rect>
<x>60</x>
<y>0</y>
<width>31</width>
<height>30</height>
</rect>
</property>
<property name="text">
<string/>
</property>
<property name="icon">
<iconset resource="dbviewer.qrc">
<normaloff>:/Save.png</normaloff>:/Save.png</iconset>
</property>
</widget>
</widget>
<resources>
<include location="dbviewer.qrc"/>
</resources>
<connections/>
</ui>
/trunk/DBViewer/Save.png
Cannot display: file marked as a binary type.
svn:mime-type = application/octet-stream
/trunk/DBViewer/Save.png
New file
Property changes:
Added: svn:mime-type
## -0,0 +1 ##
+application/octet-stream
\ No newline at end of property
Index: DBViewer/fileform.cpp
===================================================================
--- DBViewer/fileform.cpp (revision 0)
+++ DBViewer/fileform.cpp (revision 197)
@@ -0,0 +1,38 @@
+#include "fileform.h"
+#include "ui_fileform.h"
+
+FileForm::FileForm(QWidget *parent) :
+ QWidget(parent),
+ ui(new Ui::FileForm)
+{
+ ui->setupUi(this);
+}
+
+FileForm::~FileForm()
+{
+ delete ui;
+}
+
+void FileForm::changeEvent(QEvent *e)
+{
+ QWidget::changeEvent(e);
+ switch (e->type()) {
+ case QEvent::LanguageChange:
+ ui->retranslateUi(this);
+ break;
+ default:
+ break;
+ }
+}
+
+
+
+void FileForm::on_pushButton_clicked(){ // îáðàáîò÷èê íàæàòèÿ êíîïêè "Ïîìåíÿòü èêîíêó"
+
+
+}
+
+void FileForm::on_pushButton_2_clicked(){ // îáðàáîò÷èê íàæàòèÿ êíîïêè "Óäàëèòü èêîíêó"
+
+
+}