aboutsummaryrefslogblamecommitdiff
path: root/src/plugins/Visual/projectm/projectmwidget.h
blob: 2cf6c930281593ec3995cac56b9b55e697639372 (plain) (tree)





















                                                                             

                    


               












                                              
                                 




                                                 











                                                      

        



                         



      
/***************************************************************************
 *   Copyright (C) 2009 by Ilya Kotov                                      *
 *   forkotov02@hotmail.ru                                                 *
 *                                                                         *
 *   This program is free software; you can redistribute it and/or modify  *
 *   it under the terms of the GNU General Public License as published by  *
 *   the Free Software Foundation; either version 2 of the License, or     *
 *   (at your option) any later version.                                   *
 *                                                                         *
 *   This program is distributed in the hope that it will be useful,       *
 *   but WITHOUT ANY WARRANTY; without even the implied warranty of        *
 *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the         *
 *   GNU General Public License for more details.                          *
 *                                                                         *
 *   You should have received a copy of the GNU General Public License     *
 *   along with this program; if not, write to the                         *
 *   Free Software Foundation, Inc.,                                       *
 *   59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.             *
 ***************************************************************************/
#ifndef PROJECTMWIDGET_H
#define PROJECTMWIDGET_H

#include <QGLWidget>


class QMenu;
class projectM;


/**
    @author Ilya Kotov <forkotov02@hotmail.ru>
*/
class ProjectMWidget : public QGLWidget
{
    Q_OBJECT
public:
    ProjectMWidget(QWidget *parent = 0);

    ~ProjectMWidget();

    projectM *projectMInstance();

protected:
    virtual void initializeGL();
    virtual void resizeGL(int width, int height);
    virtual void paintGL();
    virtual void mousePressEvent (QMouseEvent *event);

private slots:
    void showHelp();
    void showPresetName();
    void showTitle();
    void nextPreset();
    void previousPreset();
    void randomPreset();
    void lockPreset();
    void fullScreen();
    void updateTitle();

private:
    projectM *m_projectM;
    QMenu *m_menu;
    void createActions();


};

#endif
nput/ffmpeg/settingsdialog.ui?id=7683057b2a0927288461cd7ffba03cd79b3e61f6'>7683057b2
e8d99698c




7683057b2

611c6bed5




7683057b2

7b1cb9167
e8d99698c



7683057b2

e8d99698c



0a29533bd






3f6b469fa


6a5a5359f














3f6b469fa


961485569






e8d99698c












7683057b2
e8d99698c


7683057b2
e8d99698c










7683057b2
e8d99698c


7683057b2
e8d99698c






1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182

                                      
                              

                                               


            
                      
                        

             
                               
                                          
             












                                                

                                 
                                          






                          



                                                        



                                 
                                      



                                                              


                                              

                              
                                                       
            

                                                    




                                             

                                                    
                                              



                   

                                                    




                                    

                                                    




                                  

                                                    




                                                  

                                                    
                                         



                   

                                                   



                                           






                                                   


                                                    














                                                                


                   






                                                    












                                      
                             


               
                                  










                                      
                             


               
                                  






               
<?xml version="1.0" encoding="UTF-8"?>
<ui version="4.0">
 <class>SettingsDialog</class>
 <widget class="QDialog" name="SettingsDialog">
  <property name="geometry">
   <rect>
    <x>0</x>
    <y>0</y>
    <width>308</width>
    <height>328</height>
   </rect>
  </property>
  <property name="windowTitle">
   <string>FFmpeg Plugin Settings</string>
  </property>
  <layout class="QGridLayout" name="gridLayout">
   <property name="leftMargin">
    <number>6</number>
   </property>
   <property name="rightMargin">
    <number>6</number>
   </property>
   <property name="bottomMargin">
    <number>6</number>
   </property>
   <item row="1" column="0">
    <spacer name="horizontalSpacer">
     <property name="orientation">
      <enum>Qt::Horizontal</enum>
     </property>
     <property name="sizeHint" stdset="0">
      <size>
       <width>178</width>
       <height>20</height>
      </size>
     </property>
    </spacer>
   </item>
   <item row="1" column="1">
    <widget class="QDialogButtonBox" name="buttonBox">
     <property name="sizePolicy">
      <sizepolicy hsizetype="Maximum" vsizetype="Fixed">
       <horstretch>0</horstretch>
       <verstretch>0</verstretch>
      </sizepolicy>
     </property>
     <property name="standardButtons">
      <set>QDialogButtonBox::Cancel|QDialogButtonBox::Ok</set>
     </property>
    </widget>
   </item>
   <item row="0" column="0" colspan="2">
    <widget class="QGroupBox" name="groupBox">
     <property name="title">
      <string>Formats</string>
     </property>
     <layout class="QVBoxLayout" name="verticalLayout">
      <item>
       <widget class="QCheckBox" name="wmaCheckBox">
        <property name="text">
         <string>Windows Media Audio</string>
        </property>
       </widget>
      </item>
      <item>
       <widget class="QCheckBox" name="apeCheckBox">
        <property name="text">
         <string>Monkey's Audio (APE)</string>
        </property>
       </widget>
      </item>
      <item>
       <widget class="QCheckBox" name="ttaCheckBox">
        <property name="text">
         <string>True Audio</string>
        </property>
       </widget>
      </item>
      <item>
       <widget class="QCheckBox" name="aacCheckBox">
        <property name="text">
         <string>ADTS AAC</string>
        </property>
       </widget>
      </item>
      <item>
       <widget class="QCheckBox" name="mp3CheckBox">
        <property name="text">
         <string>MP3 (MPEG audio layer 3)</string>
        </property>
       </widget>
      </item>
      <item>
       <widget class="QCheckBox" name="mp4CheckBox">
        <property name="text">
         <string>MPEG-4 AAC/ALAC</string>
        </property>
       </widget>
      </item>
      <item>
       <widget class="QCheckBox" name="raCheckBox">
        <property name="text">
         <string>RealAudio 1.0/2.0</string>
        </property>
       </widget>
      </item>
      <item>
       <widget class="QCheckBox" name="shCheckBox">
        <property name="text">
         <string>Shorten</string>
        </property>
       </widget>
      </item>
      <item>
       <widget class="QCheckBox" name="ac3CheckBox">
        <property name="text">
         <string>AC3/EAC</string>
        </property>
       </widget>
      </item>
      <item>
       <widget class="QCheckBox" name="dtsCheckBox">
        <property name="text">
         <string>DTS/DTS-Core</string>
        </property>
       </widget>
      </item>
      <item>
       <widget class="QCheckBox" name="mkaCheckBox">
        <property name="text">
         <string>Matroska Audio (Dolby TrueHD Lossless)</string>
        </property>
       </widget>
      </item>
      <item>
       <widget class="QCheckBox" name="vqfCheckBox">
        <property name="text">
         <string>VQF</string>
        </property>
       </widget>
      </item>
     </layout>
    </widget>
   </item>
  </layout>
 </widget>
 <resources/>
 <connections>
  <connection>
   <sender>buttonBox</sender>
   <signal>accepted()</signal>
   <receiver>SettingsDialog</receiver>
   <slot>accept()</slot>
   <hints>
    <hint type="sourcelabel">
     <x>214</x>
     <y>167</y>
    </hint>
    <hint type="destinationlabel">
     <x>103</x>
     <y>160</y>
    </hint>
   </hints>
  </connection>
  <connection>
   <sender>buttonBox</sender>
   <signal>rejected()</signal>
   <receiver>SettingsDialog</receiver>
   <slot>reject()</slot>
   <hints>
    <hint type="sourcelabel">
     <x>269</x>
     <y>174</y>
    </hint>
    <hint type="destinationlabel">
     <x>148</x>
     <y>169</y>
    </hint>
   </hints>
  </connection>
 </connections>
</ui>