5 #ifndef BALL_VIEW_WIDGETS_MODULARWIDGET_H
6 #define BALL_VIEW_WIDGETS_MODULARWIDGET_H
8 #ifndef BALL_CONCEPT_EMBEDDABLE_H
12 #ifndef BALL_VIEW_KERNEL_CONNECTIONOBJECT_H
16 #include <QtGui/QKeySequence>
17 #include <QtGui/QToolBar>
91 virtual void destroy()
120 virtual void initializeWidget(
MainControl& main_control);
130 virtual void finalizeWidget(
MainControl& main_control);
159 const char* slot = 0,
const String& description =
"", QKeySequence accel = QKeySequence());
164 void setMenuHint(
const String& hint);
170 void setMenuHelp(
const String& url);
175 virtual void registerForHelpSystem(
const QObject*
object,
const String& url);
181 virtual void addToolBarEntries(QToolBar* main_tb);
186 void setIcon(
const String& filename,
bool add_to_main_toolbar =
true);
200 virtual void initializePreferencesTab(
Preferences& preferences);
208 virtual void finalizePreferencesTab(
Preferences& preferences);
228 virtual void fetchPreferences(
INIFile& inifile);
235 virtual void writePreferences(
INIFile& inifile);
245 bool lockComposites();
248 bool unlockComposites();
264 virtual void setStatusbarText(
const String& text,
bool important =
false);
267 virtual void setStatusbarText(
const QString& text,
bool important =
false);
273 void setWorkingDir(
const String& dir);
293 virtual void dump(std::ostream& s = std::cout,
Size depth = 0)
const;
297 void setWorkingDirFromFilename_(
String filename);
299 virtual void showHelp(
const String& url);
319 #endif // BALL_VIEW_WIDGETS_MODULARWIDGET_H