-CPluginSlot::CPluginSlot(GtkWidget* main_window, const char* name, const _QERPluginTable& table)
-{
- mpTable = &table;
- m_menu_name = name;
-
- const char* commands = mpTable->m_pfnQERPlug_GetCommandList();
- const char* titles = mpTable->m_pfnQERPlug_GetCommandTitleList();
-
- StringTokeniser commandTokeniser(commands, ",;");
- StringTokeniser titleTokeniser(titles, ",;");
-
- const char* cmdToken = commandTokeniser.getToken();
- const char *titleToken = titleTokeniser.getToken();
- while (!string_empty(cmdToken))
- {
- if(string_empty(titleToken))
- {
- m_CommandStrings.push_back(cmdToken);
- m_CommandTitleStrings.push_back(cmdToken);
- cmdToken = commandTokeniser.getToken();
- titleToken = "";
- }
- else
- {
- m_CommandStrings.push_back(cmdToken);
- m_CommandTitleStrings.push_back(titleToken);
- cmdToken = commandTokeniser.getToken();
- titleToken = titleTokeniser.getToken();
- }
- }
- mpTable->m_pfnQERPlug_Init(0, (void*)main_window);
-}
-
-const char* CPluginSlot::getMenuName()
-{
- return m_menu_name.c_str();
+CPluginSlot::CPluginSlot( ui::Widget main_window, const char* name, const _QERPluginTable& table ){
+ mpTable = &table;
+ m_menu_name = name;
+
+ const char* commands = mpTable->m_pfnQERPlug_GetCommandList();
+ const char* titles = mpTable->m_pfnQERPlug_GetCommandTitleList();
+
+ StringTokeniser commandTokeniser( commands, ",;" );
+ StringTokeniser titleTokeniser( titles, ",;" );
+
+ const char* cmdToken = commandTokeniser.getToken();
+ const char *titleToken = titleTokeniser.getToken();
+ while ( !string_empty( cmdToken ) )
+ {
+ if ( string_empty( titleToken ) ) {
+ m_CommandStrings.push_back( cmdToken );
+ m_CommandTitleStrings.push_back( cmdToken );
+ cmdToken = commandTokeniser.getToken();
+ titleToken = "";
+ }
+ else
+ {
+ m_CommandStrings.push_back( cmdToken );
+ m_CommandTitleStrings.push_back( titleToken );
+ cmdToken = commandTokeniser.getToken();
+ titleToken = titleTokeniser.getToken();
+ }
+ }
+ mpTable->m_pfnQERPlug_Init( 0, (void*)main_window );