#include <vector>
/* Folder vs. Directory */
-#ifdef WIN32
-#define I_OPEN_FOLDER "Open &Folder..."
+#if defined( WIN32 ) || defined(__APPLE__)
+#define I_OPEN_FOLDER N_("Open &Folder...")
#else
-#define I_OPEN_FOLDER "Open D&irectory..."
+#define I_OPEN_FOLDER N_("Open D&irectory...")
#endif //WIN32
using namespace std;
}
virtual ~MenuItemData()
{
- if( psz_var ) free( psz_var );
- if( ((i_val_type & VLC_VAR_TYPE) == VLC_VAR_STRING)
- && val.psz_string ) free( val.psz_string );
+ free( psz_var );
+ if( ( i_val_type & VLC_VAR_TYPE) == VLC_VAR_STRING )
+ free( val.psz_string );
}
int i_object_id;
int i_val_type;
static QMenu *FileMenu();
static QMenu *SDMenu( intf_thread_t * );
static QMenu *PlaylistMenu( intf_thread_t *, MainInterface * );
- static QMenu *ToolsMenu( intf_thread_t *, MainInterface *, bool, bool with = true );
- static QMenu *NavigMenu( intf_thread_t * , QMenu * );
- static QMenu *VideoMenu( intf_thread_t * , QMenu * );
- static QMenu *AudioMenu( intf_thread_t * , QMenu * );
+ static QMenu *ToolsMenu( intf_thread_t *, QMenu *, MainInterface *,
+ bool, bool with = true );
+ static QMenu *NavigMenu( intf_thread_t *, QMenu * );
+ static QMenu *VideoMenu( intf_thread_t *, QMenu * );
+ static QMenu *AudioMenu( intf_thread_t *, QMenu * );
static QMenu *InterfacesMenu( intf_thread_t *p_intf, QMenu * );
- static QMenu *HelpMenu();
+ static QMenu *HelpMenu( QMenu * );
/* Popups Menus */
static void AudioPopupMenu( intf_thread_t * );
static void CreateAndConnect( QMenu *, const char *, QString, QString,
int, int, vlc_value_t, int, bool c = false );
- static void CreateItem( QMenu *, const char *, vlc_object_t *, bool );
+ static void UpdateItem( intf_thread_t *, QMenu *, const char *,
+ vlc_object_t *, bool );
static int CreateChoicesMenu( QMenu *,const char *, vlc_object_t *, bool );
};
class MenuFunc : public QObject
{
-Q_OBJECT
+ Q_OBJECT
public:
MenuFunc( QMenu *_menu, int _id ) { menu = _menu; id = _id; };
{
switch( id )
{
- case 1: QVLCMenu::VideoMenu( p_intf, menu ); break;
- case 2: QVLCMenu::AudioMenu( p_intf, menu ); break;
+ case 1: QVLCMenu::AudioMenu( p_intf, menu ); break;
+ case 2: QVLCMenu::VideoMenu( p_intf, menu ); break;
case 3: QVLCMenu::NavigMenu( p_intf, menu ); break;
case 4: QVLCMenu::InterfacesMenu( p_intf, menu ); break;
}
};
- int id; QMenu *menu;
+ int id;
+ QMenu *menu;
};
#endif