diff options
author | toma <toma@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2009-11-25 17:56:58 +0000 |
---|---|---|
committer | toma <toma@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2009-11-25 17:56:58 +0000 |
commit | 90825e2392b2d70e43c7a25b8a3752299a933894 (patch) | |
tree | e33aa27f02b74604afbfd0ea4f1cfca8833d882a /kdejava/koala/org/kde/koala/KMenuBar.java | |
download | tdebindings-90825e2392b2d70e43c7a25b8a3752299a933894.tar.gz tdebindings-90825e2392b2d70e43c7a25b8a3752299a933894.zip |
Copy the KDE 3.5 branch to branches/trinity for new KDE 3.5 features.
BUG:215923
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdebindings@1054174 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kdejava/koala/org/kde/koala/KMenuBar.java')
-rw-r--r-- | kdejava/koala/org/kde/koala/KMenuBar.java | 94 |
1 files changed, 94 insertions, 0 deletions
diff --git a/kdejava/koala/org/kde/koala/KMenuBar.java b/kdejava/koala/org/kde/koala/KMenuBar.java new file mode 100644 index 00000000..9bad37e7 --- /dev/null +++ b/kdejava/koala/org/kde/koala/KMenuBar.java @@ -0,0 +1,94 @@ +//Auto-generated by kalyptus. DO NOT EDIT. +package org.kde.koala; + +import org.kde.qt.Qt; +import org.kde.qt.QRect; +import org.kde.qt.QMetaObject; +import org.kde.qt.QtSupport; +import org.kde.qt.QCloseEvent; +import org.kde.qt.QObject; +import org.kde.qt.QSize; +import org.kde.qt.QPainter; +import org.kde.qt.QShowEvent; +import org.kde.qt.QEvent; +import org.kde.qt.QWidget; +import org.kde.qt.QResizeEvent; +import org.kde.qt.QMenuBar; + +/** + + %KDE Style-able menubar. + This is required since QMenuBar is currently not handled by + QStyle. + @author Daniel "Mosfet" Duley. + + @version $Id$ + + @short %KDE Style-able menubar. + +*/ +public class KMenuBar extends QMenuBar { + protected KMenuBar(Class dummy){super((Class) null);} + public native QMetaObject metaObject(); + public native String className(); + public KMenuBar(QWidget parent, String name) { + super((Class) null); + newKMenuBar(parent,name); + } + private native void newKMenuBar(QWidget parent, String name); + public KMenuBar(QWidget parent) { + super((Class) null); + newKMenuBar(parent); + } + private native void newKMenuBar(QWidget parent); + public KMenuBar() { + super((Class) null); + newKMenuBar(); + } + private native void newKMenuBar(); + /** + This controls whether or not this menubar will be a top-level + bar similar to the way Macintosh handles menubars. This + overrides any global config settings. + Keep in mind that it is probably a really bad idea to use this + unless you really know what you're doing. A feature like a + top-level menubar is one that should really be shared by all + applications. If your app is the only one with a top-level + bar, then things might look very... odd. + This is included only for those people that <code>do</code> know that + they need to use it. + @param top_level If set to true, then this menubar will be a + top-level menu + @short This controls whether or not this menubar will be a top-level bar similar to the way Macintosh handles menubars. + */ + public native void setTopLevelMenu(boolean top_level); + public native void setTopLevelMenu(); + /** + Is our menubar a top-level (Macintosh style) menubar? + @return True if it is top-level. + + @short Is our menubar a top-level (Macintosh style) menubar? + */ + public native boolean isTopLevelMenu(); + public native void setGeometry(QRect r); + public native void setGeometry(int x, int y, int w, int h); + public native void resize(int w, int h); + public native void resize(QSize s); + public native void show(); + public native void setFrameStyle(int arg1); + public native void setLineWidth(int arg1); + public native void setMargin(int arg1); + public native QSize sizeHint(); + public native void showEvent(QShowEvent arg1); + protected native void resizeEvent(QResizeEvent arg1); + public native boolean eventFilter(QObject arg1, QEvent arg2); + protected native void closeEvent(QCloseEvent arg1); + protected native void drawContents(QPainter arg1); + protected native void slotReadConfig(); + /** Deletes the wrapped C++ instance */ + protected native void finalize() throws InternalError; + /** Delete the wrapped C++ instance ahead of finalize() */ + public native void dispose(); + /** Has the wrapped C++ instance been deleted? */ + public native boolean isDisposed(); +} |