~format-junkie-team/format-junkie/format_junkie_bzr

« back to all changes in this revision

Viewing changes to mainwindow.h

  • Committer: Alex Solanos
  • Date: 2012-08-30 20:14:08 UTC
  • Revision ID: alexsol.developer@gmail.com-20120830201408-8qc9e6awjicjahn0
First testing bzr push for format junkie

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*Format Junkie
 
2
A tool for converting your media files to
 
3
all the popular formats
 
4
Copyright © 2012 by Alex Solanos and Leon Vytanos
 
5
 
 
6
This program is free software; you can redistribute it and/or
 
7
modify it under the terms of the GNU General Public License
 
8
as published by the Free Software Foundation; either version 3
 
9
of the License, or (at your option) any later version.
 
10
 
 
11
This program is distributed in the hope that it will be useful,
 
12
but WITHOUT ANY WARRANTY; without even the implied warranty of
 
13
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 
14
GNU General Public License for more details.
 
15
 
 
16
You should have received a copy of the GNU General Public License
 
17
along with this program; if not, write to the Free Software
 
18
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.*/
 
19
 
 
20
#define QT_NO_KEYWORDS
 
21
 
 
22
#ifndef MAINWINDOW_H
 
23
#define MAINWINDOW_H
 
24
 
 
25
#include "preferences.h"
 
26
#include "error_logs.h"
 
27
#include "about.h"
 
28
#include "audio_video_properties.h"
 
29
#include "image_properties.h"
 
30
 
 
31
#include <QMainWindow>
 
32
#include <QStringList>
 
33
#include <QProgressBar>
 
34
#include <QDragEnterEvent>
 
35
#include <QDropEvent>
 
36
#include <QSystemTrayIcon>
 
37
 
 
38
namespace Ui {
 
39
class MainWindow;
 
40
}
 
41
 
 
42
class MainWindow : public QMainWindow
 
43
{
 
44
    Q_OBJECT
 
45
    
 
46
public:
 
47
    explicit MainWindow(QWidget *parent = 0);
 
48
    ~MainWindow();
 
49
    static void handle_it();
 
50
 
 
51
private Q_SLOTS:
 
52
    void on_actionAdd_Audio_Files_triggered();
 
53
    void on_actionAdd_Video_Files_triggered();
 
54
    void on_actionAdd_Image_Files_triggered();
 
55
    void on_actionContents_F1_triggered();
 
56
    void on_actionPreferences_triggered();
 
57
    void on_musicButton_clicked();
 
58
    void on_videoButton_clicked();
 
59
    void on_imageButton_clicked();
 
60
    void on_advancedButton_clicked();
 
61
    void on_rom_deviceButton_clicked();
 
62
    void add_files(QString path, int type);
 
63
    void audio_read_output();
 
64
    void video_read_output();
 
65
    void image_read_output();
 
66
    void files_to_iso_end(int return_code);
 
67
    void iso_to_cso_end(int return_code);
 
68
    void cso_to_iso_end(int return_code);
 
69
    QStringList list_folders(QString parent_folder);
 
70
    void dragEnterEvent(QDragEnterEvent *event);
 
71
    void dropEvent(QDropEvent *event);
 
72
    //Audio
 
73
    void on_startBtn_clicked();
 
74
    void on_addBtn_clicked();
 
75
    void on_addfolder_clicked();
 
76
    void on_clearBtn_clicked();
 
77
    void on_removeBtn_clicked();
 
78
    void on_moveupButton_clicked();
 
79
    void on_movedownButton_clicked();
 
80
    void audio_conversion(int return_code);
 
81
    void video_conversion(int return_code);
 
82
    void image_conversion(int return_code);
 
83
    void on_stop_clicked();
 
84
    void on_output_folder_clicked();
 
85
    void setup_shortcuts();
 
86
    void crop_output_folder(QString output_folder_location);
 
87
    void remove_complete();
 
88
    void progressbar_animation(int end_value, int type);
 
89
    void actions_after_convert();
 
90
    void on_stop_2_clicked();
 
91
    void on_stackedWidget_currentChanged(int arg1);
 
92
    void on_show_errors_clicked();
 
93
    void on_actionAbout_triggered();
 
94
    void on_actionQuit_triggered();
 
95
    void on_actionGet_Help_Online_triggered();
 
96
    void on_actionReport_A_Bug_triggered();
 
97
    void dbus_action(QString msg);
 
98
    void on_progressBar_valueChanged(int value);
 
99
    void update_unity_value(int value);
 
100
    void update_unity_count_value(int after);
 
101
    void show_desktop_notification(int noti_type);
 
102
    void add_audio_files();
 
103
    void add_video_files();
 
104
    void add_image_files();
 
105
    void clear_convertion();
 
106
    void process_dir(QString dir);
 
107
    void make_indicator();
 
108
    void delete_indicator();
 
109
    void on_startBtn_3_clicked();
 
110
    void on_stop_3_clicked();
 
111
    void on_progressBar_3_valueChanged(int value);
 
112
    void on_startBtn_2_clicked();
 
113
    void set_video_resize_value(int index_value);
 
114
    void show_me();
 
115
    void on_radioButton_files_to_iso_clicked();
 
116
    void on_radioButton_iso_cso_clicked();
 
117
    void on_startBtn_8_clicked();
 
118
    void on_stop_6_clicked();
 
119
    void on_select_iso_clicked();
 
120
    void on_select_cso_clicked();
 
121
    void on_iso_to_cso_start_clicked();
 
122
    void on_iso_to_cso_output_textEdited();
 
123
    void on_cso_to_iso_output_textEdited();
 
124
    void on_cso_to_iso_start_clicked();
 
125
    void on_iso_to_cso_stop_clicked();
 
126
    void on_cso_to_iso_stop_clicked();
 
127
    void show_audio_video_item_properties();
 
128
    void show_image_properties();
 
129
    void open_containing_folder();
 
130
    void on_tableWidget_customContextMenuRequested();
 
131
    void on_tableWidget_2_customContextMenuRequested();
 
132
    void on_tableWidget_3_customContextMenuRequested();
 
133
    float get_size(QString folder);
 
134
    float folder_size(QString folder);
 
135
    void on_selectavi_clicked();
 
136
    void on_selectsubtitle_clicked();
 
137
    void on_after_convertion2_currentIndexChanged(int index);
 
138
    void on_encode_start_clicked();
 
139
    void sub_encoding_end(int return_code);
 
140
    void on_encode_stop_clicked();
 
141
    void on_progressBar_2_valueChanged(int value);
 
142
 
 
143
protected:
 
144
    void changeEvent(QEvent *e);
 
145
 
 
146
private:
 
147
    Ui::MainWindow *ui;
 
148
    void closeEvent( QCloseEvent * );
 
149
    QProgressBar *globpro;
 
150
    Preferences *pref;
 
151
    error_logs *showlogs;
 
152
    about *About;
 
153
    audio_video_properties *prop;
 
154
    image_properties *improp;
 
155
    QSystemTrayIcon *trayIcon;
 
156
    QAction *Show_action;
 
157
    QAction *Show_audio;
 
158
    QAction *Show_video;
 
159
    QAction *Show_image;
 
160
    QAction *Show_preferences;
 
161
    QAction *Show_about;
 
162
    QAction *Show_outputfolder;
 
163
    QAction *Quit_action;
 
164
 
 
165
Q_SIGNALS:
 
166
    void send_output_folder(QString);
 
167
 
 
168
};
 
169
 
 
170
#endif // MAINWINDOW_H